* configure.host: Correct dynamic-linker for powerpc64 hosts.
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2
3 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
4 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
5 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
6 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
7 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
8 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
9 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
10 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
11 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
12 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
13 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
14 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
15 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
16 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
17 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
18 TRUE/FALSE. Formatting.
19
20 2002-11-29 Nick Clifton <nickc@redhat.com>
21
22 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
23 assume a value of zero.
24 (do_bkpt): Likewise.
25
26 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
27
28 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
29 for TLS relocations.
30
31 2002-11-29 Jakub Jelinek <jakub@redhat.com>
32
33 * config/tc-ia64.c (md_apply_fix3): Add default case.
34
35 2002-11-28 Jakub Jelinek <jakub@redhat.com>
36
37 * symbols.c (S_SET_THREAD_LOCAL): New function.
38 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
39 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
40 for TLS relocations.
41 * config/tc-ia64.c (md_apply_fix3): Likewise.
42 * config/tc-alpha.c (md_apply_fix3): Likewise.
43
44 2002-11-28 Jakub Jelinek <jakub@redhat.com>
45
46 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
47 to entsize.
48
49 2002-11-26 DJ Delorie <dj@redhat.com.
50
51 * dwarf2dbg.c (scale_addr_delta): New.
52 (size_inc_line_addr): Use it.
53 (emit_inc_line_addr): Use it.
54
55 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
56
57 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
58 (md_assemble): Don't pass on branches to constants as relaxable.
59 Tweak comment.
60
61 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
62
63 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
64
65 2002-11-21 Randolph Chung <randolph@tausq.org>
66
67 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
68 only if they have default visibility.
69
70 2002-11-21 Richard Henderson <rth@redhat.com>
71
72 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
73 S_IS_DEFINED test.
74
75 2002-11-21 Alan Modra <amodra@bigpond.net.au>
76
77 * config/tc-mcore.c (mcore_pool_count): New function.
78 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
79
80 2002-11-20 Klee Dienes <kdienes@apple.com>
81
82 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
83 coalesce the name fields to use the same pointer.
84
85 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
86 the name fields to use the same pointer.
87 (get_specific): Check for opcodes with the same name using strcmp
88 as well as comparing the pointer.
89
90 2002-11-20 Alan Modra <amodra@bigpond.net.au>
91
92 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
93 fx_subsy non-NULL.
94
95 2002-11-19 Richard Henderson <rth@redhat.com>
96
97 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
98 visibility portion of st_other.
99
100 2002-11-19 Klee Dienes <kdienes@apple.com>
101
102 * config/tc-h8300.c (struct h8_instruction): New type, used to
103 wrap h8_opcodes with length, noperands, idx, and size fields
104 (computed at run-time).
105 (h8_instructions): New variable.
106 (md_begin): Allocate the storage for h8_instructions. Fill
107 h8_instructions with pointers to the appropriate opcode and the
108 correct value for the additional fields.
109 (clever_message): Update to use h8_instructions instead of
110 h8_opcodes.
111 (build_bytes): Ditto.
112 (get_specific): Ditto.
113 (md_assemble): Ditto.
114
115 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
116
117 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
118 adjustments to symbols in merge sections.
119
120 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
121
122 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
123
124 2002-11-18 Kevin Buettner <kevinb@redhat.com>
125
126 * dwarf2dbg.h (dwarf2_format): New enum.
127 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
128 (out_debug_line, out_debug_info): Add code for handling 64-bit
129 DWARF 2 formats.
130 * config/tc-mips.h (mips_dwarf2_format): Declare.
131 * config/tc-mips.c (mips_dwarf2_format): New function.
132 * doc/internals.texi (DWARF2_FORMAT): Document.
133
134 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
135
136 * config/tc-mips.c (s_change_section): Make sure input buffer
137 is not accessed past the end. Don't hand
138 obj_elf_change_section a pointer into the input buffer.
139
140 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
141
142 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
143 GOT_LO16 on NEWABI.
144
145 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
146
147 * config/tc-tic4x.c: Fixed proper commandline
148 parameters. Added support for new opcode-list format. General
149 error message fixups.
150 (c4x_inst_add): Reject insn not for our CPU
151 (md_begin): Added matrix for setting the proper opcode-level &
152 device-flags according to cpu type and revision. Rewrite the
153 opcode hasher.
154 (c4x_operand_parse): Fix opcode bug
155 (c4x_operands_match): New function argument. Added dry-run
156 mechanism, that is optional error generation. Added constraint 'i'
157 and 'j'.
158 (c4x_insn_check): Added new function for post-verification of the
159 generated insn.
160 (md_assemble): Check all opcodes before croaking because of an
161 argument mismatch. Need this to be able to fully support
162 ortogonally arguments.
163 (md_parse_options): Revised commandprompt swicthes and added new
164 ones.
165 (md_show_usage): Complete rewrite of printout.
166
167 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
168
169 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
170 (c4x_operands_match): Added check for 8-bits LDF insn. Give
171 warning when using constant direct bigger than 2^16. Add the new
172 arguments.
173
174 2002-11-11 Christopher Faylor <cgf@redhat.com>
175
176 * configure.in: Use .gdbinit under Cygwin.
177 * configure: Regenerate.
178
179 2002-11-11 Christopher Faylor <cgf@redhat.com>
180
181 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
182 STRICT_PE_FORMAT.
183
184 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
185
186 * config/tc-tic4x.c: Declare as many functions as possible as
187 static. Maintenance on the general indenting. Removed unnecessary
188 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
189 function. Add support for new DSP, TMS320VC33. Fix bug for
190 converting flonum constants.
191 (c4x_do_align): Add proper align handling. Setup align to insert
192 NOP's.
193 (c4x_gen_to_words): Support for extended TI type floats.
194 (md_atof): Proper dumping of multiple-word littlenums.
195 (c4x_atof): Added support for extended TI type floats.
196 (c4x_stringer): Added new function to handle compact strings.
197 (c4x_emit_char): Added new function argument to handle custom
198 length inserts, like single-byte strings.
199 * config/tc-tic4x.h: Add proper align handling with NOP's.
200 * Makefile.am: Added tic4x dependecy
201 * Makefile.in: Regenerate
202
203 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
204
205 * macro.c (get_any_string): Correct logic for not going beyond end
206 of in->ptr[].
207
208 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
209
210 * config/tc-mmix.c (get_putget_operands): Mark both possible
211 operands as invalid at beginning.
212
213 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
214 Initialize target of fixup to zero.
215
216 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
217
218 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
219 NEWABI, but we should still emit HI16_S for non-PIC n32.
220
221 2002-11-06 Richard Henderson <rth@redhat.com>
222
223 * config/tc-alpha.c (alpha_validate_fix): Move code ...
224 (alpha_fix_adjustable): ... here.
225 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
226
227 2002-11-07 Eric Kohl <ekohl@rz-online.de>
228
229 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
230 of a label.
231
232 2002-11-05 H.J. Lu <hjl@gnu.org>
233
234 * config/tc-mips.c (support_64bit_objects): Check *l before it
235 is freed.
236
237 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
238
239 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
240 SEC_LOAD flags for sections marked as 's'.
241
242 2002-11-01 Alan Modra <amodra@bigpond.net.au>
243
244 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
245 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
246 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
247 default.
248
249 * dep-in.sed: Fix typo.
250
251 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
252
253 * configure.in: Update ARM CPU patterns.
254 * configure: Regenerated.
255
256 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
257
258 * itbl-lex.l: Use #include <> for generated headers.
259 * itbl-ops.c: Likewise.
260
261 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
262
263 * doc/gasp.texi: Fix typo in deprecation note.
264
265 2002-10-23 Nick Clifton <nickc@redhat.com>
266
267 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
268 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
269
270 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
271
272 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
273 (tc_frob_file_before_adjust): Don't define.
274 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
275 function.
276 (mmix_frob_file_before_adjust): Remove ineffective function.
277
278 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
279
280 * config/tc-cris.c (SIMPLE_EXPR): New macro.
281 (cris_relax_frag): New function.
282 (md_estimate_size_before_relax) <case ENCODE_RELAX
283 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
284 expressions that will become absolute expressions to relaxation.
285 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
286 STATE_WORD)>: Expect only absolute expressions. Use the symbol
287 value, not distance to symbol.
288 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
289 Ditto. Correct placement of fixup.
290 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
291 (gen_bdap): Ditto.
292 * config/tc-cris.h (cris_relax_frag): Declare.
293 (md_relax_frag): Define.
294
295 2002-10-22 Alan Modra <amodra@bigpond.net.au>
296
297 * config/obj-elf.c (special_sections): Use correct types for init
298 array sections.
299 (obj_elf_change_section): Don't mess with init array section type.
300
301 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
302
303 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
304 for relocs against symbols in a merged section.
305
306 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
307
308 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
309 table as register names.
310
311 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
312
313 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
314 for option -m31.
315
316 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
317
318 * expr.c (operand): Add support for n.nn flonums.
319
320 2002-10-17 Johannes Stezenbach <js@convergence.de>
321
322 * itbl-parse.y (entry): Provide empty action.
323
324 2002-10-16 Alan Modra <amodra@bigpond.net.au>
325
326 * configure.in (BFDVER_H): Set and subst.
327 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
328 * Makefile.am: Run "make dep-am".
329 (BFDVER_H): Define.
330 * configure: Regenerate.
331 * Makefile.in: Regenerate.
332 * doc/Makefile.in: Regenerate.
333
334 2002-10-15 Alan Modra <amodra@bigpond.net.au>
335
336 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
337 (MD_APPLY_SYM_VALUE): Define for PE too.
338
339 2002-10-14 Alan Modra <amodra@bigpond.net.au>
340
341 * Makefile.am: Run "make dep-am".
342 (CPU_OBJ_VALID): sh64 coff is invalid.
343 * as.c: #include "bfdver.h".
344 * Makefile.in: Regenerate.
345 * config.in: Regenerate.
346
347 2002-10-14 Momchil Velikov <velco@fadata.bg>
348
349 * config/tc-v850.c (CHECK_): Remove token pasting operator.
350
351 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
352
353 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
354 * configure: Regenerate.
355
356 2002-10-13 Eric Christopher <echristo@redhat.com>
357 Alexandre Oliva <aoliva@redhat.com>
358
359 * config/tc-mips.c (s_gpdword): New function.
360 (mips_pseudo_table): Add .gpdword.
361 (mips_need_elf_addend_fixup): never for NEWABI.
362 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
363 GPREL32 as done.
364 (s_cpadd): Generate .cpadd on NEWABI.
365
366 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
367
368 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
369
370 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
371
372 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
373 (md_relax_frag): Adjust macro.
374 * config/tc-mips.c (mips_relax_branch): New variable.
375 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
376 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
377 (RELAX_MIPS16_P): Adjust.
378 (append_insn): Emit branch to non-constant in a frag_var if
379 branch-relaxation is desirable and possible.
380 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
381 (OPTION_ELF_BASE): Adjust.
382 (md_parse_option): Handle new options.
383 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
384 branch relaxation.
385 (relaxed_branch_length): New function.
386 (md_estimate_size_before_relax): Handle branch frags.
387 (mips_relax_frag): Likewise.
388 (md_convert_frag): Handle branch frags. Warn if branch is
389 relaxed.
390
391 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
392
393 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
394 emitted.
395 (md_apply_fix3): Add TLS relocs.
396 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
397 @DTPOFF.
398
399 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
400 Alan Modra <amodra@bigpond.net.au>
401
402 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
403 (md_estimate_size_before_relax): Likewise for 8 bit branches.
404
405 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
406
407 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
408 inside loop.
409
410 2002-10-09 Richard Shann <richard.shann@superh.com>
411 Stephen Clarke <stephen.clarke@superh.com>
412
413 * config/tc-sh64.c (sh64_target_format): Add support for sh64
414 Linux environment.
415
416 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
417
418 * contig/tc-sh.c (sh_local_pcrel): New.
419 (sh_force_relocation): Use sh_local_pcrel.
420 (md_pcrel_from_section): Check the relocation type whether it
421 should be resolved locally. Use S_FORCE_RELOC.
422
423 2002-10-01 Alan Modra <amodra@bigpond.net.au>
424
425 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
426 (TC_FORCE_RELOCATION): Tidy arg.
427
428 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
429 Ken Raeburn <raeburn@cygnus.com>
430 Aldy Hernandez <aldyh@redhat.com>
431 DJ Delorie <dj@redhat.com>
432 Michael Meissner <meissner@redhat.com>
433 Eric Christopher <echristo@redhat.com>
434 Richard Sandiford <rsandifo@redhat.com>
435
436 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
437 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
438 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
439 (hilo_interlocks): True for CPU_VR5500.
440 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
441 (mips_fix_vr4122_bugs): New.
442 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
443 (mips_emit_delays): Likewise.
444 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
445 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
446 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
447 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
448 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
449 (OPTION_ELF_BASE): Bump.
450 (md_parse_option): Handle the new options.
451 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
452 vr5400 and vr5500.
453
454 2002-09-29 H.J. Lu <hjl@gnu.org>
455
456 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
457 twice if howto->pcrel_offset is true.
458
459 2002-09-28 Matt Thomas <matt@3am-software.com>
460 Jason Thorpe <thorpej@wasabisystems.com>
461
462 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
463 convert undefined references to GOT32/PLT32 if PIC code is
464 requested. Fix comment.
465
466 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
467
468 * config/tc-sh.c (sh_force_relocation): Return 0 for
469 some PC relative relocations when not relaxing.
470
471 2002-09-26 Jakub Jelinek <jakub@redhat.com>
472
473 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
474 Define them if not BFD_ASSEMBLER.
475 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
476 @tlsld.
477 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
478 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
479 (tc_gen_reloc): Handle x86-64 TLS relocs.
480
481 2002-09-27 Alan Modra <amodra@bigpond.net.au>
482
483 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
484 fixups to current or absolute section.
485
486 2002-09-26 Jim Wilson <wilson@redhat.com>
487
488 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
489 and frag_more.
490
491 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
492
493 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
494 capable configuration.
495 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
496 generation.
497 (mips_ip): Likewise.
498
499 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
500
501 * config/tc-mips.c (append_insn): Fix jump overflow check.
502
503 2002-09-24 Alan Modra <amodra@bigpond.net.au>
504
505 * config/tc-i386.c (process_operands): Warn about "lea" segment
506 overrides.
507
508 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
509
510 * write.c: Delete set_segment_vma and prototype. Update all callers.
511
512 2002-09-21 Alan Modra <amodra@bigpond.net.au>
513
514 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
515 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
516 Rename "fseg" to "sym_seg".
517 * Makefile.am: Run "make dep-am".
518 * Makefile.in: Regenerate.
519 * doc/Makefile.in: Regenerate.
520
521 2002-09-20 Nick Clifton <nickc@redhat.com>
522
523 * symbols.c (colon): Do not allow symbols to be created in the
524 absolute section if WORKING_DOT_WORD is not defined and
525 new_broken_words would require a new frag to be created.
526
527 2002-09-20 Alan Modra <amodra@bigpond.net.au>
528
529 * expr.c (expr): Simplify foo-foo here.
530 (clean_up_expression): Remove O_subtract code.
531
532 * write.h (struct fix): Add fx_dot_value.
533 (dot_value): Declare.
534 * write.c (dot_value): New var.
535 (fix_new_internal): Save dot_value as fx_dot_value.
536 (fixup_segment): Adjust fx_offset using fx_dot_value.
537 * expr.c (expr): Update dot_value.
538
539 2002-09-19 Jakub Jelinek <jakub@redhat.com>
540
541 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
542 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
543 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
544 if not defined.
545 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
546 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
547 BFD_RELOC_386_TLS_GOTIE.
548
549 2002-09-19 Richard Henderson <rth@redhat.com>
550
551 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
552 branch type relocs.
553 (alpha_force_relocation): Don't special-case branch type relocs.
554
555 2002-09-19 Nick Clifton <nickc@redhat.com>
556
557 * config/tc-m68k.c (select_control_regs): Handle situation where
558 architecture has not yet been selected.
559
560 2002-09-18 Chris Demetriou <cgd@broadcom.com>
561
562 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
563 (IS_SEXT_16BIT_NUM): New macro.
564 (macro_build_ldst_constoffset): New function, to build a set of
565 instructions to do a load or store from a constant offset relative
566 to a given register.
567 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
568 .cprestore pseudo-op.
569
570 2002-09-18 Chris Demetriou <cgd@broadcom.com>
571
572 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
573
574 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
575
576 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
577
578 2002-09-17 Stan Cox <scox@redhat.com>
579
580 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
581 (macro): Likewise for la. Likewise for ld.
582 (mips_after_parse_args): Make -xgot optional, not the default.
583 (md_apply_fix3): Allow composite relocation to set up gp.
584 (tc_gen_reloc): Allow relaxing for newabi.
585 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
586 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
587
588 2002-09-17 Nick Clifton <nickc@redhat.com>
589
590 * config/tc-arm.c (md_apply_fix3): Note that an implemented
591 BFD_RELOC_ARM_IMMEDIATE has been done.
592 (tc_gen_reloc): Do not issue reloc number of unimplemented
593 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
594 their name is already in the error message - plus remove them
595 from the default case.
596
597 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
598 behavior of instructions.
599
600 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
601
602 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
603 Convert functions to K&R format.
604
605 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
606
607 * config/tc-mips.c (pdr_seg): Define only for ELF.
608 (s_change_section): Remove unused variable. Don't use for nonELF.
609
610 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
611
612 * config/obj-elf.c (obj_elf_change_section): Move prototype to
613 obj-elf.h
614 * config/obj-elf.h (obj_elf_change_section): Likewise.
615
616 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
617
618 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
619 (out_debug_info): Likewise.
620
621 2002-09-16 Bruno Haible <bruno@clisp.org>
622
623 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
624 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
625 * config/tc-i386.c (i386_target_format): Likewise.
626 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
627 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
628
629 2002-09-13 Nick Clifton <nickc@redhat.com>
630
631 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
632 when deciding if any operands have been skipped.
633
634 2002-09-11 Nick Clifton <nickc@redhat.com>
635
636 * NEWS: New TI port supports both C4x and C3x series of DSPs.
637
638 * po/tr.po: Updated Turkish translation.
639
640 2002-09-11 Jakub Jelinek <jakub@redhat.com>
641
642 * config/tc-i386.c (md_apply_fix3): Allow addend for
643 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
644 BFD_RELOC_386_TLS_LE_32.
645
646 2002-09-05 Jeff Law <law@redhat.com>
647
648 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
649 marker relocations such as ENTRY/EXIT.
650 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
651 to both OBJ_ELF and OBJ_SOM.
652
653 2002-09-05 Alan Modra <amodra@bigpond.net.au>
654
655 * doc/internals.texi (md_apply_fix3): Expand.
656 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
657 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
658 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
659 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
660 EXTERN_FORCE_RELOC): Document.
661 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
662 * as.h: Don't include struc-symbol.h for arc.
663 (IS_ELF): Define.
664 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
665 subtract absolute symbol.
666 * obj.h (struct format_ops): Add frob_file_before_fix.
667 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
668 * symbols.c (S_FORCE_RELOC): New function.
669 * symbols.h (S_FORCE_RELOC): Declare.
670 * write.c (TC_FORCE_RELOCATION): Change default.
671 (TC_FORCE_RELOCATION_ABS): Define.
672 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
673 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
674 (TC_FORCE_RELOCATION_SECTION): Don't define.
675 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
676 (TC_FORCE_RELOCATION_SUB_ABS): Define.
677 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
678 (TC_VALIDATE_FIX_SUB): Define.
679 (TC_FIX_ADJUSTABLE): Don't define.
680 (MD_APPLY_SYM_VALUE): Define this instead.
681 (abs_section_sym): New variable.
682 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
683 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
684 Don't put the absolute section sym on fixups here.
685 (fix_segment): New function.
686 (write_relocs): Don't call fixup_segment from here.
687 (write_object_file): Instead call tc_frob_file_before_fix,
688 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
689 Don't output the absolute section symbol.
690 (fixup_segment): Rewrite.
691 * write.h (abs_section_sym): Declare.
692 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
693 obj_aout_frob_file.
694 (aout_format_ops): Adjust to suit.
695 * config/obj-aout.h (obj_frob_file): Don't define.
696 (obj_frob_file_before_fix): Define.
697 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
698 (S_FORCE_RELOC): Define.
699 * config/obj-bout.h (S_FORCE_RELOC): Define.
700 * config/obj-coff.c (coff_format_ops): Init new field.
701 * config/obj-coff.h: Formatting fixes.
702 (obj_sec_sym_ok_for_reloc): Define.
703 (S_FORCE_RELOC): Define.
704 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
705 (ecoff_frob_file): .. from here.
706 (ecoff_format_ops): Add new function.
707 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
708 (obj_frob_file_before_fix): Define.
709 * config/obj-elf.c (elf_format_ops): Init new field.
710 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
711 * config/obj-ieee.h: Formatting fixes.
712 (S_FORCE_RELOC): Define.
713 * config/obj-multi.h (obj_frob_file_before_fix): Define.
714 * config/obj-vms.h (S_FORCE_RELOC): Define.
715 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
716 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
717 for BFD_RELOC_32 and BFD_RELOC_64.
718 (alpha_fix_adjustable): Remove extern and weak tests.
719 (alpha_before_fix): Rename from alpha_adjust_symtab.
720 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
721 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
722 (TC_VALIDATE_FIX): Tweak param name.
723 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
724 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
725 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
726 (MD_APPLY_SYM_VALUE): Define.
727 (tc_adjust_symtab): Don't define.
728 (alpha_adjust_symtab): Don't declare.
729 (tc_frob_file_before_fix): Define.
730 (alpha_before_fix): Declare.
731 (TC_INIT_FIX_DATA): Tweak param names.
732 * config/tc-arc.c: Include "struc-symbol.h".
733 (md_pcrel_from): Remove undefined sym fudge.
734 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
735 Don't set fx_addnumber.
736 (tc_gen_reloc): Remove spurious fx_addnumber comment.
737 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
738 (EXTERN_FORCE_RELOC): Define.
739 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
740 (tc_gen_reloc): Fudge ARM_GOTPC addend.
741 (arm_validate_fix): Return void.
742 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
743 Add plt and got reloc tests.
744 (arm_force_relocation): Call S_FORCE_RELOC.
745 * config/tc-arm.h (struct fix): Forward declare.
746 (TC_VALIDATE_FIX): No longer set add_symbolP.
747 (arm_validate_fix): Adjust declaration.
748 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
749 (TC_FORCE_RELOCATION): Tweak param name.
750 (TC_INIT_FIX_DATA): Likewise.
751 (obj_fix_adjustable): Don't define.
752 (tc_fix_adjustable): Call arm_fix_adjustable.
753 (TC_FIX_ADJUSTABLE): Don't define.
754 (MD_APPLY_SYM_VALUE): Define.
755 (EXTERN_FORCE_RELOC): Define.
756 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
757 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
758 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
759 Remove *valP fudges and code to subtract abs sym. Don't set
760 fx_addnumber.
761 * config/tc-avr.h: Formatting.
762 (EXTERN_FORCE_RELOC): Define.
763 (MD_APPLY_SYM_VALUE): Define.
764 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
765 (md_apply_fix3): Remove code to subtract abs sym.
766 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
767 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
768 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
769 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
770 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
771 (tc_fix_adjustable): Remove extern, weak tests.
772 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
773 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
774 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
775 and code to subtract abs sym.
776 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
777 (d10v_force_relocation): Call S_FORCE_RELOC.
778 * config/tc-d10v.h: Don't include write.h.
779 (struct fix): Instead, forward declare.
780 (MD_PCREL_FROM_SECTION): Tweak param names.
781 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
782 (d10v_fix_adjustable): Likewise.
783 (obj_fix_adjustable): Don't define.
784 (tc_fix_adjustable): Define.
785 (TC_FORCE_RELOCATION): Tweak param name.
786 (MD_APPLY_SYM_VALUE): Define.
787 (EXTERN_FORCE_RELOC): Define.
788 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
789 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
790 and code to subtract abs sym.
791 * config/tc-d30v.h: Don't include write.h.
792 (struct fix): Instead, forward declare.
793 (MD_PCREL_FROM_SECTION): Tweak param names.
794 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
795 (MD_APPLY_SYM_VALUE): Define.
796 (EXTERN_FORCE_RELOC): Define.
797 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
798 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
799 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
800 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
801 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
802 Don't use fx_addnumber.
803 * config/tc-dlx.h: Don't include write.h.
804 (md_convert_frag): We're not alpha twice over.
805 (EXTERN_FORCE_RELOC): Define.
806 (obj_fix_adjustable): Don't define.
807 (tc_fix_adjustable): Define.
808 (TC_FIX_ADJUSTABLE): Don't define.
809 (MD_APPLY_SYM_VALUE): Define.
810 (LOCAL_LABELS_DOLLAR): Undef always.
811 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
812 (fr30_fix_adjustable): Remove extern, weak tests.
813 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
814 (obj_fix_adjustable): Don't define.
815 (tc_fix_adjustable): Define.
816 (struct fix): Forward declare.
817 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
818 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
819 (frv_fix_adjustable): Don't do extern, weak tests.
820 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
821 (TC_FIX_ADJUSTABLE): Don't define.
822 (obj_fix_adjustable): Don't define.
823 (tc_fix_adjustable): Define.
824 (struct fix): Forward declare.
825 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
826 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
827 * config/tc-h8300.h (struct fix): Forward declare.
828 (EXTERN_FORCE_RELOC): Define.
829 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
830 (hppa_fix_adjustable): Don't test extern or weak. Don't
831 symbol_mark_used_in_reloc.
832 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
833 and S_IS_WEAK.
834 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
835 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
836 (TC_FORCE_RELOCATION_SECTION): Don't define.
837 (MD_APPLY_SYM_VALUE): Define.
838 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
839 to subtract abs sym.
840 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
841 (MD_APPLY_SYM_VALUE): Define.
842 (MD_PCREL_FROM_SECTION): Tweak param name.
843 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
844 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
845 (i386_force_relocation): New function.
846 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
847 (TC_VALIDATE_FIX): Likewise.
848 (TC_FIX_ADJUSTABLE): Don't define.
849 (MD_APPLY_SYM_VALUE): Define.
850 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
851 (i386_force_relocation): Declare.
852 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
853 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
854 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
855 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
856 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
857 (EXTERN_FORCE_RELOC): Define.
858 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
859 (md_apply_fix3): Don't cast valP pointer type. Move code here from
860 old fixup_segment. No need to test fx_pcrel before setting fx_done.
861 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
862 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
863 Remove #if 0 code. Invert return boolean.
864 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
865 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
866 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
867 (tc_coff_sizemachdep): Prototype.
868 (i960_handle_align): Likewise.
869 (i960_validate_fix): Adjust declaration.
870 (reloc_callj): Likewise.
871 (EXTERN_FORCE_RELOC): Define.
872 (TC_FORCE_RELOCATION_SUB_SAME): Define.
873 (TC_FORCE_RELOCATION_ABS): Define.
874 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
875 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
876 (TC_FIX_ADJUSTABLE): Don't define.
877 (MD_APPLY_SYM_VALUE): Define.
878 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
879 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
880 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
881 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
882 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
883 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
884 (MD_APPLY_SYM_VALUE): Define.
885 (EXTERN_FORCE_RELOC): Define.
886 (TC_FORCE_RELOCATION): Tweak param name.
887 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
888 (m32r_fix_adjustable): Don't test extern, weak.
889 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
890 (MD_APPLY_SYM_VALUE): Define.
891 (obj_fix_adjustable): Don't define.
892 (tc_fix_adjustable): Define.
893 (tc_frob_file): Don't define.
894 (tc_frob_file_before_fix): Define.
895 (EXTERN_FORCE_RELOC): Define.
896 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
897 BFD_RELOC_VTABLE_ENTRY address.
898 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
899 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
900 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
901 Remove duplicated fx_done code.
902 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
903 (EXTERN_FORCE_RELOC): Define.
904 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
905 relaxable_symbol.
906 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
907 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
908 (TC_FIX_ADJUSTABLE): Don't define.
909 (EXTERN_FORCE_RELOC): Define.
910 (MD_APPLY_SYM_VALUE): Define.
911 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
912 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
913 Remove fx_addsy tests.
914 (mcore_force_relocation): Call S_FORCE_RELOC.
915 (mcore_fix_adjustable): Don't test fx_addsy.
916 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
917 (EXTERN_FORCE_RELOC): Define.
918 (obj_fix_adjustable): Don't define.
919 (tc_fix_adjustable): Define.
920 (MD_APPLY_SYM_VALUE): Define.
921 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
922 (mips_pic): No longer static.
923 (mips_force_relocation): Call S_FORCE_RELOC.
924 (mips_fix_adjustable): Remove extern, weak tests.
925 * config/tc-mips.h (enum mips_pic_level): Declare.
926 (mips_pic): Declare.
927 (tc_frob_file): Don't define.
928 (tc_frob_file_before_fix): Define this instead.
929 (EXTERN_FORCE_RELOC): Define.
930 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
931 with reg_section tests. Set fx_done instead of calling
932 symbol_clear_used_in_reloc on bad relocs.
933 (tc_gen_reloc): Zero fx_addsy on bad relocs.
934 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
935 (mmix_adjust_symtab): Simplify list handling. Abort on any
936 nonsense.
937 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
938 BFD_RELOC_MMIX_LOCAL.
939 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
940 (EXTERN_FORCE_RELOC): Define.
941 (MD_PCREL_FROM_SECTION): Tweak param name.
942 (tc_frob_file): Don't define.
943 (tc_frob_file_before_fix): Define this instead.
944 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
945 Remove SEC_CODE checks.
946 (mn10300_fix_adjustable): Remove extern and weak tests.
947 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
948 (TC_FORCE_RELOCATION): Tweak param name.
949 (obj_fix_adjustable): Don't define.
950 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
951 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
952 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
953 (openrisc_fix_adjustable): Don't test fx_addsy.
954 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
955 (obj_fix_adjustable): Don't define.
956 (tc_fix_adjustable): Define this instead.
957 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
958 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
959 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
960 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
961 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
962 (MD_APPLY_SYM_VALUE): Define.
963 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
964 Don't subtract symbol value.
965 * config/tc-pj.h (md_pcrel_from): Tweak param name.
966 (EXTERN_FORCE_RELOC): Define.
967 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
968 (MD_APPLY_SYM_VALUE): Define.
969 (obj_fix_adjustable): Don't define.
970 (tc_fix_adjustable): Define this instead.
971 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
972 section sym.
973 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
974 (ppc_force_relocation <elf version>): New.
975 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
976 (md_apply_fix3): Don't subtract symbol values for ELF. Update
977 comments. Don't subtract fx_subsy as that is already done.
978 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
979 (MD_PCREL_FROM_SECTION): Likewise.
980 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
981 ppc_force_relocation.
982 (TC_FORCE_RELOCATION_SECTION): Delete.
983 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
984 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
985 (MD_APPLY_SYM_VALUE): Define.
986 * config/tc-s390.c: #include "dwarf2dbg.h".
987 (s390_insn): Remove excess parens.
988 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
989 (tc_s390_force_relocation): Call S_FORCE_RELOC.
990 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
991 non-NULL. Don't subtract off fx_addsy value.
992 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
993 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
994 (TC_FIX_ADJUSTABLE): Don't define.
995 (MD_APPLY_SYM_VALUE): Define.
996 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
997 (SWITCH_TABLE): Likewise.
998 (sh_force_relocation): Call S_FORCE_RELOC.
999 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
1000 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
1001 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
1002 fx_addnumber is zero on entry. Save val in fx_addnumber.
1003 (tc_gen_reloc): Don't subtract fx_subsy.
1004 * config/tc-sh.h (struct fix): Move.
1005 (obj_fix_adjustable): Don't define.
1006 (tc_fix_adjustable): Define this instead.
1007 (TC_FIX_ADJUSTABLE): Don't define.
1008 (MD_APPLY_SYM_VALUE): Define.
1009 (SWITCH_TABLE_CONS): Define.
1010 (SWITCH_TABLE): Define.
1011 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1012 (TC_VALIDATE_FIX_SUB): Define.
1013 (MD_PCREL_FROM_SECTION): Tweak param name.
1014 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1015 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1016 (TC_FORCE_RELOCATION_SUB_ABS): Define.
1017 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1018 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1019 (TC_FORCE_RELOCATION_SUB_SAME): Define.
1020 (TC_VALIDATE_FIX_SUB): Define.
1021 (MD_PCREL_FROM_SECTION): Tweak param name.
1022 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
1023 (tc_gen_reloc): Use S_FORCE_RELOC.
1024 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
1025 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
1026 (TC_FORCE_RELOCATION_ABS): Define this instead.
1027 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1028 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
1029 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
1030 (MD_APPLY_SYM_VALUE): Define.
1031 (TC_FIX_DATA_PRINT): Tweak param name.
1032 * config/tc-tic30.c (USE_STDOUT): Don't define.
1033 (md_parse_option): Remove stupid debug code.
1034 (tc_gen_reloc): Don't use fx_addnumber.
1035 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
1036 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
1037 * config/tc-v850.h (obj_fix_adjustable): Don't define.
1038 (tc_fix_adjustable): Define this instead.
1039 (TC_FIX_ADJUSTABLE): Don't define.
1040 (MD_APPLY_SYM_VALUE): Define this instead.
1041 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
1042 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
1043 (TC_FIX_ADJUSTABLE): Don't define.
1044 (MD_APPLY_SYM_VALUE): Define this instead.
1045 (tc_fix_adjustable): Remove extern and weak tests.
1046 * config/tc-w65.h (struct fix): Forward declare.
1047 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
1048 S_FORCE_RELOC.
1049 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
1050 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
1051 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
1052 absolute symbol.
1053 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
1054 (MD_APPLY_SYM_VALUE): Define.
1055 (obj_fix_adjustable): Don't define.
1056 (tc_fix_adjustable): Define this instead.
1057 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
1058
1059 2002-09-04 Alan Modra <amodra@bigpond.net.au>
1060
1061 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
1062 (ppc_fix_adjustable <coff version>): Cleanup.
1063
1064 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
1065 (md_parse_option): No -a64 without BFD64.
1066 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
1067 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
1068
1069 2002-09-04 Nick Clifton <nickc@redhat.com>
1070
1071 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
1072 instructions into the hash table if the target cpu is the BookE32.
1073
1074 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
1075
1076 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
1077 ATTRIBUTE_UNUSED.
1078
1079 2000-08-28 Catherine Moore <clm@redhat.com>
1080
1081 * tc-v850.c (v850_relax): Declare.
1082 (v850_longcode): New routine.
1083 (v850_handle_align): New routine.
1084 (md_pseudo_table): Add longcall and longjump.
1085 (md_parse_option): Check for relax option.
1086 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
1087 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
1088 (md_apply_fix3): Likewise.
1089 (v850_force_relocation): Likewise.
1090 (v850_comm): Change the current section.
1091 (md_assemble): Ensure that the correct value is put in the
1092 fixup.
1093 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1094 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
1095 Remove redundant v850ea support.
1096 * tc-v850.h (HANDLE_ALIGN): Define.
1097 (v850_handle_align): Declare.
1098 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
1099
1100 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1101
1102 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
1103 * configure: Regenerate.
1104 * NEWS: Mention new port.
1105
1106 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1107
1108 * config/obj-coff.c: Add sdef definition.
1109 * config/obj-coff.h: Add tic4x include file and set
1110 target format.
1111 * config/tc-tic4x.c: New file.
1112 * config/tc-tic4x.h: New file.
1113
1114 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1115
1116 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
1117 (TC_ADJUST_RELOC_COUNT): Tweak param name.
1118 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
1119 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
1120 (RELOC_ENUM): Define.
1121 (fix_new_internal): Use RELOC_ENUM.
1122 (fix_new, fix_new_exp): Likewise.
1123 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
1124 Replace gotos with continue.
1125 (write_relocs): Formatting. Avoid symbol loops in
1126 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
1127 errors, and error number in other cases.
1128 (fixup_segment): Remove param names from prototype. Rename
1129 "this_segment_type" to "this_segment". Update linkrelax comment.
1130 Remove "size, "place" and "where" local vars. Formatting. Update
1131 "no symbol" comment. Remove #if 0 and #if 1.
1132
1133 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
1134
1135 2002-08-27 Alan Modra <amodra@bigpond.net.au>
1136
1137 * dwarf2dbg.c: Always include dwarf2dbg.h.
1138 (dwarf2_directive_file): Adjust dummy version args.
1139 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
1140 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
1141 when symbol values differ.
1142 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
1143 (pseudo_set <O_subtract>): Remove unnecessary segment test.
1144 * config/obj-bout.c (obj_pseudo_table): Warning fix.
1145
1146 2002-08-26 Alan Modra <amodra@bigpond.net.au>
1147
1148 * config/tc-w65.c (md_section_align): Fix typo.
1149 (md_parse_option): Return 0, not 1.
1150
1151 2002-08-22 Nick Clifton <nickc@redhat.com>
1152
1153 * doc/as.texinfo (Section): Note that if '@' is a comment
1154 character then another symbol is used to prefix the section's
1155 type.
1156
1157 2002-08-22 Christian Groessler <chris@groessler.org>
1158
1159 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
1160 "case 0" case.
1161
1162 2002-08-12 Graeme Peterson <gp@qnx.com>
1163
1164 * configure.in: Add support for sh-**-nto* target.
1165 * configure: Regenerate.
1166
1167 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
1168
1169 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
1170
1171 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1172
1173 * config/tc-ppc.c (ppc_cleanup): Do something only if format
1174 is ELF.
1175 (ppc_apuinfo_section_add): Define only if format is ELF.
1176 (md_assemble): Emit APUinfo section only if format is ELF.
1177 Fix formatting.
1178
1179 2002-08-21 Alan Modra <amodra@bigpond.net.au>
1180
1181 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
1182 * config/tc-frv.c: Likewise.
1183 * config/tc-hppa.c: Likewise.
1184 * config/tc-ia64.c: Likewise.
1185 * config/tc-ip2k.c: Likewise.
1186 * config/tc-m68hc11.c: Likewise.
1187 * config/tc-m68k.c: Likewise.
1188 * config/tc-mmix.c: Likewise.
1189 * config/tc-mn10300.c: Likewise.
1190 * config/tc-sh.c: Likewise.
1191 * config/tc-sparc.c: Likewise.
1192 * config/tc-v850.c: Likewise.
1193
1194 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
1195
1196 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
1197 by zero.
1198
1199 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1200
1201 From matthew green <mrg@redhat.com>
1202
1203 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
1204 PPC_OPCODE_PPC is, except for BookE architectures.
1205 (md_parse_option): Add support for -mspe.
1206 (md_show_usage): Add -mspe.
1207 (md_parse_option): Add support for -me500 and
1208 -me500x2 to generate code for Motorola e500 core complex.
1209 (md_show_usage): Add -me500 and -me500x2.
1210
1211 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
1212 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
1213 PPC_APUINFO_BRLOCK): New macros.
1214
1215 (ppc_cleanup): New function.
1216 (ppc_apuinfo_section_add): New function.
1217 (APUID): New macro.
1218 (md_assemble): Collect info and write the APUinfo section.
1219
1220 * config/tc-ppc.h (md_cleanup): Define.
1221 (ppc_cleanup): Export.
1222 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
1223
1224 2002-08-17 Stan Cox <scox@redhat.com>
1225
1226 * config/obj-elf.c (obj_elf_change_section): Make non-static.
1227 config/tc-mips.c (s_change_section): New function to support
1228 IRIX .section pseudo-op.
1229
1230 2002-08-16 Nick Clifton <nickc@redhat.com>
1231
1232 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
1233
1234 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
1235
1236 * config/tc-mips.c (macro_build_jalr): Make sure we generate
1237 the fix-up against on the right frag.
1238 (s_cpsetup): Likewise. Parse third argument as expression, to
1239 handle global symbols and forward/backward labels correctly.
1240
1241 2002-08-14 Nick Clifton <nickc@redhat.com>
1242
1243 * read.c (stringer): Catch attempts to create strings in the abs
1244 section.
1245
1246 * config/tc-alpha.c: Fix compiling for COFF targets.
1247 Some minor formatting tidyups.
1248
1249 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1250
1251 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
1252 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
1253 according to the reloc.
1254 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
1255 (TC_FORCE_RELOCATION): Define.
1256 (tc_m68hc11_force_relocation): Declare.
1257
1258 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
1259 (s_m68hc11_relax): New function for relax group.
1260 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
1261 beginning of jump instruction.
1262 (md_pcrel_from): Rename from md_pcrel_from_section and fix
1263 address computation.
1264 (tc-gen_reloc): Update.
1265 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
1266 PC-relative fixup.
1267 (tc_m68hc11_force_relocation): New function, handle new relocs.
1268 (tc_m68hc11_fix_adjustable): New to make sure there are enough
1269 reloc for the linker relax pass.
1270 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
1271 and VTABLE relocs.
1272
1273 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1274
1275 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
1276 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
1277 (s_m68hc11_mode): New function for .mode pseudo op.
1278 (s_m68hc11_mark_symbol): New function for .far and .interrupt
1279 pseudo op.
1280 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
1281 (m68hc11_elf_final_processing): Declare.
1282
1283 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1284
1285 * config/tc-m68hc11.c (md_begin): Take into account additional
1286 page operand for call instruction.
1287 (print_opcode_format): Likewise.
1288 (check_range): Likewise for page range checking.
1289 (get_operand): Don't skip a possible comma in operands.
1290 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
1291 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
1292 (fixup24): New to handle call reloc.
1293 (build_insn): Handle missing page operand for call instruction.
1294 (find): Likewise.
1295 (md_apply_fix3): Take into account new relocs.
1296 (get_operand): Fix the mode for indexed indirect addressing.
1297 (build_indexed_byte): Fix post index byte for indexed indirect mode.
1298
1299 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
1300
1301 * config/tc-mips.c (mips_ip): Don't work out the value of
1302 constant %hi()s here.
1303
1304 2002-08-10 Alan Modra <amodra@bigpond.net.au>
1305
1306 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
1307 for ELF, and don't bother checking ELF relocs when non-ELF.
1308 (i386_immediate): Allow absolute_section expressions for aout.
1309 (i386_displacement): Likewise. Also test bfd_is_com_section.
1310 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
1311 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
1312 not when fx_addsy. Remove dead code.
1313
1314 2002-08-09 Graeme Peterson <gp@qnx.com>
1315
1316 * configure.in: Add support for ppc-*-nto* target.
1317 * configure: Regenerate.
1318
1319 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1320
1321 * config/tc-i386.h: Reorganize.
1322
1323 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1324
1325 * config/tc-mips.c (macro): Handle a register plus a 16-bit
1326 immediate offset in "dla" and "la" expansions.
1327
1328 2002-08-09 Alan Modra <amodra@bigpond.net.au>
1329
1330 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
1331 Remove "bfd_gas=yes" from target table when covered later.
1332 Consolidate some entries.
1333 * configure: Regenerate
1334
1335 2002-08-09 Jakub Jelinek <jakub@redhat.com>
1336
1337 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
1338 at start of insn, pass it to output_disp and output_imm.
1339 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
1340 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
1341 properly addend.
1342 (output_imm): Added arguments. Compute properly addend for
1343 R_386_GOTPC.
1344 (md_apply_fix3): Remove R_386_GOTPC handling.
1345
1346 2002-08-06 George France <france@handhelds.org>
1347
1348 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
1349 and m21264b processor names and cpu types.
1350 * doc/c-alpha.texi: Documented new types.
1351
1352 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1353
1354 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
1355
1356 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
1357
1358 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
1359 handling to BFD_RELOC_MIPS16_GPREL.
1360
1361 2002-08-01 Nick Clifton <nickc@redhat.com>
1362
1363 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
1364 pool is computed using signed arithmetic so that proper sign
1365 extension is performed if X_add_number is a 64-bit integer.
1366
1367 2002-08-01 H.J. Lu <hjl@gnu.org>
1368 Daniel Jacobowitz <drow@mvista.com>
1369
1370 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
1371 .debug_line section unless it has line information.
1372
1373 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1374
1375 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
1376 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
1377 Allow default displacement size to be an option "--disp-size-default".
1378 (md_number_to_disp): Make error messages include value. Use %d to
1379 print integers, not %s.
1380 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
1381 get duplicate messages sometimes.
1382 (convert_iif): Grow frag to max possible instruction size. Avoid
1383 creating unnecessary fixes.
1384 (md_number_to_field) Add prototype.
1385 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
1386 prototypes and make static.
1387 (struct addr_mode): Make mode and scaled_mode explicitly signed.
1388 (evaluate_expr): Use resultP argument instead of exprP global.
1389 (get_addr_mode): Quiten compiler warnings.
1390 (encode_operand): eliminate unused variables. Quiten compiler
1391 warnings. Eliminate nul character in format strings.
1392 (parse): argc is unsigned.
1393 (reloc): Type cast index to quieten compiler.
1394 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
1395 (md_convert_frag): Note unused parameters. Remove unused
1396 variables.
1397 (md_create_long_jump, md_create_short_jump,
1398 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
1399 unused parameters.
1400
1401 2002-07-31 Nick Clifton <nickc@redhat.com>
1402
1403 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
1404 of the PDP-11 and 2.11BSD a.out support.
1405
1406 2002-07-31 Momchil Velikov <velco@fadata.bg>
1407
1408 * config/tc-v850.c (md_assemble): Fix range check for immediate
1409 operand.
1410
1411 2002-07-30 Chris Demetriou <cgd@broadcom.com>
1412
1413 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
1414 to Broadcom SB-1 core support.
1415
1416 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1417
1418 * config/tc-mips.c (mips_target_format): Fix formatting.
1419 Add recognition of n32 ABI formats.
1420
1421 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1422
1423 * tc-mips.c (load_address): Don't clobber $at when loading a
1424 64-bit address in non-PIC code if noat is in effect.
1425 (macro): Likewise.
1426
1427 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1428
1429 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
1430 used in division/multiply macro expansions similarly to how they
1431 are used in the variants with break instructions.
1432 (macro2): Likewise.
1433
1434 2002-07-30 Graeme Peterson <gp@qnx.com>
1435
1436 * configure.in: Add support for arm-*-nto target.
1437 * configure: Regenerate.
1438
1439 2002-07-30 Nick Clifton <nickc@redhat.com>
1440
1441 * config/tc-arm.c (struct literal_pool): Add fields to allow
1442 multiple literal pools to be maintained.
1443 (find_literal_pool): New function.
1444 (find_or_make_literal_pool): New function.
1445 (add_to_literal_pool): Use find_or_make_literal_pool.
1446 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
1447 needed.
1448 (s_ltorg): Use find_literal_pool.
1449 (arm_cleanup): Dump all literal pools.
1450 * doc/c-arm.texi: Document new behaviour of only dumping literal
1451 pools upon request.
1452
1453 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1454
1455 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
1456 rather than PPC_OPCODE_32 for powerpc64*.
1457
1458 2002-07-25 Nick Clifton <nickc@redhat.com>
1459
1460 * po/es.po: Updated Spanish translation.
1461 * po/fr.po: Updated French translation.
1462
1463 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
1464
1465 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
1466 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
1467 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
1468 * configure, config.in: Regenerate.
1469 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
1470 (mips_set_options): Remove "abi" field.
1471 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
1472 with mips_abi.
1473 (mips_cpu): Remove.
1474 (mips_arch_string, mips_arch_info): New vars.
1475 (mips_tune_string, mips_tune_info): New vars.
1476 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
1477 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
1478 (mips_isa_to_str, mips_cpu_to_str): Remove.
1479 (mips_ip): If the selected architecture is a generic ISA rather
1480 than a processor, only mention the ISA level in error messages.
1481 (OPTION_MCPU): Remove.
1482 (OPTION_FP64): New.
1483 (md_longopts): Add -mfp64, remove -mcpu.
1484 (mips_set_option_string): New fn.
1485 (md_parse_option): Make -mipsN update file_mips_isa rather than
1486 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
1487 Don't let -mgp32 and -mfp32 change the ABI.
1488 (show): Move to end of file. Constify string argument.
1489 (md_show_usage): Move to the end of the file. Read available
1490 architectures from mips_cpu_info_table.
1491 (mips_set_architecture): New fn.
1492 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
1493 is an alias for -march=mipsN. Don't change the ABI based on other
1494 flags. Infer the register size from the ABI as well as the
1495 architecture. Complain about more conflicting arguments.
1496 Unify logic with GCC.
1497 (s_mipsset): Don't change the ABI.
1498 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
1499 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
1500 "mipsN"-type entries. Remove entries that vary only in the
1501 manufacturer's prefix, or that have "000" replaced by "k".
1502 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
1503 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
1504 (mips_parse_cpu): New fn.
1505 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
1506 (mips_cpu_info_from_isa): Minor formatting tweak.
1507
1508 2002-07-24 Nick Clifton <nickc@redhat.com>
1509
1510 * po/sv.po: Updated Swedish translation.
1511 * po/es.po: Updated Spanish translation.
1512
1513 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1514
1515 * Makefile.am: Run "make dep-am".
1516 * Makefile.in: Regenerate.
1517 * doc/Makefile.in: Regenerate.
1518 * config.in: Regenerate.
1519 * po/POTFILES.in: Regenerate.
1520
1521 2002-07-23 Nick Clifton <nickc@redhat.com>
1522
1523 * po/fr.po: Updated French translation.
1524
1525 2002-07-23 Nick Clifton <nickc@redhat.com>
1526
1527 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
1528 GAS.
1529
1530 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1531
1532 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
1533 instead of S_IS_EXTERN.
1534 (md_estimate_size_before_relax): Likewise.
1535 (mips_fix_adjustable): Likewise.
1536
1537 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1538
1539 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
1540
1541 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
1542 Nick Clifton <nickc@redhat.com>
1543
1544 * cond.c (s_ifdef): Treat a referenced but not yet defined
1545 symbol as if it were undefined, in exactly the same way as
1546 .equiv.
1547
1548 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
1549 consider referenced bug not yet defined symbols to be
1550 undefined.
1551
1552 2002-07-18 Denis Chertykov <denisc@overta.ru>
1553 Frank Ch. Eigler <fche@redhat.com>
1554 Alan Lehotsky <alehotsky@cygnus.com>
1555 John Healy <jhealy@redhat.com>
1556 Jeff Johnston <jjohnstn@redhat.com>
1557
1558 * configure.in: Add ip2k configuraton.
1559 * configure: Regenerate.
1560 * Makefile.am: Add ip2k configuraton.
1561 * Makefile.in: Regenerate.
1562 * configure: Regenerate.
1563 * Makefile.in: Regenerate.
1564 * config/tc-ip2k.c: New file.
1565 * config/tc-ip2k.h: New files.
1566 * NEWS: Mention new support.
1567 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
1568 * doc/Makefile.in: Regenerate.
1569 * doc/all.texi: Set IP2K
1570 * doc/as.texinfo: Add IP2K description.
1571 * doc/c-ip2k.texi: New file.
1572
1573 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1574
1575 * NEWS: Reformat to match style of other NEWS files.
1576
1577 2002-07-17 Jan Hubicka <jh@suse.cz>
1578
1579 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
1580
1581 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1582
1583 * config/tc-z8k.c (build_bytes): Correct order of memset args.
1584
1585 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
1586
1587 * NEWS: Add 'Changes in 2.13'.
1588
1589 2002-07-15 Matt Fredette <fredette@netbsd.org>
1590
1591 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
1592
1593 2002-07-12 Alan Modra <amodra@bigpond.net.au>
1594
1595 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
1596 case with non CODE_64BIT case. Don't warn on "qword ptr" if
1597 not CODE_64BIT.
1598
1599 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1600
1601 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
1602 (ppc_frob_file_before_adjust): New function.
1603 * config/tc-ppc.h (tc_frob_symbol): Don't define.
1604 (ppc_elf_frob_symbol): Don't declare.
1605 (tc_frob_file_before_adjust): Define.
1606 (ppc_frob_file_before_adjust): Declare.
1607
1608 * config/tc-ppc.c (md_pseudo_table): Warning fix.
1609 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
1610 flags.
1611 (ppc_size): Delete.
1612 (ppc_xcoff64): Rename to ppc_obj64.
1613 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
1614 (ppc_set_cpu): Set PPC_OPCODE_32 too.
1615 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
1616 or bfd_mach_ppc.
1617 (ppc_target_format): Use ppc_obj64 to select format.
1618 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
1619 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
1620 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
1621 (tc_frob_symbol): Likewise.
1622 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
1623 BFD_DEFAULT_TARGET_SIZE.
1624 (ppc_tc): Likewise.
1625 (ppc_is_toc_sym): Likewise.
1626 (md_apply_fix3): Likewise.
1627 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
1628 BFD_DEFAULT_TARGET_SIZE.
1629 (ELF_TC_SPECIAL_SECTIONS): Likewise.
1630 (tc_frob_symbol): Likewise.
1631
1632 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1633
1634 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
1635 (mips_ip): Likewise.
1636
1637 2002-07-09 Alan Modra <amodra@bigpond.net.au>
1638
1639 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
1640 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
1641 (md_apply_fix3): Formatting. Remove redundant test.
1642 (tc_gen_reloc): Remove redundant code.
1643 (tc_i386_force_relocation): Delete. Movy body of function to..
1644 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
1645
1646 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
1647
1648 * configure.in: Add hppa-*-openbsd* target, change
1649 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
1650 with sparc64 cpu.
1651 * configure: Regenerate.
1652
1653 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1654
1655 * config/tc-mips.c (macro): Shift the 32-bit address range
1656 accessible with a lone "lui" down by 32768.
1657
1658 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1659
1660 * config/tc-mips.c (load_address): Use non-trapping "daddu"
1661 instead of "dadd" in address calculations.
1662 (macro): Likewise.
1663
1664 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1665
1666 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
1667 movzx fudges.
1668 (md_assemble): Instead, zap the suffix here.
1669
1670 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1671
1672 * NEWS: Remove next release number until the release is actually
1673 upon us.
1674
1675 2002-07-03 Alan Modra <amodra@bigpond.net.au>
1676
1677 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
1678 Run "make dep-am".
1679 * Makefile.in: Regenerate.
1680
1681 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1682
1683 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
1684 to symbols in merge sections, even non pc-relative ones.
1685
1686 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1687
1688 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
1689
1690 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
1691
1692 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
1693 .softregs and .eeprom.
1694
1695 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1696
1697 * NEWS: Note the next release is 2.13.
1698
1699 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
1700
1701 * po/tr.po: New translation imported.
1702
1703 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
1704
1705 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
1706 (ecoff_directive_def): Likewise.
1707 (ecoff_directive_tag): Likewise.
1708 * listing.c (file_info): Likewise.
1709 * hash.c (what): Likewise.
1710
1711 2002-06-25 H.J. Lu <hjl@gnu.org>
1712
1713 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
1714 * Makefile.in: Regenerated.
1715
1716 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1717
1718 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
1719 (assemble_ppi): Generate warning if the same register is used
1720 twice as destination in the same padd / pmuls instruction.
1721
1722 2002-06-18 Dave Brolley <brolley@redhat.com>
1723
1724 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
1725 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
1726 * configure.in: Support frv-*-*.
1727 * Makefile.am (CPU_TYPES): Add frv.
1728 (TARGET_CPU_CFILES): Add tc-frv.c.
1729 (TARGET_CPU_HFILES): Add tc-frv.h.
1730 (DEPTC_frv_coff): New variable.
1731 (DEPTC_frv_elf): New variable.
1732 (DEPOBJ_frv_coff): New variable.
1733 (DEPOBJ_frv_elf): New variable.
1734 (DEP_frv_coff): New variable.
1735 (DEP_frv_elf): New variable.
1736 * tc-frv.c: New file.
1737 * tc-frv.h: New file.
1738
1739 2002-06-17 Catherine Moore <clm@redhat.com>
1740
1741 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
1742
1743 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1744
1745 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
1746
1747 2002-06-17 Tom Rix <trix@redhat.com>
1748
1749 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
1750
1751 2002-06-14 H.J. Lu <hjl@gnu.org>
1752 Daniel Jacobowitz <drow@mvista.com>
1753
1754 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
1755 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
1756 * config/tc-mips.c (s_mips_file): Call s_app_file_string
1757 and new_logical_line for the first .file directive.
1758 * read.c (s_app_file_string): New function.
1759 (s_app_file): Call it.
1760 * read.h (s_app_file_string): Add declaration.
1761
1762 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1763
1764 * configure.in: Remove MIPS_STABS_ELF.
1765 * configure: Regenerated.
1766 * config.in: Regenerated.
1767 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
1768 for MIPS targets.
1769 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
1770 ".extern".
1771 (pdr_seg): Declare unconditionally.
1772 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
1773 (s_mips_end): Likewise. Generate stabs function markers.
1774 (s_mips_ent): Generate stabs function markers.
1775 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
1776 ELF.
1777 (s_mips_mask): Likewise.
1778 (mips_flag_mdebug): New.
1779 (md_longopts): Add "mdebug" and "no-mdebug".
1780 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
1781 (mips_after_parse_args): Set mips_flag_mdebug.
1782 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
1783
1784 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1785
1786 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
1787 value twice for RELA relocations.
1788
1789 2002-06-12 Ben Elliston <bje@redhat.com>
1790
1791 * symbols.c (resolve_symbol_value): Initialise final_val.
1792
1793 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
1794
1795 2002-06-11 Tom Rix <trix@redhat.com>
1796
1797 * config/tc-ppc.c (ppc_subseg_align): Delete.
1798 (ppc_change_csect): Default csect align is 2.
1799 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
1800
1801 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1802
1803 * config/tc-avr.c (mcu_types): Update.
1804
1805 2002-06-08 Matt Thomas <matt@3am-software.com>
1806
1807 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
1808 (vax-*-netbsd*): New targets.
1809 * configure: Regenerate.
1810 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
1811 * config/tc-vax.c: Add support for ELF and PIC.
1812 (flag_want_pic): New flag.
1813 (float_cons): Fix prototype.
1814 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
1815 (md_assemble): Introduce a new is_absolute local, and use it
1816 rather than repeating the test. Make fatal errors actually
1817 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
1818 Add support for ELF. Add support for PIC.
1819 (md_convert_frag): Adjust for BFD_ASSEMBLER.
1820 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
1821 BFD_ASSEMBLER.
1822 (vax_reg_parse): Make the % register prefix mandatory for ELF,
1823 optional for a.out, and not allowed for VMS. Adjust all callers.
1824 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
1825 (md_create_long_jump): Likewise.
1826 (md_undefined_symbol): Likewise.
1827 (md_section_align): Likewise.
1828 (md_shortopts): Allow -k and -K for ELF.
1829 (md_parse_option): Set flag_want_pic if -k or -K.
1830 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
1831 (tc_gen_reloc): New function if BFD_ASSEMBLER.
1832 * config/tc-vax.h (tc_headers_hook): Remove.
1833 (TARGET_FORMAT): Set according to object format and target
1834 environment.
1835 (BFD_ARCH, TARGET_ARCH): Define.
1836 (NO_RELOC): Adjust for BFD_ASSEMBLER.
1837 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
1838 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
1839 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
1840
1841 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1842
1843 * Makefile.am: Run "make dep-am".
1844 * Makefile.in: Regenerate.
1845
1846 * as.c: Replace CONST with const.
1847 * write.c: Likewise.
1848 * config/obj-coff.c: Likewise.
1849 * config/tc-a29k.c: Likewise.
1850 * config/tc-arm.c: Likewise.
1851 * config/tc-dlx.c: Likewise.
1852 * config/tc-h8300.c: Likewise.
1853 * config/tc-h8500.c: Likewise.
1854 * config/tc-i370.c: Likewise.
1855 * config/tc-i860.c: Likewise.
1856 * config/tc-i960.c: Likewise.
1857 * config/tc-m68hc11.c: Likewise.
1858 * config/tc-m68k.c: Likewise.
1859 * config/tc-m88k.c: Likewise.
1860 * config/tc-mcore.c: Likewise.
1861 * config/tc-mips.c: Likewise.
1862 * config/tc-ns32k.c: Likewise.
1863 * config/tc-pdp11.c: Likewise.
1864 * config/tc-pj.c: Likewise.
1865 * config/tc-s390.c: Likewise.
1866 * config/tc-sh.c: Likewise.
1867 * config/tc-sparc.c: Likewise.
1868 * config/tc-tahoe.c: Likewise.
1869 * config/tc-tic80.c: Likewise.
1870 * config/tc-v850.c: Likewise.
1871 * config/tc-vax.c: Likewise.
1872 * config/tc-w65.c: Likewise.
1873 * config/tc-z8k.c: Likewise.
1874
1875 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
1876
1877 Based on patch from Matt Green:
1878 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
1879 * config/tc-mips.c (s_mips_file): Renamed from s_file.
1880 (s_mips_loc): New function.
1881 (mips_nonecoff_pseudo_table): Call them.
1882 (append_insn): Call dwarf2_emit_insn.
1883
1884 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1885
1886 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
1887 to -1.
1888 (file_ase_mips16): New veriable.
1889 (mips_eabi64): Remove.
1890 (CPU_HAS_MIPS16): New define.
1891 (CPU_HAS_MDMX): Fix data type.
1892 (md_begin): Code cleanup. Use file_ase_mips16.
1893 (mips_elf_final_processing): Handle mips16 header flag.
1894 Handle EABI flag without intermediate variable.
1895
1896 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1897
1898 * doc/as.texinfo: Update MIPS documentation.
1899
1900 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1901
1902 * config/tc-mips.c: Add define for $zero register.
1903 (md_begin): Add $zero as alias name for $0.
1904 (insn_uses_reg): Use ZERO define.
1905 (mips_ip): Add $zero as alias name for $0.
1906 (mips16_ip): Likewise.
1907 (s_cplocal): Demand empty rest of input line.
1908 (tc_get_register): Likewise. Add support for $kt0, kt1 register
1909 names. Use ZERO define. Fix input_line_pointer progress.
1910
1911 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1912
1913 * symbols.c: Replace CONST by const throughout.
1914 (symbol_find_exact): Split out from..
1915 (symbol_find_base): ..here.
1916 * symbols.h: Replace CONST by const throughout.
1917 (symbol_find_exact): Declare.
1918 * config/obj-elf.c: #include "struc-symbol.h".
1919 (elf_frob_file): If group name matches an exported symbol, use that
1920 symbol for the signature and ".group" as the section name.
1921
1922 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
1923
1924 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
1925 but warn about it.
1926
1927 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
1928
1929 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
1930 and mips_opts.ase_mdmx if they are uninitialized.
1931
1932 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1933
1934 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
1935 (hppa_force_relocation): Check if a stub just before the start symbol
1936 of the last call_info is reachable before forcing relocation. Fix
1937 typo.
1938
1939 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1940
1941 * config/tc-mips.c (mips_after_parse_args): New function.
1942 (md_begin): Move processing of defaults to mips_after_parse_args.
1943 config/tc-mips.h (md_after_parse_args): Define.
1944
1945 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1946
1947 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
1948 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
1949 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
1950 * configure: Regenerate.
1951 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
1952 environment.
1953
1954 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1955
1956 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
1957
1958 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1959
1960 * config/obj-elf.c (obj_elf_change_section): Set and check elf
1961 linkonce flag. Print all warnings.
1962 (obj_elf_section): Parse ",comdat" for groups.
1963 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
1964 consistency of comdat flag.
1965
1966 2002-06-02 Richard Henderson <rth@redhat.com>
1967
1968 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
1969 with LITERALs without sequence numbers.
1970
1971 2002-06-01 Richard Henderson <rth@redhat.com>
1972
1973 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
1974 Rename them LITUSE_ALPHA_*.
1975
1976 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
1977
1978 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
1979 accept parentheses enclosed register lists.
1980
1981 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1982
1983 * Makefile.am: Run "make dep-am".
1984 * Makefile.in: Regenerate.
1985 * po/POTFILES.in: Regenerate.
1986
1987 2002-05-31 Graeme Peterson <gp@qnx.com>
1988
1989 * configure.in: Add i386-*-nto-qnx*.
1990 * configure: Regenerate.
1991
1992 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1993
1994 * config/tc-mips.c (mips_ip): Use unsigned long values for
1995 warning output.
1996
1997 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1998
1999 * config/tc-mips.c (s_cpsetup): Fix initialization of
2000 mips_cpreturn_register and mips_cpreturn_offset.
2001
2002 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2003
2004 * config/tc-mips.c (s_cpsetup): Fix comment.
2005
2006 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2007
2008 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
2009 (mips_ip): Likewise.
2010 (mips16_ip): Likewise.
2011 (tc_get_register): Likewise.
2012
2013 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
2014 Ed Satterthwaite <ehs@broadcom.com>
2015
2016 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
2017 (mips_opts): Initialize "ase_mdmx" member.
2018 (file_ase_mdmx): New variable.
2019 (CPU_HAS_MDMX): New macro.
2020 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
2021 based on command line options and configuration defaults.
2022 (macro_build): Note in comment that use of MDMX in macros is
2023 not currently allowed.
2024 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
2025 "Z" MDMX operand types.
2026 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
2027 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
2028 types.
2029 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
2030 Add support for "-mdmx" and "-no-mdmx" options.
2031 (OPTION_ELF_BASE): Move to accomodate new options.
2032 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
2033 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
2034 file_ase_mdmx was set.
2035 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
2036 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
2037 nomdmx" directives.
2038
2039 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2040
2041 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
2042 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
2043 command line switch conforming to gcc conventions.
2044 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2045
2046 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2047
2048 * config/tc-mips.c (macro_build_jalr): New Function.
2049 (md_begin): NewABI uses big GOTs.
2050 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
2051 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
2052 (load_address): Add some NewABI PIC support.
2053 (macro): Likewise.
2054 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
2055 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2056
2057 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2058
2059 * config/tc-mips.c (load_address): Use mips_gp_register instead
2060 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
2061 instead.
2062 (macro): Use mips_gp_register instead of hardcoded value.
2063
2064 2002-05-30 Richard Henderson <rth@redhat.com>
2065
2066 * expr.h (operatorT): Add O_md17..O_md32.
2067 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
2068 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
2069 O_tprelhi, O_tprello, O_tprel): New.
2070 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
2071 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
2072 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
2073 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
2074 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
2075 (md_apply_fix3): Handle TLS relocations.
2076 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2077 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
2078 associated TLS reloc. Check lituse_tls relocs match up.
2079 (emit_insn): Handle TLS relocations.
2080 (ldX_op): Remove.
2081
2082 * doc/c-alpha.texi: Add docs for tls relocations.
2083
2084 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2085
2086 * config/tc-mips.c (mips_gprel_offset): New variable.
2087 (s_gpvalue): Use it.
2088
2089 2002-05-30 Diego Novillo <dnovillo@redhat.com>
2090
2091 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2092 write-write conflicts.
2093 (md_assemble): Reformat introductory comment.
2094 (parallel_ok): Prevent packing only if the first
2095 instruction cannot be packed.
2096
2097 2002-05-30 Jason Eckhardt <jle@redhat.com>
2098 Tom Rix <trix@redhat.com>
2099
2100 * config/tc-d10v.c (build_insn): Check for immediates.
2101
2102 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2103
2104 * config/tc-mips.c: Replace GP in comments by $gp.
2105 (mips_big_got): Initialize.
2106 (mips_trap): Initialize.
2107 (load_address): Use mips_gp_register instead of hardcoded value.
2108 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
2109 (macro): Use mips_gp_register instead of hardcoded value.
2110 (macro2): Change load_address calls.
2111 (md_pcrel_from): Comment formatting.
2112 (s_cpload): Use mips_gp_register instead of hardcoded value.
2113 (s_cprestore): Likewise. Comment formatting.
2114 (s_gpword): Fix data type.
2115 (s_cpadd): Use mips_gp_register instead of hardcoded value.
2116 (nopic_need_relax): Replace GP in comments by $gp.
2117 (mips_elf_final_processing): Better comment.
2118
2119 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2120
2121 * configure.in: Add DLX configuraton
2122 * Makefile.am: Add DLX configuraton
2123 * configure: Regenerate.
2124 * Makefile.in: Regenerate.
2125 * config/tc-dlx.c: New file.
2126 * config/tc-dlx.h: New files.
2127 * NEWS: Mention new support.
2128
2129 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
2130
2131 * config/obj-coff.c (write_object_file): Add missing semicolon.
2132
2133 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2134
2135 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
2136 by the define. Remove superfluous check of mips_opts.mips16.
2137 (append_insn): Likewise. Canonicalize variable increments.
2138 (macro_build): Canonicalize variable increments.
2139 (macro_build_lui): Likewise.
2140 (load_register): Likewise.
2141 (load_address): Move pointer initialization.
2142 (macro): Move pointer to a more local scope. Canonicalize variable
2143 increments. Better comments. Replace magic constant for RA by the
2144 define.
2145 (macro2): Replace magic constant for RA by the define. Canonicalize
2146 variable increments.
2147 (mips_ip): Canonicalize variable increments.
2148 (mips16_ip): Replace magic constant for RA by the define.
2149 (my_getSmallParser): Canonicalize variable increments/decrements.
2150 (my_getPercentOp): Likewise.
2151 (my_getSmallExpression): Likewise.
2152 (s_align): Likewise.
2153 (s_mipsset): Likewise.
2154 (s_cpsetup): Likewise.
2155 (s_insn): Remove superfluous check of mips_opts.mips16.
2156 (s_mips_stab): Likewise.
2157 (mips_handle_align): Canonicalize variable increments.
2158 (s_mips_ent): Likewise.
2159 (s_mips_end): Add comment.
2160
2161 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2162
2163 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2164 * configure: Regenerate.
2165
2166 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2167
2168 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
2169 * Makefile.in: Regenerate.
2170 * dep-in.sed: Reorder to match OBJS in Makefile.am.
2171 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
2172 * configure: Regenerate.
2173 * as.h: Use #include "" instead of <> for local header files.
2174 * flonum-konst.c: Likewise.
2175 * flonum-mult.c: Likewise.
2176 * gasp.c: Likewise.
2177 * listing.c: Likewise.
2178 * config/tc-ia64.h: Likewise.
2179 * config/tc-v850.h: Likewise.
2180
2181 2002-05-24 TAMURA Kent <kent@netbsd.org>
2182
2183 * configure.in: Add a target for i386-netbsdpe.
2184 * configure: Regenerate.
2185
2186 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2187
2188 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
2189 (obj_elf_common): Call elf_common.
2190 (obj_elf_tls_common): New function.
2191 (elf_pseudo_tab): Support .tls_common.
2192 (special_sections): Add .tdata and .tbss.
2193 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
2194 sections.
2195 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
2196 (obj_elf_parse_section_letters): Include T in error message.
2197 * config/tc-ppc.c (ppc_section_letter): Likewise.
2198 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
2199 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
2200 SEC_MERGE.
2201 * config/tc-sparc.c (md_apply_fix3): Likewise.
2202 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
2203 Define them if not BFD_ASSEMBLER.
2204 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
2205 and @NTPOFF.
2206 (md_apply_fix3): Add TLS relocs.
2207 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
2208 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
2209 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
2210 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
2211 (ia64_elf_section_letter): Include T in error message.
2212 (md_begin): Support TLS operators.
2213 (md_operand): Likewise.
2214 (ia64_gen_real_reloc_type): Support TLS relocs.
2215 * write.c (adjust_reloc_syms): Don't change symbols in
2216 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
2217
2218 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2219
2220 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
2221 round the relocation up rather than down.
2222
2223 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2224
2225 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
2226 flag.
2227 * doc/as.texinfo: Document that the COFF version of .section
2228 ignores the 'a' flag.
2229
2230 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2231
2232 * config/tc-alpha.c (assemble_tokens): Protect use of
2233 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
2234
2235 * write.c (size_seg): Check adjustment to last frag.
2236 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
2237 section alignment.
2238 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
2239 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
2240 (write_object_file): Invoke md_do_align if available, and use
2241 frag_align_code on text sections.
2242 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
2243 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
2244 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
2245 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
2246 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
2247 BFD_ASSEMBLER too.
2248
2249 2002-05-22 H.J. Lu <hjl@gnu.org>
2250
2251 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
2252 for source file.
2253
2254 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
2255
2256 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
2257 as ELF builds.
2258
2259 2002-05-22 H.J. Lu <hjl@gnu.org>
2260
2261 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
2262 for one .loc for compiler.
2263
2264 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2265
2266 * config/tc-mips.c (macro): Relax warning, it's toot strict for
2267 embedded-PIC.
2268
2269 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2270
2271 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
2272 Optimize the rotate by zero case.
2273
2274 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
2275
2276 * configure.in: Remove accidental enabling of bfd_gas=yes for
2277 sh-coff targets.
2278 * configure: Regenerate.
2279
2280 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2281
2282 * app.c: Fix formatting.
2283 * as.c: Likewise.
2284 * ehopt.c: Likewise.
2285 * expr.c: Likewise.
2286 * input-file.c: Likewise.
2287 * listing.c: Likewise.
2288 * macro.h: Likewise.
2289 * stabs.c: Likewise.
2290 * symbols.c: Likewise.
2291
2292 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2293
2294 * config/obj-generic.c: Delete file.
2295 * config/obj-generic.h: Likewise.
2296
2297 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2298
2299 * config/tc-avr.c (mcu_types): Update for new devices.
2300
2301 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2302
2303 * config/tc-mips.c (macro): Warn about wrong la/dla use.
2304
2305 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2306
2307 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
2308 worked sometimes by accident. Fix copy&paste comment.
2309
2310 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2311
2312 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
2313 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
2314 (mips_elf_final_processing): Let n32 use .reginfo.
2315
2316 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2317
2318 * config/tc-mips.c (append_insn): Fix too small range of variable.
2319
2320 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
2321
2322 * config/tc-arm.c (arm_cleanup): Remove redundant call to
2323 listing_prev_line().
2324
2325 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
2326
2327 * config/tc-arm.c (md_assemble): Remove redundant call to
2328 listing_prev().
2329
2330 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
2331 loc_directive_seen.
2332
2333 * stabs.c (s_stab_generic): Fix grammatical error in warning
2334 message.
2335
2336 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2337
2338 * write.c (subsegs_finish): Don't specially align last subseg.
2339
2340 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2341
2342 * stabs.c (s_stab_generic): Warn about a description field that is
2343 too big.
2344
2345 * config/obj-coff.c: Fix compile time warnings when compiling
2346 without BFD_ASSEMBLER defined.
2347 Fix formatting.
2348
2349 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
2350 target.
2351 (md_pcrel_from_section): Use md_pcrel_from().
2352
2353 2002-05-11 Bruno Haible <bruno@clisp.org>
2354
2355 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
2356 by dwarf2_directive_loc, instead of calling dwarf2_where.
2357
2358 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
2359
2360 * config/obj-coff.h: Fix formatting.
2361 * config/tc-mcore.c: Likewise.
2362 * config/tc-mn10300.c: Likewise.
2363 * config/tc-openrisc.c: Likewise.
2364 * config/tc-or32.c: Likewise.
2365 * config/tc-pdp11.c: Likewise.
2366 * config/tc-ppc.c: Likewise.
2367 * config/tc-ppc.h: Likewise.
2368 * config/tc-sh64.c: Likewise.
2369 * config/tc-sh.c: Likewise.
2370 * config/tc-tic54x.c: Likewise.
2371 * config/tc-xstormy16.c: Likewise.
2372 * config/tc-xstormy16.h: Likewise.
2373
2374 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2375
2376 * config/obj-coff.c: Fix formatting.
2377 * config/obj-elf.c: Likewise.
2378 * config/tc-alpha.c: Likewise.
2379 * config/tc-arm.c: Likewise.
2380 * config/tc-d10v.c: Likewise.
2381 * config/tc-d30v.c: Likewise.
2382 * config/tc-h8300.c: Likewise.
2383 * config/tc-hppa.c: Likewise.
2384
2385 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2386
2387 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
2388 reloc when no_cond_jump_promotion.
2389
2390 2002-05-08 Jim Wilson <wilson@redhat.com>
2391
2392 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
2393 current variable part of frag.
2394
2395 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2396
2397 * config/tc-mmix.c: Fix formatting.
2398 * config/tc-mmix.h: Likewise.
2399
2400 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2401
2402 * configure: Regenerate.
2403
2404 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2405
2406 * config/tc-m68k.c: Fix formatting.
2407
2408 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2409
2410 * Makefile.am: Honour DESTDIR.
2411 * Makefile.in: Regenerate.
2412
2413 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
2414
2415 * config/tc-ia64.c: Fix formatting.
2416 * config/tc-ia64.h: Likewise.
2417
2418 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2419
2420 * config/tc-mips.c: Fix formatting.
2421 * config/tc-s390.c: Likewise.
2422 * config/tc-s390.h: Likewise.
2423
2424 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
2425
2426 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
2427 information for instructions.
2428
2429 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2430
2431 * as.h: Fix formatting.
2432 * cgen.c: Likewise.
2433 * cgen.h: Likewise.
2434 * dwarf2dbg.c: Likewise.
2435 * frags.h: Likewise.
2436 * gasp.c: Likewise.
2437 * macro.c: Likewise.
2438 * read.c: Likewise.
2439 * stabs.c: Likewise.
2440 * symbols.c: Likewise.
2441
2442 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2443
2444 * app.c (mri_pseudo): Only declare for TC_M68K.
2445
2446 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
2447 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
2448 BFD_RELOC_16_BASEREL.
2449 (md_assemble): Likewise.
2450 (md_apply_fix3): Likewise.
2451
2452 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2453
2454 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
2455 zero into an add of zero - it is not the same.
2456
2457 2002-05-01 Arati Dikey <aratid@kpit.com>
2458
2459 * tc-sh.c (get_specific): Generate warning if the same
2460 destination register is used in parallel instructions.
2461
2462 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
2463
2464 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
2465
2466 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2467
2468 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
2469 backwards to prevent cascading errors.
2470
2471 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2472
2473 * configure.in: Add support for powerpc-*-windiss.
2474 * configure: Regenerated.
2475
2476 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2477
2478 * config/tc-s390.c (md_parse_option): Formatting.
2479
2480 * config/tc-i386.c: Formatting fixes, add missing space in error
2481 message.
2482
2483 2002-04-24 Christian Groessler <chris@groessler.org>
2484
2485 * config/tc-z8k.c (build_bytes): Add support for new cases:
2486 CLASS_IGNORE and ARG_NIM4.
2487 (md_assemble): Prevent destruction of input_line_pointer if
2488 get_operands returns failure.
2489
2490 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2491
2492 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
2493 instructions to be generated by macros.
2494
2495 2002-04-24 Andreas Schwab <schwab@suse.de>
2496
2497 * config/tc-i386.c (output_jump, output_disp)
2498 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
2499 more.
2500 (md_apply_fix3): Remember addend value for rela relocations.
2501 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
2502
2503 2002-04-22 Chris Demetriou <cgd@broadcom.com>
2504
2505 * config/tc-mips.c (macro_build): Add close-parenthesis missing
2506 from previous change.
2507
2508 2002-04-22 Eric Christopher <echristo@redhat.com>
2509
2510 * config/tc-mips.c (macro_build): Add warning if macro instructions
2511 are expanded into a branch delay slot.
2512
2513 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
2514
2515 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
2516 numbers, gdb relies on them to detect the start of the prologue.
2517
2518 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
2519
2520 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
2521 symbols in merge sections.
2522
2523 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2524
2525 * as.c (main): Don't reference _bfd_chunksize.
2526
2527 2002-04-15 Tom Rix <trix@redhat.com>
2528
2529 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
2530 symbols in merge sections.
2531
2532 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2533
2534 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
2535 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
2536 argument for the precision.
2537 (gen_to_words): Update accordingly.
2538
2539 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2540
2541 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
2542 BFD_VERSION_STRING unavailable.
2543 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
2544
2545 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
2546
2547 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
2548 symbol_used_in_reloc_p is true.
2549
2550 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
2551 endian hosts.
2552
2553 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2554
2555 * dep-in.sed: Cope with absolute paths.
2556 * Makefile.am (dep.sed): Subst TOPDIR.
2557 Run "make dep-am".
2558 * Makefile.in: Regenerate.
2559
2560 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2561
2562 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
2563 (mips_ip): Remove unused variable.
2564 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
2565 unsigned char with bfd_byte.
2566 (s_file): Remove unused variable.
2567 (s_mips_ent): Likewise.
2568
2569 2002-04-03 Tom Rix <trix@redhat.com>
2570
2571 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
2572 (build_insn): Same.
2573 (find_opcode): Fix warning in as_warn.
2574 * config/tc-d10v.h: Update Copyright.
2575
2576 2002-04-03 Alan Matsuoka <alanm@redhat.com>
2577 Tom Rix <trix@redhat.com>
2578
2579 From Jeff Knaggs <jknaggs@redhat.com>
2580 * config/tc-d10v.c (check_resource_conflict): New function to
2581 check for resource conflicts.
2582
2583 From Jason Eckhardt <jle@redhat.com>
2584 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2585 imm3 fields.
2586 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
2587 reserved control registers is used.
2588 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
2589 imm3 fields.
2590
2591 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
2592 * tc-d10v.c (parallel_ok): Prevent packing only if the first
2593 instruction cannot be packed.
2594
2595 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
2596 * gas/config/tc-d10v.c (check_resource_conflict): Only check
2597 write-write conflicts.
2598 (md_assemble): Reformat introductory comment.
2599 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
2600 arguments.
2601
2602 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2603
2604 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
2605 O_logical_not>): Derive final_seg from add_symbol.
2606 <O_multiply..O_logical_or>: More final_seg twiddles.
2607
2608 2002-04-01 Jessica Han <jessica@cup.hp.com>
2609
2610 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
2611 in 32-bit mode.
2612
2613 2002-03-27 Andreas Schwab <schwab@suse.de>
2614
2615 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
2616 field for pc-relative fixups.
2617 (output_disp): Likewise.
2618 (md_estimate_size_before_relax): Likewise.
2619 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
2620 pc-relative fixups in 64bit mode.
2621
2622 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2623
2624 * config/te-aix5.h: Typo fix.
2625
2626 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2627
2628 * Makefile.am: Run "make dep-am".
2629 * Makefile.in: Regenerate.
2630 * doc/Makefile.in: Regenerate.
2631
2632 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
2633
2634 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
2635 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
2636
2637 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2638
2639 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
2640 the EXTENDED bit here; report the estimate according to the
2641 current size.
2642
2643 2002-03-18 Tom Rix <trix@redhat.com>
2644
2645 * configure.in: Add AIX 5 support.
2646 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
2647 * config/te-aix5.h: New file. AIX 5 support.
2648 * configure: Regenerate.
2649
2650 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2651
2652 * po/fr.po: Updated version.
2653
2654 2002-03-16 Andreas Jaeger <aj@suse.de>
2655
2656 * doc/c-mips.texi (Machine Dependencies): Add new node.
2657
2658 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
2659
2660 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
2661 (mips_opts): Initialize "ase_mips3d" member.
2662 (file_ase_mips3d): New variable.
2663 (CPU_HAS_MIPS3D): New macro.
2664 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
2665 based on command line options and configuration defaults.
2666 (macro_build, mips_ip): Accept MIPS-3D instructions if
2667 mips_opts.ase_mips3d is set.
2668 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
2669 Add support for "-mips3d" and "-no-mips3d" options.
2670 (OPTION_ELF_BASE): Move to accomodate new options.
2671 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
2672 (mips_elf_final_processing): Add a comment indicating that a
2673 MIPS-3D ASE ELF header flag should be set, when one exists.
2674 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
2675 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
2676 nomips3d" directives.
2677
2678 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
2679
2680 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
2681 a weak symbol in same section to be within reach.
2682
2683 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2684
2685 * po/fr.po: Updated version.
2686
2687 2002-03-12 Andreas Schwab <schwab@suse.de>
2688
2689 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
2690 body record so that an error is given for misplaced .save
2691 pseudo-ops.
2692
2693 2002-03-09 Alan Modra <amodra@bigpond.net.au>
2694
2695 * config/tc-i386.h (REX_OPCODE): Define.
2696 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
2697 (rex_byte): typedef to int.
2698 * config/tc-i386.c: Group prototypes and vars together.
2699 Formatting fixes. Remove occurrences of "register" keyword.
2700 (true): Delete.
2701 (false): Delete.
2702 (mode_from_disp_size): Add INLINE keyword to prototype.
2703 (fits_in_signed_byte): Likewise.
2704 (fits_in_unsigned_byte): Likewise.
2705 (fits_in_unsigned_word): Likewise.
2706 (fits_in_signed_word): Likewise.
2707 (fits_in_unsigned_long): Likewise.
2708 (fits_in_signed_long): Likewise.
2709 (type_names): Constify.
2710 (intel_float_operand): Constify param.
2711 (add_prefix): Use REX_OPCODE.
2712 (md_assemble): Likewise. Modify for changed rex_byte.
2713 (parse_insn): Split out of md_assemble.
2714 (parse_operands): Likewise.
2715 (swap_operands): Likewise.
2716 (optimize_imm): Likewise.
2717 (optimize_disp): Likewise.
2718 (match_template): Likewise.
2719 (check_string): Likewise.
2720 (process_suffix): Likewise.
2721 (check_byte_reg): Likewise.
2722 (check_long_reg): Likewise.
2723 (check_qword_reg): Likewise.
2724 (check_word_reg): Likewise.
2725 (finalize_imm): Likewise.
2726 (process_operands): Likewise.
2727 (build_modrm_byte): Likewise.
2728 (output_insn): Likewise.
2729 (output_branch): Likewise.
2730 (output_jump): Likewise.
2731 (output_interseg_jump): Likewise.
2732 (output_disp): Likewise.
2733 (output_imm): Likewise.
2734
2735 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2736
2737 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2738
2739 2002-03-06 Alan Modra <amodra@bigpond.net.au>
2740
2741 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
2742 relocs except when BFD64.
2743
2744 * write.c (number_to_chars_bigendian): Don't abort when N is
2745 larger than sizeof (VAL).
2746 (number_to_chars_littleendian): Likewise.
2747
2748 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2749
2750 * config/tc-hppa.c (md_apply_fix3): Add cast.
2751 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
2752 e_rrsel.
2753
2754 2002-03-05 Paul Koning <pkoning@equallogic.com>
2755
2756 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
2757 (parse_ac5): New function for parsing float regs in float operand.
2758 (parse_expression): Remove attempt to make literals be octal.
2759 (parse_op_no_deferred): Support float literals.
2760 (parse_op): Reject attempts to refer to float regs.
2761 (parse_fop): New function, like parse_op but for float operand.
2762 (md_assemble): Add cases to parse float operands. Also fix
2763 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
2764
2765 2002-03-04 H.J. Lu <hjl@gnu.org>
2766
2767 * config/obj-elf.c (special_section): Add .init_array,
2768 .fini_array and .preinit_array.
2769
2770 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
2771 .init_array and .fini_array.
2772
2773 2002-03-01 Jakub Jelinek <jakub@redhat.com>
2774
2775 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
2776 visibility.
2777 (obj_frob_symbol): Copy visibility.
2778
2779 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2780
2781 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
2782 s_text.
2783 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
2784
2785 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
2786
2787 * po/es.po: Updated.
2788
2789 2002-02-26 Chris Demetriou <cgd@broadcom.com>
2790
2791 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
2792 only, undo the changes made on 2001-06-08, with the
2793 effect being that common or extern symbols are
2794 adjusted for embedded-PIC, but weak symbols are not.
2795 (md_estimate_size_before_relax: Likewise, with the effect
2796 that extern symbols are treated the same as weak symbols
2797 only if not embedded-PIC.
2798 (mips_fix_adjustable) Likewise, with the effect that
2799 weak or extern symbols are not adjusted for embedded-PIC.
2800 (md_apply_fix3): Tweak so that the case where value is zero
2801 is handled more correctly for embedded-PIC code.
2802
2803 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
2804
2805 * doc/as.texinfo (Overview): Add missing @ifset IA64
2806
2807 * configure.in (LINGUAS): Add es.po.
2808 * configure: Regenerate.
2809 * po/es.po: New file.
2810
2811 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2812
2813 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
2814 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
2815 and NO_PIC cases. Code cleanup.
2816 (macro2): Fix handling of 64bit register loads.
2817
2818 2002-02-25 David Mosberger <davidm@hpl.hp.com>
2819
2820 * doc/as.texinfo: Add entry for IA64.
2821 * doc/c-ia64.texi: New file.
2822
2823 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2824
2825 * config/tc-hppa.c: Update copyright date.
2826
2827 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
2828 Remove references to chip manufacturers.
2829 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
2830 Correct comments.
2831 (md_show_usage): Remove references to chip manufacturers. Mention
2832 -mpower4.
2833 (md_begin): Test power4 opcode flag bits.
2834
2835 2002-02-22 David Mosberger <davidm@hpl.hp.com>
2836
2837 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
2838 count exceeds prologue count.
2839 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
2840 (unwind.label_prologue_count): New member.
2841
2842 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
2843
2844 (get_saved_prologue_count): New function.
2845 (save_prologue_count): New function.
2846 (free_saved_prologue_count): New function.
2847 (dot_label_state): Record state label by calling save_prologue_count().
2848 (dot_copy_state): Restore prologue count by calling
2849 get_saved_prologue_count().
2850 (generate_unwind_image): Free up list of saved prologue
2851 counts by calling free_saved_prologue_counts().
2852
2853 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
2854
2855 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
2856 function declarations.
2857
2858 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
2859
2860 * NEWS: Note that GASP is now deprecated.
2861 * Makefile.am: Do not build gasp-new by default.
2862 * Makefile.in: Regenerate.
2863 * doc/Makefile.am: Do not install gasp.info.
2864 * doc/Makefile.in: Regenerate.
2865 * gas/gasp.texi: Note that gasp is now deprecated.
2866
2867 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2868
2869 * NEWS: Mark 2.12 branch.
2870
2871 2002-02-19 Tom Tromey <tromey@redhat.com>
2872
2873 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2874
2875 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2876
2877 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
2878 option input.
2879
2880 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2881
2882 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
2883 Make bit size independent of architecture switch.
2884 (md_begin): Add warning for -m64 with -Aesa.
2885 (s390_md_end): Use renamed architecture defines.
2886
2887 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
2888
2889 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
2890
2891 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
2892
2893 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
2894 instead of CRIS.
2895
2896 2002-02-15 Chris Demetriou <cgd@broadcom.com>
2897
2898 * config/tc-mips.c (md_estimate_size_before_relax): Really
2899 make sure we treat weak like extern only for ELF. (Fixes
2900 patch from 2001-07-25.)
2901
2902 2002-02-15 Ben Elliston <bje@redhat.com>
2903
2904 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
2905 works as expected.
2906
2907 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2908
2909 * NEWS: Mention support for MMIX.
2910
2911 2002-02-13 Chris Demetriou <cgd@broadcom.com>
2912
2913 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
2914 a sequence of indpendent 'if' statements for easier debugging
2915 and future modification.
2916
2917 2002-02-13 Matt Fredette <fredette@netbsd.org>
2918
2919 * config/tc-m68k.c (md_show_usage): No longer display a
2920 hard-coded "68020" for the default CPU, instead display the
2921 canonical name of the true, configured default CPU.
2922 (m68k_elf_final_processing): Mark objects for sub-68020
2923 CPUs with the new EF_M68000 flag.
2924
2925 2002-02-13 Andreas Schwab <schwab@suse.de>
2926
2927 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
2928 pc-relative relocations to merge sections in 64-bit mode.
2929
2930 2002-02-13 Ben Elliston <bje@redhat.com>
2931
2932 * NEWS: Document floating point number handling in gasp.
2933 * gasp.c: Include <assert.h> and "xregex.h".
2934 (is_flonum): New function.
2935 (chew_flownum): Likewise.
2936 (change_base): Consume flonums from the input, where possible.
2937 * doc/gasp.texi (Constants): Document floating point numbers.
2938
2939 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2940
2941 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
2942 that implicitly use LR and RR selectors.
2943
2944 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2945
2946 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
2947 and `epsw' as available on AM33 and above only.
2948 (other_register_name): Add logic to handle machine type encoded in
2949 reg_number.
2950
2951 2002-02-11 Tom Rix <trix@redhat.com>
2952
2953 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
2954 xcoff64.
2955
2956 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
2957
2958 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
2959 Use all over.
2960
2961 2002-02-11 Jan Hubicka <jh@suse.cz>
2962
2963 * i386.c (md_assemble): Support 32bit address prefix.
2964 (i386_displacement): Likewise.
2965 (i386_index_check): Accept 32bit addressing in 64bit mode.
2966
2967 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2968
2969 * config/tc-sh.c (dot): Removed unused function.
2970
2971 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2972
2973 * Makefile.am: "make dep-am".
2974 * Makefile.in: Regenerate.
2975 * aclocal.m4: Regenerate.
2976 * config.in: Regenerate.
2977 * configure: Regenerate.
2978 * doc/Makefile.in: Regenerate.
2979
2980 2002-02-10 Richard Henderson <rth@redhat.com>
2981
2982 * doc/c-alpha.texi: New file.
2983 * doc/Makefile.am (CPU_DOCS): Add it.
2984 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
2985
2986 2002-02-09 Richard Henderson <rth@redhat.com>
2987
2988 * config/tc-alpha.c (O_samegp): New.
2989 (USER_RELOC_P): Include it.
2990 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
2991 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
2992 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
2993 (alpha_validate_fix): New.
2994 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
2995
2996 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
2997
2998 * doc/c-cris.texi: New.
2999 * doc/all.texi: @set CRIS.
3000 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
3001 Include c-cris.texi.
3002 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
3003 * doc/Makefile.in: Regenerate.
3004
3005 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3006
3007 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
3008 determine if a number is a sign-extended 32-bit number.
3009 (load_register): Use IS_SEXT_32BIT_NUM.
3010 (macro): Check if load/store macro handling is using a
3011 constant 32-bit address on 64-bit address systems, and if
3012 so optimize the generation of that address.
3013
3014 2002-02-08 Richard Henderson <rth@redhat.com>
3015
3016 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
3017 we've eliminated all foreign relocation types yet.
3018 (alpha_fix_adjustable): Likewise.
3019
3020 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3021
3022 Contribute sh64-elf.
3023 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3024 Stephen Clarke <Stephen.Clarke@st.com>
3025 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
3026 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
3027 * config/tc-sh.c (md_relax_table): Added default sizes for
3028 non-PC-relative UNDEF_MOVI, and relaxation sequences for
3029 MOVI_16, MOVI_32 and MOVI_48.
3030 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
3031 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
3032 and MOVI_16.
3033 (shmedia_md_estimate_size_before_relax): Remove redundant
3034 blocks. Set fragP->fr_var even if relaxation type unchanged.
3035 Retain UNDEF_MOVI until expression decays to number.
3036 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3037 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
3038 relocation types. Take fixP->fx_addnumber into account too.
3039 (shmedia_md_apply_fix): Likewise.
3040 (shmedia_md_convert_frag): Likewise.
3041 (shmedia_build_Mytes): Likewise.
3042 (sh64_consume_datalabel): Complain about nested datalabel.
3043 Support PIC relocs. Call sh_parse_name.
3044 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
3045 in tc-sh.h to SHmedia reloc types.
3046 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
3047 MOVI_GOTPC): New relaxation constants.
3048 (md_relax_table): Introduce relaxation directives for PIC-related
3049 constants.
3050 (sh_PIC_related_p): Handle datalabel.
3051 (sh_check_fixup): Choose SH5 PIC relocations.
3052 (sh_cons_fix_new): Added BDF_RELOC_64.
3053 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
3054 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3055 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
3056 current ISA is SHmedia, get 7 bytes.
3057 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
3058 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
3059 void function.
3060 * config/tc-sh64.c (shmedia_apply_fix): Rename to
3061 shmedia_apply_fix3 and make void.
3062 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
3063 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
3064 as_bad.
3065 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
3066 * config/tc-sh64.h (md_parse_name): Take &c as argument.
3067 2001-03-14 DJ Delorie <dj@redhat.com>
3068 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
3069 * doc/Makefile.in(CPU_DOCS): Ditto.
3070 * doc/c-sh64.texi: New file.
3071 * doc/as.texinfo: Add SH64 support.
3072 2001-03-13 DJ Delorie <dj@redhat.com>
3073 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
3074 A_REUSE_PREV so that its purpose is more obvious.
3075 (shmedia_build_Mytes): Ditto.
3076 2001-03-07 DJ Delorie <dj@redhat.com>
3077 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
3078 before processing.
3079 (sh64_vtable_inherit): Ditto.
3080 (strip_datalabels): New, strip "datalabel" from given line.
3081 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
3082 pseudos.
3083 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
3084 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
3085 call ...
3086 (shmedia_build_Mytes): ... to here.
3087 2001-03-06 DJ Delorie <dj@redhat.com>
3088 * config/tc-sh.c: Remove sh64-specific uaquad now that there
3089 is a generic one.
3090 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
3091 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
3092 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
3093 address by one in call to dwarf2_emit_insn.
3094 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
3095 Implement ".abi" pseudo and correct .cranges descriptors. Correct
3096 alignment handling broken by imported changes.
3097 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
3098 (sh64_handle_align): Declare.
3099 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
3100 (sh64_max_mem_for_rs_align_code): Declare.
3101 (enum sh64_isa_values): Moved here from tc-sh64.c.
3102 (md_do_align): Define.
3103 (sh64_do_align): Declare.
3104 (struct sh64_tc_frag_data): New.
3105 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
3106 changed.
3107 (TC_FRAG_INIT): Change to set new datatype.
3108 (struct sh64_segment_info_type): Rename member
3109 last_flushed_location to last_contents_mark. All users changed.
3110 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
3111 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
3112 * config/tc-sh.c (md_pseudo_table): Add ".abi".
3113 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
3114 of unsetting seen_insn.
3115 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
3116 call sh64_update_contents_mark.
3117 (sh_handle_align): Remove HAVE_SH64-conditioned code.
3118 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
3119 enum sh64_isa_values.
3120 (sh64_set_contents_type): Drop segT parameter. All callers changed.
3121 (emitting_crange): Boolean guard moved to file scope from function
3122 scope in sh64_set_contents_type.
3123 (s_sh64_abi): New.
3124 (sh64_update_contents_mark): New; most split out from
3125 sh64_flush_pending_output.
3126 (shmedia_md_end): Call sh64_update_contents_mark. Set
3127 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
3128 (sh64_do_align): New function.
3129 (sh64_max_mem_for_rs_align_code): New function.
3130 (sh64_handle_align): Rename from shmedia_do_align. Make
3131 non-static. Add head comment. Emit zero bytes for n bytes modulo
3132 four. Change return-type to void.
3133 (shmedia_elf_new_section): Remove.
3134 (shmedia_md_assemble): Call sh64_update_contents_mark.
3135 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
3136 new frag. Call sh64_update_contents_mark after making the new
3137 frag.
3138 (sh64_flush_pending_output): Just call sh64_update_contents_mark
3139 and sh_flush_pending_output.
3140 (sh64_flag_output): Also call md_flush_pending_output, but add
3141 condition on not emitting_crange.
3142 (sh64_tc_cons_fix_new): Remove.
3143 2001-01-12 Nick Clifton <nickc@redhat.com>
3144 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
3145 alignment handling scheme imported from sourceware.
3146 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
3147 * config/tc-sh64.h (TARGET_FORMAT): Define.
3148 (sh64_target_format): Prototype.
3149 * config/tc-sh64.c (sh64_target_mach): New function.
3150 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
3151 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
3152 zero_address_frag instead of copying the frag of the symbol.
3153 (shmedia_frob_file_before_adjust): Ditto.
3154 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
3155 to valueT to remove signedness.
3156 (shmedia_md_convert_frag): Add parameter final. Rename parameter
3157 headers to output_bfd. Do not evaluate symbols if final is false;
3158 do emit fixups.
3159 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
3160 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
3161 to the current frag, call shmedia_md_convert_frag to emit fixups
3162 and make frag_wane neutralize the frag. Update comments.
3163 * config/tc-sh.c (md_convert_frag): Change caller of
3164 shmedia_md_convert_frag.
3165 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3166 * config/tc-sh64.h: Tweak comments and correct formatting.
3167 * config/tc-sh64.c: Ditto.
3168 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
3169 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
3170 for the no-relocation case.
3171 (shmedia_check_limits): Fix range check being off-by-one for PTA.
3172 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
3173 wrappers.
3174 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
3175 comment.
3176 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
3177 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
3178 expansion.
3179 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
3180 Correct comment.
3181 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3182 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
3183 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
3184 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
3185 al>: Set lowest bit of field to relocate to 1 and rest to empty,
3186 if reloc is emitted.
3187 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3188 New options plus bugfixes.
3189 * config/tc-sh.c (md_longopts): New options "-no-expand" and
3190 "-expand-pt32".
3191 (md_parse_option): Handle new options.
3192 (md_show_usage): Add blurb for new options.
3193 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
3194 (sh64_expand, sh64_pt32): New variables.
3195 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
3196 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
3197 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
3198 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
3199 <resolved previously-pc-relative relocs>: Handle
3200 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
3201 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
3202 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
3203 points to SHcompact code.
3204 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
3205 SH64PCREL16)>: Check that ISA of what operand points at and
3206 PTA/PTB matches, or emit error.
3207 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
3208 SHMEDIA_BFD_RELOC_PT.
3209 (shmedia_immediate_op): If pcrel, emit fixup also for constant
3210 operand.
3211 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
3212 condition for MOVI expansion.
3213 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
3214 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
3215 sh64_expand.
3216 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
3217 fixup.
3218 (sh64_target_format): Error-check setting of sh64_pt32 and
3219 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
3220 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
3221 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
3222 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
3223 * config/tc-sh64.c: Improve comments.
3224 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
3225 not say the linker will check correctness of PTA/PTB expansion.
3226 (shmedia_md_end): Make non-static.
3227 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
3228 prototype.
3229 * config/tc-sh.c (sh_finalize): Remove.
3230 * config/tc-sh.h (md_end): Do not define.
3231 Remove prototype for sh_finalize.
3232 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3233 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
3234 sh64_section_data container when storing section type in tdata
3235 field in elf_section_data.
3236 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
3237 EF_SH5.
3238 * Makefile.am: Update dependencies.
3239 * Makefile.in: Regenerate.
3240 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
3241 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
3242 dwarf2_emit_insn call with test on debug_type.
3243 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3244 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
3245 CRT_SH5_ISA32 sticky for 64-bit.
3246 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3247 Generate .crange sections when switching ISA mode or emitting
3248 constants in same section as code.
3249 * config/tc-sh64.c: Reformat structure definitions.
3250 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
3251 variables.
3252 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
3253 to emit a .cranges descriptor when contents type changes. Only
3254 emit error if changing contents type and -no-mix is in effect.
3255 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
3256 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
3257 (shmedia_md_end): Set sh64_end_of_assembly. Pass
3258 sh64_flush_last_crange over sections.
3259 When checking main symbol of datalabel symbol, check for
3260 STO_SH5_ISA32, not ISA type of section in definition.
3261 (shmedia_frob_file_before_adjust): Check main symbol for
3262 STO_SH5_ISA32; don't check ISA type of section in definition.
3263 (shmedia_frob_section_type): Adjust for .cranges; set section flag
3264 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
3265 .cranges entries have been output.
3266 (shmedia_elf_new_section): Just call md_flush_pending_output.
3267 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
3268 fix. Do not set tc_segment_info_data.in_code for section. Call
3269 sh64_set_contents_type for SHmedia code.
3270 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
3271 false. Call md_flush_pending_output.
3272 (sh64_target_format): Check that -no-mix and
3273 -shcompact-const-crange are used in sane combination with other
3274 options.
3275 (shmedia_md_pcrel_from_section): Check type of fix for how to
3276 adjust pc-relative.
3277 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
3278 not ISA type of section in definition.
3279 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
3280 hold contents-type state.
3281 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
3282 (sh64_flush_pending_output): Declare.
3283 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
3284 (sh64_tc_cons_fix_new): Declare.
3285 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
3286 call sh64_flag_output.
3287 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
3288 call sh64_set_contents_type to mark SHcompact code and set
3289 seen_insn.
3290 (md_longopts): New options "-no-mix" and
3291 "-shcompact-const-crange".
3292 (md_parse_option): Handle new options.
3293 (md_show_usage): Add blurb for new options.
3294 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
3295 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3296 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
3297 (sh64_last_insn_frag): New.
3298 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
3299 to get frag for insn opcode for generating fixups; do not assume it
3300 is the same frag.
3301 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
3302 for new insn.
3303 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
3304 section.
3305 (TC_FRAG_TYPE): Define as fragS *.
3306 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
3307 (sh64_last_insn_frag): Declare.
3308 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
3309 not == NULL before dereferencing.
3310 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3311 Get rid of BFD section flag and EF_SH64_ABI64.
3312 * config/tc-sh64.c (shmedia_frob_section_type): Use
3313 elf_section_data (sec)->tdata, not a specific BFD section flag, to
3314 communicate the section as containing SHmedia code. Describe why.
3315 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
3316 EF_SH64 regardless of ABI.
3317 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
3318 in error message. Handle resolved expressions for
3319 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3320 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
3321 (shmedia_check_limits): Handle BFD_RELOC_64.
3322 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
3323 a STO_SH5_ISA32 symbol, only the BFD value.
3324 2000-12-11 Ben Elliston <bje@redhat.com>
3325 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
3326 dwarf2_generate_asm_lineno.
3327 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
3328 Handle PC-relative MOVI expansions with assembler relaxation.
3329 Generate PC-relative relocs from 16-bit PC-relative expressions.
3330 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
3331 (shmedia_md_pcrel_from_section): ...here.
3332 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
3333 turned completely resolved. Adjust relocation type for 16-bit
3334 immediate operands that has turned PC-relative. Adjust back for
3335 MD_PCREL_FROM_SECTION being applied twice.
3336 (shmedia_md_convert_frag): Always emit reloc for expression with
3337 global or weak symbol. Handle relaxation result for PC-relative
3338 expressions.
3339 (shmedia_md_estimate_size_before_relax): An expression with a weak
3340 or global symbol can not be relaxed. Break out tests for
3341 relaxable symbol into variable sym_relaxable.
3342 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
3343 UNDEF_MOVI)>: Break out any PC-relative expression and change
3344 relaxation type.
3345 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
3346 opjp.
3347 <case A_IMMS16>: Fix typo for initial minor relaxation type of
3348 MOVI expansion. If X_op_symbol of the immediate expression is
3349 set, make an expression symbol for the argument to frag_var.
3350 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
3351 relaxations.
3352 (END): Adjust for new relaxations.
3353 (md_relax_table): Add entries for new relaxations.
3354 2000-12-07 Ben Elliston <bje@redhat.com>
3355 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
3356 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3357 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
3358 SHORI operand offsets in PT/PTA/PTB expansions.
3359 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3360 Implement DataLabel semantics.
3361 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
3362 shmedia_frob_file_before_adjust.
3363 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
3364 (DATALABEL_SUFFIX): Define.
3365 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
3366 symbol list to update "datalabel" symbols to their main symbol
3367 counterparts.
3368 (shmedia_frob_file_before_adjust): New.
3369 (sh64_adjust_symtab): For remaining datalabel symbols, set to
3370 undefined and set STT_DATALABEL.
3371 (sh64_frob_label): Initialize TC symbol field.
3372 (sh64_consume_datalabel): Actually implement semantics. New
3373 parameter operandf, call it instead of expression.
3374 (sh64_exclude_symbol): New.
3375 * config/tc-sh64.h (md_parse_name): Pass on the function operand
3376 to sh64_consume_datalabel.
3377 (tc_symbol_new_hook): Define to tc_frob_symbol.
3378 (TC_SYMFIELD_TYPE): Define to symbolS *.
3379 (tc_frob_symbol): Define to call sh64_exclude_symbol.
3380 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
3381 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
3382 case.
3383 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
3384 generating dwarf2 debug information.
3385 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3386 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
3387 elf64-sh64 for the 64-bit ABI.
3388 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
3389 option.
3390 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3391 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
3392 case-insensitivity.
3393 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3394 * config/tc-sh64.c: Tweak comments, formatting and error messages.
3395 (enum sh64_abi_values): New type.
3396 (enum sh64_isa_values): New type.
3397 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
3398 (seen_shcompact_mode, seen_shmedia_mode): Delete.
3399 (sh64_abi): Replace shmedia_64.
3400 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
3401 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
3402 (s_sh64_mode): Check validity for this target.
3403 (sh64_target_format): Initialize defaults for ISA and ABI.
3404 Fallback to old object format if no SH64 ISA or ABI has been
3405 specified.
3406 * config/tc-sh.c (md_parse_option): Check combinations for errors.
3407 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
3408 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
3409 * config/tc-sh64.h: Fix typo in comment.
3410 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
3411 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
3412 <PT fixups for absolute values>: Size will be longest, not
3413 shortest.
3414 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
3415 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
3416 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
3417 and l1 to hold lowercase of two first characters. Change all
3418 remaining TO_LOWER to tolower.
3419 * config/tc-sh64.c (TO_LOWER): Delete.
3420 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
3421 (md_parse_name): Define.
3422 (sh64_consume_datalabel): Declare.
3423 (DOLLAR_DOT): Define.
3424 * config/tc-sh64.c (shmedia_parse_exp): New.
3425 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
3426 (shmedia_parse_reg): Remove const from src
3427 parameter.
3428 (shmedia_get_operands): Ditto for args parameter and ptr variable.
3429 (shmedia_md_assemble): Ditto for op_end variable.
3430 (shmedia_get_operand): Ditto for ptr parameter and src variable.
3431 Use shmedia_parse_exp, not parse_exp.
3432 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
3433 parameter. All callers changed.
3434 (shmedia_get_operand): Add shmedia_arg_type parameter. All
3435 callers changed.
3436 (shmedia_parse_reg): Put first two character in local variables.
3437 Use tolower, not TO_LOWER. If no register is found and argtype
3438 indicates a control register, scan shmedia_creg_table
3439 case-insensitive.
3440 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3441 * Makefile.am (CPU_TYPES): Add sh64.
3442 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
3443 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
3444 Regenerate dependencies.
3445 * Makefile.in: Regenerate.
3446 * configure.in: Add support for sh64-*-elf*.
3447 * configure: Regenerate.
3448 * config/tc-sh64.h: New.
3449 * config/tc-sh64.c: New.
3450 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
3451 .mode, .isa and .uaquad.
3452 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
3453 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
3454 [HAVE_SH64] (END): Define as 10.
3455 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
3456 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
3457 MOVI_64): Define.
3458 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
3459 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
3460 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
3461 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
3462 Define.
3463 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
3464 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
3465 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
3466 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
3467 SHmedia instructions. Handle state-change after switching to
3468 SHcompact.
3469 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
3470 (md_parse_option) [HAVE_SH64]: Parse new options.
3471 (md_show_usage) [HAVE_SH64]: Show usage of new options.
3472 (md_convert_frag) [HAVE_SH64] <default>: Call
3473 shmedia_md_convert_frag instead of abort.
3474 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
3475 BFD_RELOC_SH_SHMEDIA_CODE.
3476 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
3477 SHcompact or SHmedia code.
3478 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
3479 shmedia_md_apply_fix instead of abort.
3480 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
3481 result from calling shmedia_md_estimate_size_before_relax instead
3482 of calling abort.
3483 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
3484 do the work.
3485 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
3486 shmedia_init_reloc and do nothing more if it returns non-zero.
3487 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
3488 * po/POTFILES.in: Regenerate.
3489 * po/gas.pot: Regenerate.
3490
3491 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3492
3493 * config/tc-sh.c (parse_at): Install the correct version of
3494 2002-02-04's patch.
3495
3496 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
3497 assume fixP->fx_subsy is non-NULL.
3498
3499 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3500
3501 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
3502 A_DISP_PC_ABS, and adjust it by -4.
3503 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
3504 expected.
3505 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
3506 the operand type is not A_DISP_PC_ABS.
3507
3508 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3509
3510 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
3511 common and weak symbols. Handle common and weak symbols as
3512 undefined symbols with regards to GREG handling and merging.
3513 (mmix_frob_file): Ditto.
3514
3515 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3516
3517 * configure.in (hppa-*-netbsd*): New target.
3518 * configure: Regenerate.
3519 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
3520
3521 2002-02-02 Alan Modra <amodra@bigpond.net.au>
3522
3523 * config/tc-v850.c: Add missing prototypes amd use old-style
3524 function definitions.
3525 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
3526 (sdata_section tdata_section, zdata_section, sbss_section,
3527 tbss_section, zbss_section, rosdata_section, rozdata_section,
3528 scommon_section, tcommon_section, zcommon_section,
3529 call_table_data_section, call_table_text_section): Delete.
3530 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3531 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
3532 v850_call_table_data, v850_call_table_text): Delete.
3533 (struct v850_seg_entry): New.
3534 (v850_seg_table): New.
3535 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
3536 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
3537 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
3538 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
3539 (do_v850_seg): New.
3540 (v850_seg): New.
3541 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
3542 recording of alignment.
3543 (md_pseudo_table): Use v850_seg.
3544 (md_begin): Don't init .call_table_data and .call_table_text here.
3545 Set v850_seg_table bss entry.
3546
3547 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3548
3549 Support on-demand global register allocation by passing on
3550 base-plus-offset relocs to the linker.
3551 * config/tc-mmix.c: Tweak and fix typos in comments.
3552 (allocate_undefined_gregs_in_linker): New variable.
3553 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
3554 (md_longopts): Add --linker-allocated-gregs.
3555 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
3556 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
3557 (md_show_usage): Update text for -x. Add text for
3558 --linker-allocated-gregs.
3559 (tc_gen_reloc): Derive default value for addend from val and
3560 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
3561 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
3562 GREG if allocate_undefined_gregs_in_linker.
3563 * doc/as.texinfo (Overview) <Target MMIX options>: Add
3564 --linker-allocated-gregs.
3565 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
3566 --linker-allocated-gregs. Mention that it's implied by -x.
3567 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
3568 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
3569
3570 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
3571
3572 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3573
3574 * Makefile.am: Run "make dep-am"
3575 * Makefile.in: Regenerate.
3576
3577 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3578
3579 * config/tc-or32.c: New file.
3580 * config/tc-or32.h: New file.
3581 * configure.in: Add support for or32 targets.
3582 * configure: Regenerate.
3583 * config/obj-coff.c: Add support for or32 targets.
3584 * config/obj-coff.h: Add support for or32 targets.
3585 * Makefile.am: Add support for or32 targets.
3586 * Makefile.in: Regenerate.
3587 * NEWS: Mention support for OpenRISC.
3588 * doc/Makefile.in: Regenerate.
3589 * po/POTFILES.in: Regenerate.
3590 * po/gas.pot: Regenerate.
3591
3592 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
3593
3594 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
3595 and mod.
3596
3597 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3598
3599 * config/tc-mips.c (tc_gen_reloc): Arrange for
3600 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
3601 their LO16 parts, even for ELF.
3602
3603 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
3604
3605 * config/tc-i386.c: Protect definitions of true and false
3606 from redefinition.
3607
3608 2002-01-28 Jakub Jelinek <jakub@redhat.com>
3609
3610 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
3611 made because of .weak, if they are neither defined nor used in any
3612 way.
3613
3614 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * configure: Regenerated.
3617
3618 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3619
3620 * doc/Makefile.am (install): Depend on install-info.
3621 * doc/Makefile.in: Regenerate.
3622
3623 2002-01-26 Nick Clifton <nick@redhat.com>
3624
3625 * po/fr.po: Updated version
3626
3627 2002-01-24 Kazu Hirata <kazu@hxi.com>
3628
3629 * config/tc-h8300.c (check_operand): Don't print a warning
3630 when a valid 24-bit address is given to a 16-bit address
3631 operand.
3632
3633 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3634
3635 * config/tc-sh.c (sh_elf_suffix): Removed.
3636 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
3637 sh_end_of_match, sh_parse_name): New functions.
3638 (sh_elf_cons): Simplify.
3639 (parse_exp): Reject misplaced PIC operands.
3640 (md_undefined_symbol): Simplify.
3641 (sh_fix_adjustable): Let @GOTOFF be adjusted.
3642 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
3643 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
3644 Complain if subsy remains at the end.
3645 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
3646 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
3647
3648 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3649
3650 * config/tc-mn10300.c (xr_registers): Move `pc'...
3651 (other_registers): ... here.
3652
3653 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3654
3655 * Makefile.am: Run "make dep-am".
3656 * Makefile.in: Regenerate.
3657 * gas/po/POTFILES.in: Regenerate.
3658
3659 2002-01-21 DJ Delorie <dj@redhat.com>
3660
3661 * config/obj-coff.c (obj_coff_init_stab_section): Make the
3662 stabstr_name allocation permanent, as it will be referenced from
3663 the section hash.
3664
3665 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3666
3667 * configure.in (ia64-*-netbsd*): New target.
3668 * configure: Regenerate.
3669
3670 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3671
3672 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
3673 to @dots call.
3674 <Detailed description, ARM options>: Ditto.
3675 * doc/c-arm.texi (ARM Options): Ditto.
3676
3677 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3678
3679 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
3680 do_mia, do_mar and do_mra respectively.
3681 (do_mav_*): Renamed from do_c_*.
3682 (mav_reg_required_here, mav_parse_offset): Renamed from
3683 cirrus_reg_required_here and cirrus_parse_offset respectively.
3684 (MAV_MODE?): Renamed from CIRRUS_MODE?.
3685
3686 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3687 Keith Walker <keith.walker@arm.com>
3688
3689 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
3690 (insns): Add pattern for bxj instruction.
3691 (do_bxj): New function.
3692 (arm_cpus): Add arm926ej.
3693 (arm_archs): Add armv5tej.
3694
3695 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3696
3697 * doc/c-arm.texi: Add new fpe options to list of supported flags.
3698
3699 2002-01-19 Keith Walker <keith.walker@arm.com>
3700
3701 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
3702
3703 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
3704
3705 * NEWS: Mention new ARM command-line options and VFP support.
3706
3707 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
3708 uses changed.
3709 (ARM_CEXT_MAVERICK): Similarly.
3710 (ARM_ANY): Now means any core instruction.
3711 (CPU_DEFAULT): Default to ARM_ANY.
3712 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
3713 (pic_code): Declare for all object types. Make type int.
3714 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
3715 (march_fpu_opt, mfpu_opt): Declare.
3716 (md_longopts): Tidy up conditional definitions.
3717 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
3718 (arm_long_opts): New tables.
3719 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
3720 (arm_parse_extension): New function.
3721 (md_parse_option): Rewrite using new table-driven system.
3722 (md_show_usage): Use new table-driven system.
3723 (md_begin): Calculate cpu_variant from command line option data.
3724 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
3725 command-line options.
3726 * doc/c-arm.texi: Likewise.
3727
3728 2002-01-18 Andreas Jaeger <aj@suse.de>
3729
3730 * as.c (parse_args): Update year.
3731
3732 2002-01-17 Timothy Wall <twall@alum.mit.edu>
3733
3734 * config/tc-tic54x.c (encode_address): Add a more informative
3735 warning about incorrect syntax.
3736
3737 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3738
3739 * po/gas.pot: Regenerate.
3740
3741 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3742
3743 * macro.c (get_any_string): Add no-c-format comment to prevent
3744 confusion when translating string.
3745 * gasp.c (get_any_string): Add no-c-format comment to prevent
3746 confusion when translating string.
3747
3748 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3749 Johannes Stezenbach <js@convergence.de>
3750 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
3751 matched before the shorter ones.
3752 (my_getSmallParser): Fix handling of nested parentheses in
3753 percent_op's. Code cleanup.
3754 (my_getPercentOp): New function, code from my_getSmallParser.
3755 (my_getSmallExpression): Fix handling of closing parentheses.
3756 Code cleanup. Better comments.
3757
3758 2002-01-16 Nick Clifton <nickc@redhat.com>
3759
3760 po/tr.po: New file: Turkish translation.
3761 configure.in (LINGUAS): Add "tr".
3762 configure: Regenerate.
3763
3764 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3765
3766 Support for VFP instructions
3767 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
3768 (cp_address_required_here): New argument wb_ok. When false, do not
3769 accept write-back forms of addressing. Change all callers.
3770 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
3771 (FPU_VFP_EXT_V2): Define.
3772 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
3773 Define in terms of above.
3774 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
3775 (vfp_reg): New struct.
3776 (vfp_regs): New array of registers.
3777 (insns): Add VFP instructions.
3778 (sn_table): New array of VFP single-precision register names.
3779 (dn_table): New array of VFP double-precision register names.
3780 (all_reg_maps): Add the new register tables.
3781 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
3782 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
3783 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
3784 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
3785 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
3786 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
3787 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
3788 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
3789 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
3790 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
3791 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
3792 (do_vfp_sp_dp_cvt): New functions.
3793 (md_begin): Set soft-float flag for appropriate VFP work.
3794 (md_atof): Handle VFP-format doubles.
3795 (md_parse_option): Handle VFP command-line options.
3796 (md_show_usage): Display VFP command-line options.
3797
3798 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
3799
3800 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
3801 various command line options.
3802
3803 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3804
3805 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
3806 vtinherit relocs.
3807 (xstormy16_md_apply_fix3): Do not return a value.
3808
3809 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3810
3811 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
3812 the -EL/-EB option that matches the target's endianness.
3813 (md_parse_option): Likewise.
3814
3815 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3816
3817 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
3818 is not dependent on ARM_BI_ENDIAN.
3819
3820 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
3821
3822 * tc-arm.c (all error messages): Normalize capitalization of messages.
3823
3824 * tc-arm.h (md_operand): Delete define.
3825 * tc-arm.c (in_my_get_expression): New static variable.
3826 (my_get_expression): Set and clear it.
3827 (md_operand): New function. If called from my_get_expression
3828 put the error in inst.error.
3829 (output_inst): Now takes argument of instruction being assembled.
3830 Print it out with any error message.
3831 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
3832 with '=' syntax.
3833 (end_of_line): Don't update inst.error if it is already set.
3834
3835 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3836
3837 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
3838 op that can be translated into a mvn instruction.
3839
3840 2002-01-11 Steve Ellcey <sje@cup.hp.com>
3841
3842 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
3843 setting default md.flags.
3844 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
3845 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
3846 * gas/config/tc-ia64.c (setup_unwind_header): Add support
3847 for 32 bit unwind info blocks.
3848 (generate_unwind_image): Add support for different types
3849 of unwind images (32 bits and/or big-endian).
3850 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
3851 (ia64_target_format): Add support for hpux target formats.
3852 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
3853 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
3854 SHT_FINI_ARRAY elf section types.
3855
3856 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
3857
3858 * tc-arm.c (struct reg_entry): Move before prototypes.
3859 (int_register, cp_register, fp_register): Delete.
3860 (reg_table): Delete. Replaced with ...
3861 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
3862 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
3863 (mav_dspsc_table): ... one table per register set.
3864 (arm_reg_hsh): Delete.
3865 (struct reg_map): New structure.
3866 (all_reg_maps): New array.
3867 (enum arm_reg_type): New enums.
3868 (build_reg_hsh): New function.
3869 (insert_reg_alias): Use hash table passed by caller. Adjust all
3870 callers.
3871 (create_register_alias): New function, split out from ...
3872 (md_assemble): ... here.
3873 (md_begin): Build new register hash tables.
3874 (arm_reg_parse): New argument for the hash table to search. Adjust all
3875 callers.
3876 (arm_reg_parse_any): New function.
3877 (co_proc_number): Look up the processor number in the processor hash
3878 table.
3879 (cirrus_regtype): Delete.
3880 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
3881 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
3882 (ARM_EXT_MAVERICKsc_register): Delete.
3883 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
3884 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
3885 functions.
3886 (do_c_triple_4, do_c_triple_5): Delete.
3887 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
3888 (do_c_quad_6): Delete.
3889 (do_c_quad_6[ab]): New functions.
3890 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
3891 arguments to use new register parsing methods.
3892 (cirrus_reg_required_here): Likewise.
3893 (insns): Reclassify cirrus maverick worker functions.
3894 (cirrus_valid_reg): Delete.
3895
3896 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3897
3898 * configure.in (sh*le): Set cpu_type=sh and endian=little.
3899 (sh*-*-netbsdelf*): New target.
3900 * configure: Regenerate.
3901 * tc-sh.h: Update copyright years.
3902 (TARGET_FORMAT): Add version for TE_NetBSD.
3903
3904 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3905
3906 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
3907 negative.
3908
3909 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3910
3911 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
3912 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
3913
3914 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
3915
3916 * tc-mips.c (mips_cprestore_valid): New flag.
3917 (mips_frame_reg_valid): New flag.
3918 (macro) [M_JAL_2]: Check both flags.
3919 [M_JAL_A]: Likewise.
3920 (s_cprestore): Set mips_cprestore_valid.
3921 (tc_get_register): If setting mips_frame_reg, set
3922 mips_frame_reg_valid and clear mips_cprestore_valid.
3923 (s_mips_ent): Clear both flags.
3924 (s_mips_end): Clear both flags.
3925
3926 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3927
3928 * write.c (write_object_file): Make use of bfd_section_list_remove.
3929 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
3930 * config/tc-mmix.c (mmix_frob_file): Likewise.
3931
3932 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3933
3934 * configure.in (i386-*-netbsdelf*): Collapse target into...
3935 (i386-*-netbsd*): ...this. Add support for x86-64.
3936 * configure: Regenerated.
3937
3938 2002-01-03 matthew green <mrg@redhat.com>
3939
3940 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
3941
3942 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3943
3944 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
3945 NULL frag link.
3946
3947 For older changes see ChangeLog-0001
3948 \f
3949 Local Variables:
3950 mode: change-log
3951 left-margin: 8
3952 fill-column: 74
3953 version-control: never
3954 End:
This page took 0.105767 seconds and 5 git commands to generate.