source: trunk/src/binutils/gas/ChangeLog@ 1036

Last change on this file since 1036 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 195.8 KB
Line 
12003-06-03 Nick Clifton <nickc@redhat.com>
2
3 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
4 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
5 before calling bfd_reloc_type_lookup.
6
72003-06-02 Alan Modra <amodra@bigpond.net.au>
8
9 * macro.c (sub_actual): Don't lose string if it turns out that
10 &string wasn't an arg.
11
122003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
13
14 * config/tc-m32r.c: Amend comment to refer to Renesas
15
162003-05-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
17
18 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
19
202003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
21
22 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel insns.
23 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
24
252003-05-15 Daniel Jacobowitz <drow@mvista.com>
26
27 Merge from mainline:
28
29 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
30 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
31
32 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
33 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
34 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
35 * config.in, configure: Rebuilt.
36
372003-05-13 Hans-Peter Nilsson <hp@axis.com>
38
39 * read.c (old_buffer, old_input, old_limit): Remove variables.
40 (read_a_source_file): Delete label contin.
41 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
42 input as with macros, instead of in separate old_* variables.
43 Zero-terminate string being scrubbed.
44
452003-05-05 Daniel Jacobowitz <drow@mvista.com>
46
47 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
48 symbol_used_in_reloc_p check.
49 (md_apply_fix3): Remove check for howto->pcrel_offset.
50
512003-05-01 Christian Groessler <chris@groessler.org>
52
53 * expr.h: Fix comments in operatorT typedef.
54 * config/tc-z8k.c: Add 2003 to copyright message.
55 Fold s_segm() and s_unseg() into one function s_segm(parm) which
56 decides by the parameter.
57 (md_begin): Don't set linkrelax. Only set Z8002 default if no
58 command line argument was given to select the intended
59 architecure.
60 (get_interrupt_operand): Warn if NOP type code is emitted.
61 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
62 (apply_fix): Call newfix with additional 'size' parameter.
63 (build_bytes): Remove unused variable 'nib'. Detect overflow in
64 4 bit immediate arguments.
65 (md_longopts): Add 'linkrelax' option.
66 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
67 variable when 'linkrelax' command line option is specified.
68 (md_show_usage): Display 'linkrelax' option.
69 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
70 R_CALLR and R_REL16.
71 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
72
732003-04-30 Alan Modra <amodra@bigpond.net.au>
74
75 * config/tc-hppa.c (hppa_symbol_chars): Revert 2003-04-28 change.
76 * config/tc-hppa.h (tc_symbol_chars): Likewise.
77 * config/tc-ppc.c (ppc_symbol_chars): Revert 2003-04-24 change.
78 * config/tc-ppc.h (tc_symbol_chars): Likewise.
79 * app.c (do_scrub_chars): Revert 2003-04-23 and 2003-04-22 changes.
80
812003-04-29 Nick Clifton <nickc@redhat.com>
82
83 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
84 start of a version name.
85
862003-04-28 Chris Demetriou <cgd@broadcom.com>
87
88 * configure.in (mips-*-*n*bsd*): Replace with...
89 (mips-*-netbsd*, mips-*-openbsd*): These.
90 * configure: Regenerate.
91
922003-04-28 H.J. Lu <hjl@gnu.org>
93
94 * config/tc-hppa.c (hppa_symbol_chars): New.
95 * config/tc-hppa.h (tc_symbol_chars): Likewise.
96
972003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
98
99 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
100
1012003-04-25 Chris Demetriou <cgd@broadcom.com>
102
103 * NEWS: Belatedly mention support for MIPS32 Release 2.
104
1052003-04-24 Eric Christopher <echristo@redhat.com>
106
107 * config/tc-mips.c (nopic_need_relax): Revert previous
108 change.
109
1102003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
111
112 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
113 * config/tc-h8300.c (dwarf2dbg.h): Include
114 (md_pseudo_table): Handle .loc and .file
115 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
116 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
117 * Makefile.in: Regenerate.
118
1192003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
120
121 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
122 (md_pseudo_table): Add h8300hn, h8300sn.
123 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
124 * doc/c-h8300.texi : Add documentation for new machine directives.
125
1262003-04-24 Nick Clifton <nickc@redhat.com>
127
128 * config/tc-ppc.c (ppc_symbol_chars): Define.
129 * config/tc-ppc.h (tc_symbol_chars): Define.
130
1312003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
132
133 * config/tc-sh.c: Amend comment to refer to SuperH.
134 * config/tc-sh.h: Likewise.
135 (LISTING_HEADER): Amend to refer to SuperH.
136 * config/tc-sh64.c: Change comment to refer to SuperH.
137 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
138 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
139 * doc/c-sh.texi: Amend to refer to SuperH.
140 Add SuperH architecture documentation references.
141 * doc/c-sh64.texi: Change to refer to SuperH.
142
1432003-04-23 H.J. Lu <hjl@gnu.org>
144
145 * app.c (do_scrub_chars): More checks for valid labels.
146
1472003-04-22 H.J. Lu <hjl@gnu.org>
148
149 * app.c (do_scrub_chars): Check for valid label.
150
1512003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
152
153 * doc/as.texinfo: Replace references to Mitsubishi M32R with
154 references to Renesas M32R.
155 * doc/c-m32r.texi: Likewise.
156
1572003-04-21 Richard Henderson <rth@redhat.com>
158
159 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
160 (out_file_list): Assign non-null filename after generating error.
161
1622003-04-18 Jakub Jelinek <jakub@redhat.com>
163
164 * ehopt.c (check_eh_frame): For aug_size == 0
165 in state_seeing_aug_size state skip the state_skipping_aug
166 state.
167
1682003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
169
170 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
171 'Renesas'.
172 * doc/c-h8500.texi: Likewise.
173 * doc/c-sh.texi: Likewise.
174 * doc/c-sh64.texi: Likewise.
175 * doc/h8.texi: Likewise.
176 * config/tc-h8300.c: Likewise.
177 * config/tc-h8300.h: Likewise.
178 * config/tc-h8500.c: Likewise.
179 * config/tc-h8500.h: Likewise.
180 * config/tc-sh.c: Likewise.
181 * config/tc-sh.h: Likewise.
182 * config/tc-sh64.c: Likewise.
183 * config/tc-sh64.h: Likewise.
184
1852003-04-10 Alexandre Oliva <aoliva@redhat.com>
186
187 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
188 * config/tc-mips.c: Use signed add for n32 address arithmetic.
189 (append_insn): When filling delay slots with instructions
190 that have fixups that tc_gen_reloc might consider modifyable
191 in variant frags, start a new frag.
192 (load_address): Generate GOT_DISP with of without offset
193 depending on whether symbol is local. For -xgot, use
194 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
195 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
196 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
197 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
198 <ld_st>: In NewABI with small got, always use
199 GOT_PAGE/GOT_OFST, with the latter in the load/store
200 instruction. With big got, use GOT_HI16/GOT_LO16 or
201 GOT_PAGE/GOT_OFST.
202 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
203 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
204 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
205 (md_convert_frag): Use memmove for safe copying of overlapping
206 regions.
207
2082003-04-09 Stephane Carrez <stcarrez@nerim.fr>
209
210 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
211 -mlong, -mshort-double and -mlong-double options; use table @code.
212 (M68HC11-Syntax): Update to document 68HC12 operands.
213 (M68HC11-Modifiers): New section for operand modifiers.
214 (M68HC11-Directives): New section for specific assembler directives.
215 (M68HC11-Branch): Fix Overfull hbox error.
216
2172003-04-09 Alexandre Oliva <aoliva@redhat.com>
218
219 * config/tc-mips.c (macro): Add comments explaining the rationale
220 for Chris' change.
221
2222003-04-09 Chris Demetriou <cgd@broadcom.com>
223
224 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
225 constant address that Alexandre took out by accident. Reject
226 64-bit addresses that are not sign extensions of 32 bits only if
227 we don't support 64-bit address constants.
228
2292003-04-09 Alan Modra <amodra@bigpond.net.au>
230
231 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
232
2332003-04-08 Nick Clifton <nickc@redhat.com>
234
235 * as.c (perform_an_assembly_pass): If using cgen, call
236 gas_cgen_begin.
237 * cgen.c (gas_cgen_begin): New function. If
238 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
239 otherwise call cgen_clear_signed_overflow_ok.
240 * cgen.h: Prototype gas_cgen_begin.
241
2422003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
243
244 * write.c (write_relocs): Remove unused variable.
245
2462003-04-06 Chris Demetriou <cgd@broadcom.com>
247
248 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
249 (macro): Use new macro to decide whether to emit constant address
250 as 32 or 64 bits if addresses are 32-bit wide but registers are
251 64-bit wide.
252
2532003-04-05 Stephane Carrez <stcarrez@nerim.fr>
254
255 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
256 (M6811_OP_PAGE_ADDR): New internal define.
257 (get_operand): New modifier %page and %addr to obtain page and
258 address part of a far-function.
259 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
260 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
261 relocs.
262 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
263 (find_opcode): Add comment.
264 (md_estimate_size_before_relax): Force relocation of
265 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
266 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
267 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
268 on the symbol itself so that DWARF2 strings are merged correctly.
269
2702003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
271
272 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
273 default tic4x target format to 'coff2-tic4x'.
274 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
275 s/c3x/tic3x/
276 * config/tc-tic4x.h: Ditto
277
2782003-04-03 Nick Clifton <nickc@redhat.com>
279
280 * NEWS: Mention support for Xtensa architecture.
281
2822003-04-02 Philip Blundell <philb@gnu.org>
283
284 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
285
2862003-04-02 Chris Demetriou <cgd@broadcom.com>
287
288 * config/tc-mips.c (macro2): Adjust implementation of
289 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
290 in the case where the source and destination registers
291 are the same.
292
2932003-04-01 Bob Wilson <bob.wilson@acm.org>
294
295 * Makefile.am (CPU_TYPES): Add xtensa.
296 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
297 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
298 (xtensa-relax.o): New target.
299 Run "make dep-am".
300 * Makefile.in: Regenerate.
301 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
302 extra_objects for xtensa targets.
303 * configure: Regenerate.
304 * write.c (write_object_file): Add new md_post_relax_hook.
305 * config/tc-xtensa.c: New file.
306 * config/tc-xtensa.h: Likewise.
307 * config/xtensa-istack.h: Likewise.
308 * config/xtensa-relax.c: Likewise.
309 * config/xtensa-relax.h: Likewise.
310 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
311 * doc/Makefile.in: Regenerate.
312 * doc/all.texi: Set new XTENSA variable.
313 * doc/as.texinfo: Set new Xtensa variable. Describe
314 Xtensa-specific options. Define line comment character for
315 Xtensa. Add Xtensa processors to list of ELF targets where
316 alignment is specified in bytes. Add new Xtensa-Dependent node.
317 Add acknowledgements for those contributing to the Xtensa port.
318 * doc/internals.texi: Describe new md_post_relax_hook.
319 * doc/c-xtensa.texi: New file.
320
321
3222003-04-01 Nick Clifton <nickc@redhat.com>
323 Richard Earnshaw <rearnsha@arm.com>
324
325 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
326 (ARM_ARCH_IWMMXT): Simplify.
327 (insns): Place iwmmx instructions in correct place in table.
328 (arm_add_note): New function: Add a note entry to a .note section.
329 (md_begin): Make the default architecture be unknown.
330 Suppress the creation of an arm note section.
331
3322003-03-26 Eric Christopher <echristo@redhat.com>
333
334 * config/tc-mips.c (nopic_need_relax): Check for
335 S_IS_EXTERN.
336
3372003-03-25 Stan Cox <scox@redhat.com>
338 Nick Clifton <nickc@redhat.com>
339
340 Contribute support for Intel's iWMMXt chip - an ARM variant:
341
342 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
343 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
344 (enum wreg_type, enum iwmmxt_insn_type): New types.
345 (wr_register, wc_register, wcg_register): New macros.
346 (iwmmxt_table): New variable.
347 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
348 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
349 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
350 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
351 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
352 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
353 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
354 cp_byte_address_offset, cp_byte_address_required_here,
355 check_iwmmxt_insn): New functions.
356 (asm_opcode_insns): Add iWMMXt instructions.
357 (md_begin): Set the mach value for iWMMXt targets. Create a note
358 section to identify iwmmxt binaries.
359 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
360 * doc/c-arm.texi: Document the support for the iWMMXt.
361 * NEWS: Mention new support.
362
3632003-03-24 Daniel Néri <dne@mayonnaise.net>
364
365 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
366 * doc/all.texi: Likewise.
367 * doc/c-tic54x.texi: Likewise.
368
3692003-03-21 Andreas Schwab <schwab@suse.de>
370
371 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
372 avoid aliasing issue.
373
3742003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
375
376 * config/tc-s390.c (s390_arch_size): Initialize to zero.
377 (current_arch_mask): Rename to current_mode_mask.
378 (current_arch_requested): Remove variable.
379 (current_cpu): New variable.
380 (init_default_arch): Set defaults values for s390_arch_size,
381 current_mode_mask and current_cpu.
382 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
383 (md_begin): Replace current_arch_mask by current_cpu.
384 (md_assemble): Adapt check and error message to current_mode_mask and
385 current_cpu.
386
3872003-03-09 James E Wilson <wilson@tuliptree.org>
388
389 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
390 * read.c (get_line_sb): Return end of line character or '\n' if
391 it is zero or non-existent.
392
3932003-03-12 Alexandre Oliva <aoliva@redhat.com>
394
395 * config/tc-mips.c (mips_validate_fix): New function.
396 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
397 (mips_validate_fix): Declare.
398
3992003-03-12 Alexandre Oliva <aoliva@redhat.com>
400
401 * Reverted 2003-03-02's patch.
402
4032003-03-11 Steve Ellcey <sje@cup.hp.com>
404
405 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
406 (TC_DWARF2_EMIT_OFFSET): Provide default.
407 (out_debug_aranges, out_debug_info): Use it.
408 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
409 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
410 (ia64_gen_real_reloc_type): ... here.
411 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
412
4132003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
414
415 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
416 (s_mips_ent): Likewise.
417
4182003-03-04 Dmitry Diky <diwil@mail.ru>
419
420 * config/tc-msp430.c (mcu_types): Add recently announced x1122
421 and x1123 devices, add missed x437.
422 (md_show_usage): Sort device list.
423
4242003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
425
426 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
427 (md_begin): Use preset_target_arch.
428 (md_longopts): Make isa option unconditional.
429 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
430 set preset_target_arch.
431 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
432 by -S_GET_VALUE (fixP->fx_subsy).
433 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
434 and the addend is 0.
435 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
436 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
437
4382003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
439
440 * config/tc-mips.c (append_insn): Add handling of
441 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
442 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
443 misaligned address and reange overflow.
444 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
445 earlier warnings about misaligned address and reange overflow.
446 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
447 (md_apply_fix): Likewise. Fix warning output.
448 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
449 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
450 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
451
4522003-02-21 Nick Clifton <nickc@redhat.com>
453
454 * NEWS: Mention availability of test generator program.
455
4562003-02-21 Miles Bader <miles@gnu.org>
457
458 * config/tc-v850.c (system_registers): Add v850e debug registers.
459 (system_register_name): Accept up to 27 (the last v850e sys register).
460
4612003-02-21 Bob Wilson <bob.wilson@acm.org>
462
463 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
464 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
465 Capitalize section headings consistently. Format index entries more
466 consistently. Unconditionalize text about whether text and data
467 sections are alterable. Use @ifnottex for alternatives to @tex output
468 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
469 .size and .type directives. Be more polite about bad bug reports.
470 Move FDL into a separate file.
471 * doc/fdl.texi: New file.
472
4732003-02-21 Richard Sandiford <rsandifo@redhat.com>
474
475 * config/tc-mips.c (prev_reloc_op_frag): New variable.
476 (macro): Check it to decide whether a new frag is needed.
477 (my_getSmallExpression): Set it.
478
4792003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
480
481 * cgen.c: Fix typo: intial -> initial.
482
4832003-02-19 Jie Zhang <zhangjie@magima.com.cn>
484
485 * app.c (do_scrub_chars): Handle '||' in two states.
486
4872003-02-13 Alan Modra <amodra@bigpond.net.au>
488
489 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
490 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
491
4922003-02-11 Uwe Stieber <uwe@wwws.de>
493
494 * configure.in: Add support for kaOS as cross build target system.
495 * configure: Regenerated.
496
4972003-02-10 Nick Clifton <nickc@redhat.com>
498
499 * config/tc-arm.c (md_begin): If the Maverick co-processor is
500 selected, set the EF_ARM_MAVERICK_FLOAT flag and
501 bfd_mach_arm_ep9312 machine number.
502
5032003-02-08 Richard Sandiford <rsandifo@redhat.com>
504
505 * config/tc-mips.c (reloc_needs_lo_p): New function.
506 (fixup_has_matching_lo_p): New function.
507 (append_insn): Use reloc_needs_lo_p to check whether a relocation
508 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
509 if that fixup already has a matching %lo(). Don't call frag_wane here.
510 (macro): Call frag_wane here if the last unmatched hi was in the
511 current frag.
512 (pic_need_relax): New function, split out from...
513 (md_estimate_size_before_relax): ...here.
514 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
515 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
516
5172003-02-07 Richard Sandiford <rsandifo@redhat.com>
518
519 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
520
5212003-02-06 Alan Modra <amodra@bigpond.net.au>
522
523 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
524 x@toc+off works.
525
5262003-02-05 Alan Modra <amodra@bigpond.net.au>
527
528 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
529 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
530 accept x@got+off etc.
531 (md_assemble): Handle TLS relocs.
532 (ppc_force_relocation): Force for all TLS relocs.
533 (ppc_fix_adjustable): Likewise.
534 (md_apply_fix3): Handle TLS relocs.
535
5362003-02-04 Alan Modra <amodra@bigpond.net.au>
537
538 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
539 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
540
5412003-02-02 Richard Sandiford <rsandifo@redhat.com>
542
543 * config/tc-mips.c (enum small_ex_type): Remove.
544 (imm_unmatched_hi): Remove.
545 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
546 argument from calls to append_insn.
547 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
548 instead.
549 (macro_build): Update append_insn calls.
550 (mips16_macro_build, macro_build_lui): Likewise.
551 (mips_ip): Rework handling of small expressions. Move explicit
552 relocation handling into my_getSmallExpression. Assume that the
553 value of 'o' operands is zero if there is only one bracketed
554 expression left.
555 (percent_op): Make constant. Record the BFD relocation code
556 associated with each operator.
557 (my_getSmallParser, my_getPercentOp): Remove.
558 (parse_relocation): New function.
559 (my_getSamllExpression): Rework. Fill in relocations here
560 rather than in mips_ip.
561
5622003-01-29 Nick Clifton <nickc@redhat.com>
563
564 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
565 assembler's handling of # <linenum> "<filename>" directives work.
566
5672003-01-28 Jakub Jelinek <jakub@redhat.com>
568
569 * dwarf2dbg.c: Include filenames.h.
570 (struct file_entry): Make filename const char *.
571 (dirs, dirs_in_use, dirs_allocated): New variables.
572 (get_filenum): Add NUM argument. Build directory table.
573 (dwarf2_where): Adjust caller.
574 (dwarf2_directive_file): Use get_filenum to allocate
575 slot in file and directory tables.
576 (dwarf2_directive_loc): Recreate full filename from
577 directory and filename part if needed for listing.
578 (out_file_list): Output directory table.
579 Output main source file dirname before its filename.
580
5812003-01-28 Dmitry Diky <diwil@mail.ru>
582
583 * config/tc-msp430.c: Replace occurences of 'tolower' with
584 'TOLOWER'.
585
5862003-01-27 David Mosberger <davidm@hpl.hp.com>
587
588 * config/tc-ia64.c (dot_vframesp): Correct error message.
589 (dot_vframepsp): Ditto.
590
5912003-01-27 Alexandre Oliva <aoliva@redhat.com>
592
593 * configure.in (em): Set to irix on all Irix systems.
594 * configure: Rebuilt.
595 * config/te-irix.h: New file.
596 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
597 whether to use Irix-specific 64-bit format.
598
5992003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
600
601 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
602
6032003-01-25 Jakub Jelinek <jakub@redhat.com>
604
605 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
606 (tc_gen_reloc): Handle TLS relocs.
607 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
608 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
609 relocs.
610 * config/obj-elf.c (obj_elf_section_word): Handle tls.
611 (obj_elf_type): Handle tls_object.
612
6132003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
614
615 * config/tc-s390.c (s390_tls_suffix): New function.
616 (elf_suffix_type): Add suffix enums for TLS relocations.
617 (s390_elf_suffix): Add suffix strings for TLS relocations.
618 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
619 bfd relocations.
620 (md_gather_operands): Map new instruction operand/elf suffix
621 combinations for TLS to bfd relocations.
622 (tc_s390_fix_adjustable): Add new TLS relocations.
623 (tc_s390_force_relocation): Likewise.
624 (md_apply_fix3): Likewise.
625
6262003-01-24 Alan Modra <amodra@bigpond.net.au>
627
628 * as.h: Update copyright date.
629 * symbols.c: Likewise.
630 * config/tc-d10v.h: Likewise.
631 * config/tc-fr30.h: Likewise.
632 * config/tc-i960.h: Likewise.
633 * config/tc-mips.h: Likewise.
634
635 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
636 (MD_APPLY_SYM_VALUE): Move.
637
6382003-01-23 Nick Clifton <nickc@redhat.com>
639
640 NEWS: Announce sh2e support.
641
642 * Add sh2e support:
643
644 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
645
646 * config/tc-sh.c (md_show_usage): Added sh2e next to
647 sh3e.
648 (sh_elf_final_processing): Handle arch_sh2e.
649
6502003-01-23 Alan Modra <amodra@bigpond.net.au>
651
652 * symbols.c (S_FORCE_RELOC): Add "strict" param.
653 * symbols.h (S_FORCE_RELOC): Likewise.
654 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
655 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
656 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
657 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
658 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
659 * write.c (generic_force_reloc): New function.
660 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
661 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
662 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
663 * as.h (generic_force_reloc): Declare.
664 * doc/internals.texi (S_FORCE_RELOC): Update.
665 (TC_FORCE_RELOCATION_SUB_SAME): Update.
666
667 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
668 generic_force_reloc.
669 (alpha_fix_adjustable): Likewise.
670 * config/tc-arm.c (arm_force_relocation): Likewise.
671 * config/tc-cris.c (md_cris_force_relocation): Likewise.
672 * config/tc-frv.c (frv_force_relocation): Likewise.
673 * config/tc-i386.c (md_apply_fix3): Likewise.
674 * config/tc-ia64.c (ia64_force_relocation): Likewise.
675 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
676 * config/tc-m32r.c (m32r_force_relocation): Likewise.
677 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
678 * config/tc-mcore.c (mcore_force_relocation): Likewise.
679 * config/tc-mips.c (mips_force_relocation): Likewise.
680 * config/tc-mmix.c (mmix_force_relocation): Likewise.
681 * config/tc-ppc.c (ppc_force_relocation): Likewise.
682 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
683 * config/tc-sh.c (sh_force_relocation): Likewise.
684 (md_pcrel_from_section): Likewise.
685 * config/tc-sparc.c (tc_gen_reloc): Likewise.
686 * config/tc-v850.c (v850_force_relocation): Likewise.
687 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
688 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
689 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
690 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
691
692 * config/tc-d10v.c (d10v_force_relocation): Delete.
693 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
694 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
695 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
696 * config/tc-fr30.c (fr30_force_relocation): Delete.
697 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
698 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
699 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
700 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
701 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
702 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
703 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
704 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
705 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
706 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
707 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
708 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
709 * config/tc-i386.c (i386_force_relocation): Delete.
710 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
711 BFD_ASSEMBLER.
712 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
713 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
714 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
715 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
716 S_FORCE_RELOC.
717 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
718 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
719
7202003-01-23 Alan Modra <amodra@bigpond.net.au>
721
722 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
723 sh64_elf_section_data.
724 * config/tc-sh64.h: Include elf32-sh64.h.
725 * config/tc-m68hc11.c: Don't include stdio.h.
726 (md_show_usage): Fix missing continuation.
727 * Makefile.am: Run "make dep-am".
728 * Makefile.in: Regenerate.
729
7302003-01-22 Nick Clifton <nickc@redhat.com>
731
732 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
733
7342003-01-21 Fabio Alemagna <falemagn@aros.org>
735
736 * configure.in: Handle *-*-aros*.
737 * configure: Regenerated from configure.in.
738
7392003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
740
741 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
742 gotplt and pltoff relocations.
743 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
744 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
745 gotplt and pltoff to bfd relocations.
746 (md_gather_operands): Map new instruction operand/elf suffix
747 combinations to bfd relocations.
748 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
749 to the list of unadjustable relocations.
750 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
751 and pltoff relocations.
752 (md_apply_fix3): Add the new relocations.
753
7542003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
755
756 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
757 with a subsy symbol.
758
7592003-01-17 Stephane Carrez <stcarrez@nerim.fr>
760
761 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
762 of relocs for memory bank addressing.
763
7642003-01-17 Stephane Carrez <stcarrez@nerim.fr>
765
766 * config/tc-m68hc11.c (md_show_usage): Update usage.
767 (md_parse_option): Recognize -m68hcs12.
768 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
769 HCS12.
770 * doc/as.texinfo (Overview): Document new option -m68hcs12.
771
7722003-01-16 Jakub Jelinek <jakub@redhat.com>
773
774 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
775
7762003-01-16 Alan Modra <amodra@bigpond.net.au>
777
778 * Makefile.am: Run "make dep-am".
779 * Makefile.in: Regenerate.
780 * po/POTFILES.in: Regenerate.
781
7822003-01-11 Alan Modra <amodra@bigpond.net.au>
783
784 * read.c (get_absolute_expr): New, split out from..
785 (get_absolute_expression): ..here.
786 * read.h (get_absolute_expr): Declare.
787 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
788 Trim size to arch bits_per_address, and test for negative input
789 via get_absolute_expr.
790
7912003-01-07 DJ Delorie <dj@redhat.com>
792
793 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
794 on operand type.
795 (xstormy16_md_apply_fix3): Use adjustment.
796
7972003-01-02 Ben Elliston <bje@redhat.com>
798
799 * configure.in: Add iq2000-elf target.
800 * configure: Regenerate.
801 * config/tc-iq2000.c: New file.
802 * config/tc-iq2000.h: Likewise.
803 * po/gas.pot: Regenerate.
804
8052003-01-02 Chris Demetriou <cgd@broadcom.com>
806
807 * config/tc-mips.c: Update copyright years to include 2003.
808 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
809 Additionally, clean up their code slightly and clean up their
810 comments some more.
811
812 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
813
8142003-01-01 Daniel Jacobowitz <drow@mvista.com>
815
816 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
817 $(CPU_DOCS)".
818 * doc/Makefile.in: Regenerate.
819
8202003-01-01 John David Anglin <dave.anglin@nrc.ca>
821
822 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
823 of .init and .fini sections for array initializers and finalizers.
824
8252002-12-31 Chris Demetriou <cgd@broadcom.com>
826
827 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
828 the "+D" operand, which will be used only by the disassembler.
829
8302002-12-30 Chris Demetriou <cgd@broadcom.com>
831
832 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
833 CPU variants.
834 * configure: Regenerate.
835 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
836 (macro_build): Handle "K" operand.
837 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
838 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
839 (mips_ip): New variable "lastpos", and implement "+A", "+B",
840 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
841 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
842 (validate_mips_insn): Implement "+" as a way to extend the
843 allowed operands, and implement "K", "+A", "+B", and "+C"
844 operands.
845 (OPTION_MIPS32R2): New define.
846 (md_longopts): Add entry for OPTION_MIPS32R2.
847 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
848 (md_parse_option): Handle OPTION_MIPS32R2.
849 (s_mipsset): Reimplement handling of ".set mipsN" options
850 and add support for ".set mips32r2".
851 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
852 (md_show_usage): Document "-mips32r2" option.
853 * doc/as.texinfo: Document "-mips32r2" option.
854 * doc/c-mips.texi: Likewise.
855
8562002-12-30 Dmitry Diky <diwil@mail.ru>
857
858 * configure.in: Add msp430 target.
859 * configure: Regenerate.
860 * Makefile.am: Add msp430 target.
861 * Makefile.in: Regenerate.
862 * config/tc-msp430.c: New file: msp430 assembler.
863 * config/tc-msp430.h: New file: target macros for msp430.
864 * doc/Makefile.am: Add msp430 target.
865 * doc/Makefile.in: Regenerate.
866 * doc/as.texinfo: Include msp430 documenation.
867 * doc/all.texi: Enable msp430 documentation.
868 * doc/c-msp430.texi: New file: document msp430 specific features
869 of the assembler.
870
8712002-12-25 Alexandre Oliva <aoliva@redhat.com>
872
873 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
874 (dwarf2_finish): Use it.
875 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
876 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
877
8782002-12-20 DJ Delorie <dj@redhat.com>
879
880 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
881 BFD_RELOC_XSTORMY16_12.
882
8832002-12-19 Alan Modra <amodra@bigpond.net.au>
884
885 * doc/as.texinfo (Invoking): Typo fix.
886 * config/tc-tic54x.c (encode_operand): Comment typo fix.
887
8882002-12-18 Kazu Hirata <kazu@cs.umass.edu>
889
890 * doc/c-alpha.texi: Fix typos.
891 * doc/c-arm.texi: Likewise.
892 * doc/c-d10v.texi: Likewise.
893 * doc/c-i370.texi: Likewise.
894 * doc/c-i960.texi: Likewise.
895 * doc/c-ia64.texi: Likewise.
896 * doc/c-mmix.texi: Likewise.
897 * doc/c-ns32k.texi: Likewise.
898 * doc/c-pdp11.texi: Likewise.
899 * doc/c-pj.texi: Likewise.
900 * doc/c-sh64.texi: Likewise.
901 * doc/c-sparc.texi: Likewise.
902 * doc/c-tic54x.texi: Likewise.
903 * doc/c-v850.texi: Likewise.
904 * doc/c-vax.texi: Likewise.
905 * doc/internals.texi: Likewise.
906
9072002-12-18 Chris Demetriou <cgd@broadcom.com>
908
909 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
910 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
911 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
912 arrange not to issue warnings about use of AT when AT is not
913 actually used.
914
9152002-12-17 Nick Clifton <nickc@redhat.com>
916
917 * as.c (std_longopts): Duplicate --keep-locals entry in order to
918 prevent it being confused with -k.
919
9202002-12-16 Andrew MacLeod <amacleod@redhat.com>
921
922 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
923 has already been set up, use it.
924
9252002-12-16 Kazu Hirata <kazu@cs.umass.edu>
926
927 * ChangeLog-9295: Fix a typo.
928 * README: Likewise.
929 * config/tc-d10v.c: Fix a comment typo.
930 * config/tc-dlx.c: Likewise.
931 * config/tc-h8300.h: Likewise.
932 * config/tc-h8500.h: Likewise.
933 * config/tc-mips.c: Likewise.
934 * config/tc-s390.c: Likewise.
935 * config/tc-sh.h: Likewise.
936 * config/tc-tic80.h: Likewise.
937 * config/tc-w65.h: Likewise.
938 * config/tc-z8k.c: Likewise.
939 * config/tc-z8k.h: Likewise.
940 * testsuite/gas/h8300/cmpsi2.s: Likewise.
941
9422002-12-16 Alan Modra <amodra@bigpond.net.au>
943
944 * config/tc-d30v.c (check_range): Warning fixes, formatting.
945 Simplify sign extension. Remove redundant unsigned < 0 test.
946 * config/tc-i960.c (md_ri_to_chars): Prototype.
947 * config/tc-mcore.c (md_pseudo_table): Fix typo.
948 (dump_literals): Init brarsym, and test later instead of isforce.
949
950 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
951 (parse): Constify line and lineptr.
952 (md_begin): Calculate endop here.
953
9542002-12-13 Alan Modra <amodra@bigpond.net.au>
955
956 * config/obj-vms.c: Formatting. Include fnctl.h.
957 (Create_VMS_Object_File): Fix creat call for sane unix systems.
958 (Object_Record_Offset): Make it a size_t.
959 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
960 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
961 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
962 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
963 (vms_fixup_data_section <data_size>): Add here instead.
964 * config/e-criself.c: Fix typo in last change.
965
9662002-12-13 Alan Modra <amodra@bigpond.net.au>
967
968 * write.c (write_object_file): Fix signed/unsigned warning.
969 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
970 * config/e-criself.c (criself_bfd_name): Prototype.
971 * config/obj-aout.c (s_sect): Remove unused function.
972 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
973 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
974 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
975 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
976 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
977 (VMS_RSYM_Parse <Current_Routine>): Likewise.
978 (vms_fixup_text_section <text_siz>): Likewise.
979 (synthesize_data_segment <data_size>): Likewise.
980 (vms_fixup_xtors_section <sect_no>): Likewise.
981 (structure_count): Don't use implicit int type.
982 * config/tc-a29k.c (insert_sreg): Prototype.
983 (define_some_regs): Prototype, make static.
984 (parse_operand): Likewise.
985 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
986 (md_show_usage <stream>): Likewise.
987 (md_section_align <segment>): Likewise.
988 (md_convert_frag <all args>): Likewise.
989 (md_estimate_size_before_relax <all args>): Likewise.
990 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
991 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
992 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
993 (md_undefined_symbol <name>): Likewise.
994 (md_convert_frag <all args>): Likewise.
995 (write_long <opcode>): Likewise.
996 (tc_gen_reloc <seg>): Likewise.
997 (md_estimate_size_before_relax <all args>): Likewise.
998 (md_apply_fix3 <seg>): Likewise.
999 (s_d30v_align <ignore>): Likewise.
1000 (build_insn): Correct format string.
1001 (md_apply_fix3): Likewise.
1002 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1003 (md_undefined_symbol <name>): Likewise.
1004 (md_convert_frag <all args>): Likewise.
1005 (md_cgen_lookup_reloc <insn>): Likewise.
1006 (md_begin): Delete unused vars.
1007 (md_assemble): Likewise.
1008 (md_estimate_size_before_relax): Likewise.
1009 (fr30_relax_frag): #if 0 out, seems unused.
1010 (md_atof): Remove declaration of atof_ieee.
1011 (restore_colon): Prototype.
1012 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1013 (frv_find_in_vliw): Likewise.
1014 (frv_debug_tomcat): Likewise.
1015 (frv_adjust_vliw_count): Likewise.
1016 (frv_tomcat_shuffle): Likewise.
1017 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1018 frv_find_in_vliw call.
1019 (md_atof): Remove declaration of atof_ieee.
1020 * config/tc-h8500.c (cons): Delete declaration.
1021 (md_begin <opcode>): Constify.
1022 (displacement_size, immediate_size, absolute_size): Remove.
1023 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1024 (tc_crawl_symbol_chain <headers>): Likewise.
1025 (md_undefined_symbol <name>): Likewise.
1026 (tc_headers_hook <headers>): Likewise.
1027 (md_parse_option <c,arg>): Likewise.
1028 (md_show_usage <stream>): Likewise.
1029 (md_convert_frag <headers, seg>): Likewise.
1030 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1031 (md_atof): Remove declaration of atof_ieee.
1032 (tc_aout_fix_to_chars): Remove unused function.
1033 (parse_reg): Prototype.
1034 (parse_exp): Prototype.
1035 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1036 (parse_reglist): Prototype.
1037 (get_operand): Prototype.
1038 (get_operands): Prototype.
1039 (get_specific): Prototype. Make "this_index" signed.
1040 (check): Prototype, make static.
1041 (insert): Prototype
1042 (build_relaxable_instruction): Prototype, make static.
1043 (build_bytes): Prototype.
1044 (wordify_scb): Prototype.
1045 * config/tc-h8500.h (start_label): Declare.
1046 (tc_coff_sizemachdep): Declare.
1047 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1048 (i370_rmode <unused>): Likewise.
1049 (i370_csect <unused>): Likewise.
1050 (i370_dc <unused>): Likewise.
1051 (i370_ds <unused>): Likewise.
1052 (i370_elf_lcomm <unused>): Likewise.
1053 (i370_ltorg <ignore>): Likewise.
1054 (i370_using <ignore>): Likewise.
1055 (i370_drop <ignore>): Likewise.
1056 (i370_byte <ignore>): Likewise.
1057 (i370_tc <ignore>): Likewise.
1058 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1059 (md_convert_frag <all args>): Likewise.
1060 (md_undefined_symbol <name>): Likewise.
1061 (md_pcrel_from_section <sec>): Likewise.
1062 (tc_gen_reloc <seg>): Likewise.
1063 (i370_section_letter): #if 0 unused functions.
1064 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1065 (symbol_locate): Prototype.
1066 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1067 (md_number_to_disp, md_number_to_field): Remove.
1068 (md_apply_fix3): Correct format string and cast "fup".
1069 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1070 (s_endian <ignore>): Likewise.
1071 (md_undefined_symbol <name>): Likewise.
1072 (tc_crawl_symbol_chain <headers>): Likewise.
1073 (tc_set_bal_of_call): Likewise.
1074 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1075 (i960_handle_align <fragp>): Likewise.
1076 (i960_validate_fix <this_segment_type>): Likewise
1077 (tc_gen_reloc <section>): Likewise.
1078 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1079 (struct memS, struct regop): Forward declare.
1080 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1081 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1082 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1083 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1084 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1085 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1086 (md_number_to_field): Likewise.
1087 (md_number_to_disp): Remove unused function.
1088 (md_atof): Remove declaration of atof_ieee.
1089 (md_apply_fix3): Correct md_number_to_imm call.
1090 * config/tc-ip2k.c (md_assemble): Warning fix.
1091 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1092 (fill_insn <ignore>): Likewise.
1093 (debug_sym <ignore>): Likewise.
1094 (md_undefined_symbol <name>): Likewise.
1095 (m32r_scomm <ignore>): Likewise.
1096 (md_convert_frag <abfd>): Likewise.
1097 (md_cgen_lookup_reloc <insn>): Likewise.
1098 (m32r_record_hi16 <seg>): Likewise.
1099 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1100 (allow_m32rx): Prototype.
1101 (first_writes_to_seconds_operands): Prototype.
1102 (writes_to_pc): Prototype.
1103 (can_make_parallel): Prototype.
1104 (make_parallel): Prototype.
1105 (target_make_parallel): Prototype.
1106 (assemble_two_insns): Prototype.
1107 (m32r_record_hi16): Prototype.
1108 (md_atof): Remove declaration of atof_ieee.
1109 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1110 (m32r_force_relocation): Prototype.
1111 (m32r_elf_section_change_hook): Prototype.
1112 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1113 (md_show_usage): Fix signed/unsigned warning.
1114 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1115 (calcop): Ditto for reg_prefix var.
1116 (hexval): Add cast to fix signed/unsigned warning.
1117 (md_number_to_disp): Delete unused function.
1118 (md_number_to_field): Likewise.
1119 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1120 (match_name): Prototype.
1121 (get_bf2): Prototype.
1122 (get_bf_offset_expression): Prototype.
1123 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1124 (md_undefined_symbol <ignore>): Likewise.
1125 (md_create_short_jump <all args>): Likewise.
1126 (md_create_long_jump <all args>): Likewise.
1127 (md_convert_frag <abfd, sec>): Likewise.
1128 (md_apply_fix3 <segment>): Likewise.
1129 (md_section_align <segment>): Likewise.
1130 (md_pcrel_from_section <sec>): Likewise.
1131 (tc_gen_reloc <section>): Likewise.
1132 (reg_m, reg_n, immediate): Delete unused vars.
1133 (dump_literals): Fix signed/unsigned warning.
1134 (enter_literal): Likewise.
1135 (parse_imm): Likewise. Also fix format string.
1136 (parse_mem): Remove unused var.
1137 (md_assemble <LS>): Abort on unexpected inst.
1138 (md_atof): Remove declaration of atof_ieee.
1139 (md_parse_option): Remove unused vars.
1140 (md_apply_fix3): Fix format strings, cast args.
1141 (tc_gen_reloc): Delete unused var.
1142 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1143 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1144 (md_undefined_symbol <name>): Likewise.
1145 (md_convert_frag <abfd>): Likewise.
1146 (tc_gen_reloc <seg>): Likewise.
1147 (check_operand <insn>): Likewise.
1148 (md_convert_frag): Fix format strings.
1149 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1150 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1151 (md_atof): Remove declaration of atof_ieee.
1152 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1153 (md_apply_fix3): Fix bogus >>='s.
1154 (md_undefined_symbol): Delete unused var.
1155 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1156 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1157 (fake_opcode): Adjust for pj_opc_int_t change.
1158 (md_begin): Likewise.
1159 (md_assemble): Likewise.
1160 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1161 instead of non-existent third arg of parse_exp_save_ilp.
1162 (md_parse_option): Correct "little" and "big" calls.
1163 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1164 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1165 (tc_gen_reloc <section>): Likewise.
1166 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1167 (debug): Rewrite using VA_* macros.
1168 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1169 (md_convert_frag): Likewise.
1170 (md_parse_option): Likewise.
1171 (md_show_usage): Likewise.
1172 (md_undefined_symbol): Likewise.
1173 (tc_gen_reloc): Likewise.
1174 (md_operand): Likewise.
1175 (tc_aout_pre_write_hook): Delete.
1176 (struct tic30_insn): Make "operands" unsigned.
1177 (struct tic30_par_insn): Likewise.
1178 (md_assemble): Likewise for "count", "i" and "numops".
1179 (tic30_parallel_insn): Likewise for vars here.
1180 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1181 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1182 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1183 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1184 (md_undefined_symbol): Likewise.
1185 (md_parse_option): Likewise.
1186 (md_convert_frag): Likewise.
1187 (tc_coff_symbol_emit_hook): Likewise.
1188 (md_atof): Remove declaration of atof_ieee.
1189 (const_overflow): Warning fixes, tidy.
1190 (get_operands): Delete unused vars.
1191 (internal_error_a): Adjust format string to expect a long for arg.
1192 (find_opcode): Warning fixes, simplify.
1193 (build_insn): Cast internal_error_a arg.
1194 (md_begin): Likewise.
1195 (md_apply_fix3): Likewise.
1196 (md_assemble): Delete unused var.
1197 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1198 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1199 (whatreg, parse_reg, parse_exp): Make static, prototype.
1200 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1201 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1202 (get_operand, get_operands, get_specific, newfix): Likewise.
1203 (apply_fix, build_bytes): Likewise.
1204 (md_atof): Remove declaration of atof_ieee.
1205 (tc_aout_fix_to_chars): Delete.
1206 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1207 Fix s_unseg call.
1208 (md_parse_option): Fix s_segm and s_unseg calls.
1209
12102002-12-12 Alexandre Oliva <aoliva@redhat.com>
1211
1212 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1213 Adjust callers.
1214 (RELAX_BRANCH_RELOC_S2): Delete.
1215 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1216 Do not handle BFD_RELOC_16_PCREL.
1217 (macro_build, mips_ip): Likewise.
1218 (md_pcrel_from): Return 4 for undefined symbols regardless of
1219 mips_pic.
1220 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1221 Don't dereference howto if no such relocation is available.
1222 Do not apply hack for in-place zero addend in NEWABI.
1223 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1224
12252002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1226 Alan Modra <amodra@bigpond.net.au>
1227
1228 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1229 (TC_LINKRELAX_FIXUP): Add comments.
1230
12312002-12-12 Alexandre Oliva <aoliva@redhat.com>
1232
1233 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1234 avoid warnings.
1235 (r_register_name, xr_register_name): Add prototype declarations.
1236
12372002-12-08 H.J. Lu <hjl@gnu.org>
1238
1239 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1240 copied from tc-i386.c.
1241
12422002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1243
1244 Fix Bug savannah/1825:
1245 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1246 (md_relax_table): Define specific relax for PC-rel offsets.
1247 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1248 (m68hc11_relax_frag): Handle the new relax code.
1249 (md_convert_frag): Likewise.
1250 (md_estimate_size_before_relax): Likewise.
1251
12522002-12-08 Alan Modra <amodra@bigpond.net.au>
1253
1254 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1255
12562002-12-05 Richard Henderson <rth@redhat.com>
1257
1258 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1259 (ia64_gen_real_reloc_type): Handle it.
1260 (pseudo_func): Add @ltoffx.
1261 (md_begin): Build .<ltoffx>.
1262 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1263
12642002-12-05 Alan Modra <amodra@bigpond.net.au>
1265
1266 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1267 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1268 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1269 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1270 COFF to call arm_force_relocation.
1271
12722002-12-04 David Mosberger <davidm@hpl.hp.com>
1273
1274 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1275 instruction.
1276 (emit_one_bundle): Handle "hint" instruction.
1277 (operand_match): Match IA64_OPND_AR_CSD.
1278
12792002-12-04 Alan Modra <amodra@bigpond.net.au>
1280
1281 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1282 inside #if.
1283
12842002-12-03 Nick Clifton <nickc@redhat.com>
1285
1286 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1287 .PPC.EMB.apuinfo sections.
1288
12892002-12-03 Richard Henderson <rth@redhat.com>
1290
1291 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1292
12932002-12-03 Alan Modra <amodra@bigpond.net.au>
1294
1295 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1296 (cons, s_align_bytes): Delete declaration.
1297 (relax): Delete.
1298 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1299 strings common.
1300 (dot): Delete unused function.
1301 (w65_expression): Remove unused arg.
1302 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1303 call.
1304 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1305 parse_exp call.
1306 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1307 value.
1308 (check): Remove unused function.
1309 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1310 on unhandled switch case.
1311 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1312 "opcode".
1313 (tc_crawl_symbol_chain): Delete unused function.
1314 (tc_headers_hook): Likewise.
1315 (tc_Nout_fix_to_chars): Likewise.
1316 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1317 (md_parse_option): Likewise.
1318 (md_convert_frag): Likewise.
1319 (tc_coff_symbol_emit_hook): Likewise.
1320 (md_show_usage): Likewise.
1321 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1322 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1323 (w65_expression): Declare.
1324
1325 * po/POTFILES.in: Regenerate.
1326
1327 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1328 and ARM_ADRL_IMMEDIATE.
1329
13302002-12-02 Nick Clifton <nickc@redhat.com>
1331
1332 * gasp.c: Delete. It has been deprecated.
1333 * NEWS: Mention that gasp has been removed.
1334 * Makefile.am: Remove references to gasp.
1335 * makefile.vms: Likewise.
1336 * mpw-make.sed: Likewise.
1337 * Makeile.in: Regenerate.
1338 * doc/gasp.texi: Delete.
1339 * doc/Makefile.am: Remove references to gasp.texi.
1340 * doc/Makefile.in: Regenerate.
1341 * macro.c: Delete references to gasp.
1342 Remove use of comment_char function parameter as it is no longer
1343 needed.
1344 * macro.h: Update prototypes to remove comment_char parameter.
1345 Fix formatting.
1346 * read.c (read_a_source_file, s_irp): Remove comment_char
1347 parameter from invocation of functions in macro.c
1348
13492002-12-02 Hans-Peter Nilsson <hp@axis.com>
1350
1351 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1352
13532002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1354
1355 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1356 (tc_gen_reloc): Mark section param as not used.
1357
13582002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1359
1360 Fix Bug savannah/1825:
1361 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1362 that are not pc-relative.
1363 (m68hc11_relax_frag): Declare.
1364
1365 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1366 the offsetable indexed addressing modes (n,r).
1367 (build_insn): Cleanup some locals.
1368 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1369 relaxation of difference between two symbols of same section.
1370 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1371 only when this is a PC-relative operand and the offset is not absolute.
1372 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1373 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1374 be handled by m68hc11_relax_frag.
1375
13762002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1377
1378 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1379 (32-bit int, 64-bit double).
1380 (md_longopts): New options -mshort, -mlong, -mshort-double and
1381 -mlong-double to control the ABI.
1382 (md_show_usage): Update.
1383 (md_parse_option): Handle new options.
1384 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1385
13862002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1387
1388 * symbols.c (report_op_error): New function, broken out of ...
1389 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1390 operators.
1391
13922002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1393
1394 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1395 for BFD_RELOC_32_PLT_PCREL.
1396
13972002-11-30 Alan Modra <amodra@bigpond.net.au>
1398
1399 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1400 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1401 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1402 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1403 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1404 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1405 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1406 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1407 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1408 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1409 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1410 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1411 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1412 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1413 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1414 TRUE/FALSE. Formatting.
1415
14162002-11-29 Nick Clifton <nickc@redhat.com>
1417
1418 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1419 assume a value of zero.
1420 (do_bkpt): Likewise.
1421
14222002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1423
1424 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1425 for TLS relocations.
1426
14272002-11-29 Jakub Jelinek <jakub@redhat.com>
1428
1429 * config/tc-ia64.c (md_apply_fix3): Add default case.
1430
14312002-11-28 Jakub Jelinek <jakub@redhat.com>
1432
1433 * symbols.c (S_SET_THREAD_LOCAL): New function.
1434 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1435 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1436 for TLS relocations.
1437 * config/tc-ia64.c (md_apply_fix3): Likewise.
1438 * config/tc-alpha.c (md_apply_fix3): Likewise.
1439
14402002-11-28 Jakub Jelinek <jakub@redhat.com>
1441
1442 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1443 to entsize.
1444
14452002-11-26 DJ Delorie <dj@redhat.com.
1446
1447 * dwarf2dbg.c (scale_addr_delta): New.
1448 (size_inc_line_addr): Use it.
1449 (emit_inc_line_addr): Use it.
1450
14512002-11-26 Hans-Peter Nilsson <hp@axis.com>
1452
1453 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1454 (md_assemble): Don't pass on branches to constants as relaxable.
1455 Tweak comment.
1456
14572002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1458
1459 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1460
14612002-11-21 Randolph Chung <randolph@tausq.org>
1462
1463 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1464 only if they have default visibility.
1465
14662002-11-21 Richard Henderson <rth@redhat.com>
1467
1468 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1469 S_IS_DEFINED test.
1470
14712002-11-21 Alan Modra <amodra@bigpond.net.au>
1472
1473 * config/tc-mcore.c (mcore_pool_count): New function.
1474 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1475
14762002-11-20 Klee Dienes <kdienes@apple.com>
1477
1478 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1479 coalesce the name fields to use the same pointer.
1480
1481 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1482 the name fields to use the same pointer.
1483 (get_specific): Check for opcodes with the same name using strcmp
1484 as well as comparing the pointer.
1485
14862002-11-20 Alan Modra <amodra@bigpond.net.au>
1487
1488 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1489 fx_subsy non-NULL.
1490
14912002-11-19 Richard Henderson <rth@redhat.com>
1492
1493 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1494 visibility portion of st_other.
1495
14962002-11-19 Klee Dienes <kdienes@apple.com>
1497
1498 * config/tc-h8300.c (struct h8_instruction): New type, used to
1499 wrap h8_opcodes with length, noperands, idx, and size fields
1500 (computed at run-time).
1501 (h8_instructions): New variable.
1502 (md_begin): Allocate the storage for h8_instructions. Fill
1503 h8_instructions with pointers to the appropriate opcode and the
1504 correct value for the additional fields.
1505 (clever_message): Update to use h8_instructions instead of
1506 h8_opcodes.
1507 (build_bytes): Ditto.
1508 (get_specific): Ditto.
1509 (md_assemble): Ditto.
1510
15112002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1512
1513 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1514 adjustments to symbols in merge sections.
1515
15162002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1517
1518 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1519
15202002-11-18 Kevin Buettner <kevinb@redhat.com>
1521
1522 * dwarf2dbg.h (dwarf2_format): New enum.
1523 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1524 (out_debug_line, out_debug_info): Add code for handling 64-bit
1525 DWARF 2 formats.
1526 * config/tc-mips.h (mips_dwarf2_format): Declare.
1527 * config/tc-mips.c (mips_dwarf2_format): New function.
1528 * doc/internals.texi (DWARF2_FORMAT): Document.
1529
15302002-11-18 Alexandre Oliva <aoliva@redhat.com>
1531
1532 * config/tc-mips.c (s_change_section): Make sure input buffer
1533 is not accessed past the end. Don't hand
1534 obj_elf_change_section a pointer into the input buffer.
1535
15362002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1537
1538 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1539 GOT_LO16 on NEWABI.
1540
15412002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1542
1543 * config/tc-tic4x.c: Fixed proper commandline
1544 parameters. Added support for new opcode-list format. General
1545 error message fixups.
1546 (c4x_inst_add): Reject insn not for our CPU
1547 (md_begin): Added matrix for setting the proper opcode-level &
1548 device-flags according to cpu type and revision. Rewrite the
1549 opcode hasher.
1550 (c4x_operand_parse): Fix opcode bug
1551 (c4x_operands_match): New function argument. Added dry-run
1552 mechanism, that is optional error generation. Added constraint 'i'
1553 and 'j'.
1554 (c4x_insn_check): Added new function for post-verification of the
1555 generated insn.
1556 (md_assemble): Check all opcodes before croaking because of an
1557 argument mismatch. Need this to be able to fully support
1558 ortogonally arguments.
1559 (md_parse_options): Revised commandprompt swicthes and added new
1560 ones.
1561 (md_show_usage): Complete rewrite of printout.
1562
15632002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1564
1565 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1566 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1567 warning when using constant direct bigger than 2^16. Add the new
1568 arguments.
1569
15702002-11-11 Christopher Faylor <cgf@redhat.com>
1571
1572 * configure.in: Use .gdbinit under Cygwin.
1573 * configure: Regenerate.
1574
15752002-11-11 Christopher Faylor <cgf@redhat.com>
1576
1577 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1578 STRICT_PE_FORMAT.
1579
15802002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1581
1582 * config/tc-tic4x.c: Declare as many functions as possible as
1583 static. Maintenance on the general indenting. Removed unnecessary
1584 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1585 function. Add support for new DSP, TMS320VC33. Fix bug for
1586 converting flonum constants.
1587 (c4x_do_align): Add proper align handling. Setup align to insert
1588 NOP's.
1589 (c4x_gen_to_words): Support for extended TI type floats.
1590 (md_atof): Proper dumping of multiple-word littlenums.
1591 (c4x_atof): Added support for extended TI type floats.
1592 (c4x_stringer): Added new function to handle compact strings.
1593 (c4x_emit_char): Added new function argument to handle custom
1594 length inserts, like single-byte strings.
1595 * config/tc-tic4x.h: Add proper align handling with NOP's.
1596 * Makefile.am: Added tic4x dependecy
1597 * Makefile.in: Regenerate
1598
15992002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1600
1601 * macro.c (get_any_string): Correct logic for not going beyond end
1602 of in->ptr[].
1603
16042002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1605
1606 * config/tc-mmix.c (get_putget_operands): Mark both possible
1607 operands as invalid at beginning.
1608
1609 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1610 Initialize target of fixup to zero.
1611
16122002-11-07 Alexandre Oliva <aoliva@redhat.com>
1613
1614 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1615 NEWABI, but we should still emit HI16_S for non-PIC n32.
1616
16172002-11-06 Richard Henderson <rth@redhat.com>
1618
1619 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1620 (alpha_fix_adjustable): ... here.
1621 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1622
16232002-11-07 Eric Kohl <ekohl@rz-online.de>
1624
1625 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1626 of a label.
1627
16282002-11-05 H.J. Lu <hjl@gnu.org>
1629
1630 * config/tc-mips.c (support_64bit_objects): Check *l before it
1631 is freed.
1632
16332002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1634
1635 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1636 SEC_LOAD flags for sections marked as 's'.
1637
16382002-11-01 Alan Modra <amodra@bigpond.net.au>
1639
1640 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1641 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1642 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1643 default.
1644
1645 * dep-in.sed: Fix typo.
1646
16472002-10-30 Daniel Jacobowitz <drow@mvista.com>
1648
1649 * configure.in: Update ARM CPU patterns.
1650 * configure: Regenerated.
1651
16522002-10-29 Daniel Jacobowitz <drow@mvista.com>
1653
1654 * itbl-lex.l: Use #include <> for generated headers.
1655 * itbl-ops.c: Likewise.
1656
16572002-10-28 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * doc/gasp.texi: Fix typo in deprecation note.
1660
16612002-10-23 Nick Clifton <nickc@redhat.com>
1662
1663 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1664 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1665
16662002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1667
1668 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1669 (tc_frob_file_before_adjust): Don't define.
1670 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1671 function.
1672 (mmix_frob_file_before_adjust): Remove ineffective function.
1673
16742002-10-23 Hans-Peter Nilsson <hp@axis.com>
1675
1676 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1677 (cris_relax_frag): New function.
1678 (md_estimate_size_before_relax) <case ENCODE_RELAX
1679 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
1680 expressions that will become absolute expressions to relaxation.
1681 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
1682 STATE_WORD)>: Expect only absolute expressions. Use the symbol
1683 value, not distance to symbol.
1684 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
1685 Ditto. Correct placement of fixup.
1686 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
1687 (gen_bdap): Ditto.
1688 * config/tc-cris.h (cris_relax_frag): Declare.
1689 (md_relax_frag): Define.
1690
16912002-10-22 Alan Modra <amodra@bigpond.net.au>
1692
1693 * config/obj-elf.c (special_sections): Use correct types for init
1694 array sections.
1695 (obj_elf_change_section): Don't mess with init array section type.
1696
16972002-10-21 Richard Sandiford <rsandifo@redhat.com>
1698
1699 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
1700 for relocs against symbols in a merged section.
1701
17022002-10-18 Alexandre Oliva <aoliva@redhat.com>
1703
1704 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
1705 table as register names.
1706
17072002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1708
1709 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
1710 for option -m31.
1711
17122002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1713
1714 * expr.c (operand): Add support for n.nn flonums.
1715
17162002-10-17 Johannes Stezenbach <js@convergence.de>
1717
1718 * itbl-parse.y (entry): Provide empty action.
1719
17202002-10-16 Alan Modra <amodra@bigpond.net.au>
1721
1722 * configure.in (BFDVER_H): Set and subst.
1723 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
1724 * Makefile.am: Run "make dep-am".
1725 (BFDVER_H): Define.
1726 * configure: Regenerate.
1727 * Makefile.in: Regenerate.
1728 * doc/Makefile.in: Regenerate.
1729
17302002-10-15 Alan Modra <amodra@bigpond.net.au>
1731
1732 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
1733 (MD_APPLY_SYM_VALUE): Define for PE too.
1734
17352002-10-14 Alan Modra <amodra@bigpond.net.au>
1736
1737 * Makefile.am: Run "make dep-am".
1738 (CPU_OBJ_VALID): sh64 coff is invalid.
1739 * as.c: #include "bfdver.h".
1740 * Makefile.in: Regenerate.
1741 * config.in: Regenerate.
1742
17432002-10-14 Momchil Velikov <velco@fadata.bg>
1744
1745 * config/tc-v850.c (CHECK_): Remove token pasting operator.
1746
17472002-10-14 Richard Sandiford <rsandifo@redhat.com>
1748
1749 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
1750 * configure: Regenerate.
1751
17522002-10-13 Eric Christopher <echristo@redhat.com>
1753 Alexandre Oliva <aoliva@redhat.com>
1754
1755 * config/tc-mips.c (s_gpdword): New function.
1756 (mips_pseudo_table): Add .gpdword.
1757 (mips_need_elf_addend_fixup): never for NEWABI.
1758 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
1759 GPREL32 as done.
1760 (s_cpadd): Generate .cpadd on NEWABI.
1761
17622002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
1763
1764 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
1765
17662002-10-12 Alexandre Oliva <aoliva@redhat.com>
1767
1768 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
1769 (md_relax_frag): Adjust macro.
1770 * config/tc-mips.c (mips_relax_branch): New variable.
1771 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
1772 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
1773 (RELAX_MIPS16_P): Adjust.
1774 (append_insn): Emit branch to non-constant in a frag_var if
1775 branch-relaxation is desirable and possible.
1776 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
1777 (OPTION_ELF_BASE): Adjust.
1778 (md_parse_option): Handle new options.
1779 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
1780 branch relaxation.
1781 (relaxed_branch_length): New function.
1782 (md_estimate_size_before_relax): Handle branch frags.
1783 (mips_relax_frag): Likewise.
1784 (md_convert_frag): Handle branch frags. Warn if branch is
1785 relaxed.
1786
17872002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1788
1789 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
1790 emitted.
1791 (md_apply_fix3): Add TLS relocs.
1792 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
1793 @DTPOFF.
1794
17952002-10-11 Michel Six <msix@ccr.jussieu.fr>
1796 Alan Modra <amodra@bigpond.net.au>
1797
1798 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
1799 (md_estimate_size_before_relax): Likewise for 8 bit branches.
1800
1801Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
1802
1803 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
1804 inside loop.
1805
18062002-10-09 Richard Shann <richard.shann@superh.com>
1807 Stephen Clarke <stephen.clarke@superh.com>
1808
1809 * config/tc-sh64.c (sh64_target_format): Add support for sh64
1810 Linux environment.
1811
18122002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1813
1814 * contig/tc-sh.c (sh_local_pcrel): New.
1815 (sh_force_relocation): Use sh_local_pcrel.
1816 (md_pcrel_from_section): Check the relocation type whether it
1817 should be resolved locally. Use S_FORCE_RELOC.
1818
18192002-10-01 Alan Modra <amodra@bigpond.net.au>
1820
1821 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1822 (TC_FORCE_RELOCATION): Tidy arg.
1823
18242002-09-30 Gavin Romig-Koch <gavin@redhat.com>
1825 Ken Raeburn <raeburn@cygnus.com>
1826 Aldy Hernandez <aldyh@redhat.com>
1827 DJ Delorie <dj@redhat.com>
1828 Michael Meissner <meissner@redhat.com>
1829 Eric Christopher <echristo@redhat.com>
1830 Richard Sandiford <rsandifo@redhat.com>
1831
1832 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
1833 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
1834 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
1835 (hilo_interlocks): True for CPU_VR5500.
1836 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
1837 (mips_fix_vr4122_bugs): New.
1838 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
1839 (mips_emit_delays): Likewise.
1840 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
1841 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
1842 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
1843 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
1844 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
1845 (OPTION_ELF_BASE): Bump.
1846 (md_parse_option): Handle the new options.
1847 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
1848 vr5400 and vr5500.
1849
18502002-09-29 H.J. Lu <hjl@gnu.org>
1851
1852 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
1853 twice if howto->pcrel_offset is true.
1854
18552002-09-28 Matt Thomas <matt@3am-software.com>
1856 Jason Thorpe <thorpej@wasabisystems.com>
1857
1858 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
1859 convert undefined references to GOT32/PLT32 if PIC code is
1860 requested. Fix comment.
1861
18622002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1863
1864 * config/tc-sh.c (sh_force_relocation): Return 0 for
1865 some PC relative relocations when not relaxing.
1866
18672002-09-26 Jakub Jelinek <jakub@redhat.com>
1868
1869 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
1870 Define them if not BFD_ASSEMBLER.
1871 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
1872 @tlsld.
1873 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
1874 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
1875 (tc_gen_reloc): Handle x86-64 TLS relocs.
1876
18772002-09-27 Alan Modra <amodra@bigpond.net.au>
1878
1879 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
1880 fixups to current or absolute section.
1881
18822002-09-26 Jim Wilson <wilson@redhat.com>
1883
1884 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
1885 and frag_more.
1886
18872002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1888
1889 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
1890 capable configuration.
1891 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
1892 generation.
1893 (mips_ip): Likewise.
1894
18952002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1896
1897 * config/tc-mips.c (append_insn): Fix jump overflow check.
1898
18992002-09-24 Alan Modra <amodra@bigpond.net.au>
1900
1901 * config/tc-i386.c (process_operands): Warn about "lea" segment
1902 overrides.
1903
19042002-09-22 Mark Elbrecht <snowball3@softhome.net>
1905
1906 * write.c: Delete set_segment_vma and prototype. Update all callers.
1907
19082002-09-21 Alan Modra <amodra@bigpond.net.au>
1909
1910 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
1911 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
1912 Rename "fseg" to "sym_seg".
1913 * Makefile.am: Run "make dep-am".
1914 * Makefile.in: Regenerate.
1915 * doc/Makefile.in: Regenerate.
1916
19172002-09-20 Nick Clifton <nickc@redhat.com>
1918
1919 * symbols.c (colon): Do not allow symbols to be created in the
1920 absolute section if WORKING_DOT_WORD is not defined and
1921 new_broken_words would require a new frag to be created.
1922
19232002-09-20 Alan Modra <amodra@bigpond.net.au>
1924
1925 * expr.c (expr): Simplify foo-foo here.
1926 (clean_up_expression): Remove O_subtract code.
1927
1928 * write.h (struct fix): Add fx_dot_value.
1929 (dot_value): Declare.
1930 * write.c (dot_value): New var.
1931 (fix_new_internal): Save dot_value as fx_dot_value.
1932 (fixup_segment): Adjust fx_offset using fx_dot_value.
1933 * expr.c (expr): Update dot_value.
1934
19352002-09-19 Jakub Jelinek <jakub@redhat.com>
1936
1937 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
1938 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
1939 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
1940 if not defined.
1941 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
1942 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
1943 BFD_RELOC_386_TLS_GOTIE.
1944
19452002-09-19 Richard Henderson <rth@redhat.com>
1946
1947 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
1948 branch type relocs.
1949 (alpha_force_relocation): Don't special-case branch type relocs.
1950
19512002-09-19 Nick Clifton <nickc@redhat.com>
1952
1953 * config/tc-m68k.c (select_control_regs): Handle situation where
1954 architecture has not yet been selected.
1955
19562002-09-18 Chris Demetriou <cgd@broadcom.com>
1957
1958 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
1959 (IS_SEXT_16BIT_NUM): New macro.
1960 (macro_build_ldst_constoffset): New function, to build a set of
1961 instructions to do a load or store from a constant offset relative
1962 to a given register.
1963 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
1964 .cprestore pseudo-op.
1965
19662002-09-18 Chris Demetriou <cgd@broadcom.com>
1967
1968 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
1969
19702002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1971
1972 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
1973
19742002-09-17 Stan Cox <scox@redhat.com>
1975
1976 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
1977 (macro): Likewise for la. Likewise for ld.
1978 (mips_after_parse_args): Make -xgot optional, not the default.
1979 (md_apply_fix3): Allow composite relocation to set up gp.
1980 (tc_gen_reloc): Allow relaxing for newabi.
1981 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
1982 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
1983
19842002-09-17 Nick Clifton <nickc@redhat.com>
1985
1986 * config/tc-arm.c (md_apply_fix3): Note that an implemented
1987 BFD_RELOC_ARM_IMMEDIATE has been done.
1988 (tc_gen_reloc): Do not issue reloc number of unimplemented
1989 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
1990 their name is already in the error message - plus remove them
1991 from the default case.
1992
1993 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
1994 behavior of instructions.
1995
19962002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
1997
1998 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
1999 Convert functions to K&R format.
2000
20012002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2002
2003 * config/tc-mips.c (pdr_seg): Define only for ELF.
2004 (s_change_section): Remove unused variable. Don't use for nonELF.
2005
20062002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2007
2008 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2009 obj-elf.h
2010 * config/obj-elf.h (obj_elf_change_section): Likewise.
2011
20122002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2013
2014 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2015 (out_debug_info): Likewise.
2016
20172002-09-16 Bruno Haible <bruno@clisp.org>
2018
2019 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2020 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2021 * config/tc-i386.c (i386_target_format): Likewise.
2022 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2023 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2024
20252002-09-13 Nick Clifton <nickc@redhat.com>
2026
2027 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2028 when deciding if any operands have been skipped.
2029
20302002-09-11 Nick Clifton <nickc@redhat.com>
2031
2032 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2033
2034 * po/tr.po: Updated Turkish translation.
2035
20362002-09-11 Jakub Jelinek <jakub@redhat.com>
2037
2038 * config/tc-i386.c (md_apply_fix3): Allow addend for
2039 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2040 BFD_RELOC_386_TLS_LE_32.
2041
20422002-09-05 Jeff Law <law@redhat.com>
2043
2044 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2045 marker relocations such as ENTRY/EXIT.
2046 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2047 to both OBJ_ELF and OBJ_SOM.
2048
20492002-09-05 Alan Modra <amodra@bigpond.net.au>
2050
2051 * doc/internals.texi (md_apply_fix3): Expand.
2052 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2053 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2054 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2055 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2056 EXTERN_FORCE_RELOC): Document.
2057 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2058 * as.h: Don't include struc-symbol.h for arc.
2059 (IS_ELF): Define.
2060 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2061 subtract absolute symbol.
2062 * obj.h (struct format_ops): Add frob_file_before_fix.
2063 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2064 * symbols.c (S_FORCE_RELOC): New function.
2065 * symbols.h (S_FORCE_RELOC): Declare.
2066 * write.c (TC_FORCE_RELOCATION): Change default.
2067 (TC_FORCE_RELOCATION_ABS): Define.
2068 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2069 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2070 (TC_FORCE_RELOCATION_SECTION): Don't define.
2071 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2072 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2073 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2074 (TC_VALIDATE_FIX_SUB): Define.
2075 (TC_FIX_ADJUSTABLE): Don't define.
2076 (MD_APPLY_SYM_VALUE): Define this instead.
2077 (abs_section_sym): New variable.
2078 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2079 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2080 Don't put the absolute section sym on fixups here.
2081 (fix_segment): New function.
2082 (write_relocs): Don't call fixup_segment from here.
2083 (write_object_file): Instead call tc_frob_file_before_fix,
2084 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2085 Don't output the absolute section symbol.
2086 (fixup_segment): Rewrite.
2087 * write.h (abs_section_sym): Declare.
2088 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2089 obj_aout_frob_file.
2090 (aout_format_ops): Adjust to suit.
2091 * config/obj-aout.h (obj_frob_file): Don't define.
2092 (obj_frob_file_before_fix): Define.
2093 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2094 (S_FORCE_RELOC): Define.
2095 * config/obj-bout.h (S_FORCE_RELOC): Define.
2096 * config/obj-coff.c (coff_format_ops): Init new field.
2097 * config/obj-coff.h: Formatting fixes.
2098 (obj_sec_sym_ok_for_reloc): Define.
2099 (S_FORCE_RELOC): Define.
2100 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2101 (ecoff_frob_file): .. from here.
2102 (ecoff_format_ops): Add new function.
2103 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2104 (obj_frob_file_before_fix): Define.
2105 * config/obj-elf.c (elf_format_ops): Init new field.
2106 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2107 * config/obj-ieee.h: Formatting fixes.
2108 (S_FORCE_RELOC): Define.
2109 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2110 * config/obj-vms.h (S_FORCE_RELOC): Define.
2111 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2112 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2113 for BFD_RELOC_32 and BFD_RELOC_64.
2114 (alpha_fix_adjustable): Remove extern and weak tests.
2115 (alpha_before_fix): Rename from alpha_adjust_symtab.
2116 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2117 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2118 (TC_VALIDATE_FIX): Tweak param name.
2119 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2120 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2121 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2122 (MD_APPLY_SYM_VALUE): Define.
2123 (tc_adjust_symtab): Don't define.
2124 (alpha_adjust_symtab): Don't declare.
2125 (tc_frob_file_before_fix): Define.
2126 (alpha_before_fix): Declare.
2127 (TC_INIT_FIX_DATA): Tweak param names.
2128 * config/tc-arc.c: Include "struc-symbol.h".
2129 (md_pcrel_from): Remove undefined sym fudge.
2130 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2131 Don't set fx_addnumber.
2132 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2133 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2134 (EXTERN_FORCE_RELOC): Define.
2135 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2136 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2137 (arm_validate_fix): Return void.
2138 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2139 Add plt and got reloc tests.
2140 (arm_force_relocation): Call S_FORCE_RELOC.
2141 * config/tc-arm.h (struct fix): Forward declare.
2142 (TC_VALIDATE_FIX): No longer set add_symbolP.
2143 (arm_validate_fix): Adjust declaration.
2144 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2145 (TC_FORCE_RELOCATION): Tweak param name.
2146 (TC_INIT_FIX_DATA): Likewise.
2147 (obj_fix_adjustable): Don't define.
2148 (tc_fix_adjustable): Call arm_fix_adjustable.
2149 (TC_FIX_ADJUSTABLE): Don't define.
2150 (MD_APPLY_SYM_VALUE): Define.
2151 (EXTERN_FORCE_RELOC): Define.
2152 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2153 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2154 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2155 Remove *valP fudges and code to subtract abs sym. Don't set
2156 fx_addnumber.
2157 * config/tc-avr.h: Formatting.
2158 (EXTERN_FORCE_RELOC): Define.
2159 (MD_APPLY_SYM_VALUE): Define.
2160 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2161 (md_apply_fix3): Remove code to subtract abs sym.
2162 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2163 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2164 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2165 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2166 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2167 (tc_fix_adjustable): Remove extern, weak tests.
2168 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2169 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2170 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2171 and code to subtract abs sym.
2172 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2173 (d10v_force_relocation): Call S_FORCE_RELOC.
2174 * config/tc-d10v.h: Don't include write.h.
2175 (struct fix): Instead, forward declare.
2176 (MD_PCREL_FROM_SECTION): Tweak param names.
2177 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2178 (d10v_fix_adjustable): Likewise.
2179 (obj_fix_adjustable): Don't define.
2180 (tc_fix_adjustable): Define.
2181 (TC_FORCE_RELOCATION): Tweak param name.
2182 (MD_APPLY_SYM_VALUE): Define.
2183 (EXTERN_FORCE_RELOC): Define.
2184 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2185 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2186 and code to subtract abs sym.
2187 * config/tc-d30v.h: Don't include write.h.
2188 (struct fix): Instead, forward declare.
2189 (MD_PCREL_FROM_SECTION): Tweak param names.
2190 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2191 (MD_APPLY_SYM_VALUE): Define.
2192 (EXTERN_FORCE_RELOC): Define.
2193 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2194 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2195 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2196 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2197 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2198 Don't use fx_addnumber.
2199 * config/tc-dlx.h: Don't include write.h.
2200 (md_convert_frag): We're not alpha twice over.
2201 (EXTERN_FORCE_RELOC): Define.
2202 (obj_fix_adjustable): Don't define.
2203 (tc_fix_adjustable): Define.
2204 (TC_FIX_ADJUSTABLE): Don't define.
2205 (MD_APPLY_SYM_VALUE): Define.
2206 (LOCAL_LABELS_DOLLAR): Undef always.
2207 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2208 (fr30_fix_adjustable): Remove extern, weak tests.
2209 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2210 (obj_fix_adjustable): Don't define.
2211 (tc_fix_adjustable): Define.
2212 (struct fix): Forward declare.
2213 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2214 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2215 (frv_fix_adjustable): Don't do extern, weak tests.
2216 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2217 (TC_FIX_ADJUSTABLE): Don't define.
2218 (obj_fix_adjustable): Don't define.
2219 (tc_fix_adjustable): Define.
2220 (struct fix): Forward declare.
2221 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2222 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2223 * config/tc-h8300.h (struct fix): Forward declare.
2224 (EXTERN_FORCE_RELOC): Define.
2225 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2226 (hppa_fix_adjustable): Don't test extern or weak. Don't
2227 symbol_mark_used_in_reloc.
2228 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2229 and S_IS_WEAK.
2230 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2231 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2232 (TC_FORCE_RELOCATION_SECTION): Don't define.
2233 (MD_APPLY_SYM_VALUE): Define.
2234 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2235 to subtract abs sym.
2236 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2237 (MD_APPLY_SYM_VALUE): Define.
2238 (MD_PCREL_FROM_SECTION): Tweak param name.
2239 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2240 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2241 (i386_force_relocation): New function.
2242 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2243 (TC_VALIDATE_FIX): Likewise.
2244 (TC_FIX_ADJUSTABLE): Don't define.
2245 (MD_APPLY_SYM_VALUE): Define.
2246 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2247 (i386_force_relocation): Declare.
2248 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2249 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2250 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2251 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2252 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2253 (EXTERN_FORCE_RELOC): Define.
2254 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2255 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2256 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2257 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2258 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2259 Remove #if 0 code. Invert return boolean.
2260 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2261 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2262 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2263 (tc_coff_sizemachdep): Prototype.
2264 (i960_handle_align): Likewise.
2265 (i960_validate_fix): Adjust declaration.
2266 (reloc_callj): Likewise.
2267 (EXTERN_FORCE_RELOC): Define.
2268 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2269 (TC_FORCE_RELOCATION_ABS): Define.
2270 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2271 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2272 (TC_FIX_ADJUSTABLE): Don't define.
2273 (MD_APPLY_SYM_VALUE): Define.
2274 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2275 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2276 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2277 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2278 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2279 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2280 (MD_APPLY_SYM_VALUE): Define.
2281 (EXTERN_FORCE_RELOC): Define.
2282 (TC_FORCE_RELOCATION): Tweak param name.
2283 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2284 (m32r_fix_adjustable): Don't test extern, weak.
2285 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2286 (MD_APPLY_SYM_VALUE): Define.
2287 (obj_fix_adjustable): Don't define.
2288 (tc_fix_adjustable): Define.
2289 (tc_frob_file): Don't define.
2290 (tc_frob_file_before_fix): Define.
2291 (EXTERN_FORCE_RELOC): Define.
2292 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2293 BFD_RELOC_VTABLE_ENTRY address.
2294 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2295 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2296 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2297 Remove duplicated fx_done code.
2298 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2299 (EXTERN_FORCE_RELOC): Define.
2300 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2301 relaxable_symbol.
2302 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2303 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2304 (TC_FIX_ADJUSTABLE): Don't define.
2305 (EXTERN_FORCE_RELOC): Define.
2306 (MD_APPLY_SYM_VALUE): Define.
2307 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2308 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2309 Remove fx_addsy tests.
2310 (mcore_force_relocation): Call S_FORCE_RELOC.
2311 (mcore_fix_adjustable): Don't test fx_addsy.
2312 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2313 (EXTERN_FORCE_RELOC): Define.
2314 (obj_fix_adjustable): Don't define.
2315 (tc_fix_adjustable): Define.
2316 (MD_APPLY_SYM_VALUE): Define.
2317 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2318 (mips_pic): No longer static.
2319 (mips_force_relocation): Call S_FORCE_RELOC.
2320 (mips_fix_adjustable): Remove extern, weak tests.
2321 * config/tc-mips.h (enum mips_pic_level): Declare.
2322 (mips_pic): Declare.
2323 (tc_frob_file): Don't define.
2324 (tc_frob_file_before_fix): Define this instead.
2325 (EXTERN_FORCE_RELOC): Define.
2326 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2327 with reg_section tests. Set fx_done instead of calling
2328 symbol_clear_used_in_reloc on bad relocs.
2329 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2330 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2331 (mmix_adjust_symtab): Simplify list handling. Abort on any
2332 nonsense.
2333 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2334 BFD_RELOC_MMIX_LOCAL.
2335 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2336 (EXTERN_FORCE_RELOC): Define.
2337 (MD_PCREL_FROM_SECTION): Tweak param name.
2338 (tc_frob_file): Don't define.
2339 (tc_frob_file_before_fix): Define this instead.
2340 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2341 Remove SEC_CODE checks.
2342 (mn10300_fix_adjustable): Remove extern and weak tests.
2343 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2344 (TC_FORCE_RELOCATION): Tweak param name.
2345 (obj_fix_adjustable): Don't define.
2346 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2347 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2348 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2349 (openrisc_fix_adjustable): Don't test fx_addsy.
2350 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2351 (obj_fix_adjustable): Don't define.
2352 (tc_fix_adjustable): Define this instead.
2353 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2354 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2355 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2356 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2357 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2358 (MD_APPLY_SYM_VALUE): Define.
2359 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2360 Don't subtract symbol value.
2361 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2362 (EXTERN_FORCE_RELOC): Define.
2363 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2364 (MD_APPLY_SYM_VALUE): Define.
2365 (obj_fix_adjustable): Don't define.
2366 (tc_fix_adjustable): Define this instead.
2367 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2368 section sym.
2369 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2370 (ppc_force_relocation <elf version>): New.
2371 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2372 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2373 comments. Don't subtract fx_subsy as that is already done.
2374 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2375 (MD_PCREL_FROM_SECTION): Likewise.
2376 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2377 ppc_force_relocation.
2378 (TC_FORCE_RELOCATION_SECTION): Delete.
2379 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2380 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2381 (MD_APPLY_SYM_VALUE): Define.
2382 * config/tc-s390.c: #include "dwarf2dbg.h".
2383 (s390_insn): Remove excess parens.
2384 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2385 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2386 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2387 non-NULL. Don't subtract off fx_addsy value.
2388 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2389 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2390 (TC_FIX_ADJUSTABLE): Don't define.
2391 (MD_APPLY_SYM_VALUE): Define.
2392 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2393 (SWITCH_TABLE): Likewise.
2394 (sh_force_relocation): Call S_FORCE_RELOC.
2395 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2396 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2397 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2398 fx_addnumber is zero on entry. Save val in fx_addnumber.
2399 (tc_gen_reloc): Don't subtract fx_subsy.
2400 * config/tc-sh.h (struct fix): Move.
2401 (obj_fix_adjustable): Don't define.
2402 (tc_fix_adjustable): Define this instead.
2403 (TC_FIX_ADJUSTABLE): Don't define.
2404 (MD_APPLY_SYM_VALUE): Define.
2405 (SWITCH_TABLE_CONS): Define.
2406 (SWITCH_TABLE): Define.
2407 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2408 (TC_VALIDATE_FIX_SUB): Define.
2409 (MD_PCREL_FROM_SECTION): Tweak param name.
2410 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2411 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2412 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2413 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2414 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2415 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2416 (TC_VALIDATE_FIX_SUB): Define.
2417 (MD_PCREL_FROM_SECTION): Tweak param name.
2418 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2419 (tc_gen_reloc): Use S_FORCE_RELOC.
2420 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2421 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2422 (TC_FORCE_RELOCATION_ABS): Define this instead.
2423 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2424 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2425 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2426 (MD_APPLY_SYM_VALUE): Define.
2427 (TC_FIX_DATA_PRINT): Tweak param name.
2428 * config/tc-tic30.c (USE_STDOUT): Don't define.
2429 (md_parse_option): Remove stupid debug code.
2430 (tc_gen_reloc): Don't use fx_addnumber.
2431 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2432 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2433 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2434 (tc_fix_adjustable): Define this instead.
2435 (TC_FIX_ADJUSTABLE): Don't define.
2436 (MD_APPLY_SYM_VALUE): Define this instead.
2437 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2438 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2439 (TC_FIX_ADJUSTABLE): Don't define.
2440 (MD_APPLY_SYM_VALUE): Define this instead.
2441 (tc_fix_adjustable): Remove extern and weak tests.
2442 * config/tc-w65.h (struct fix): Forward declare.
2443 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2444 S_FORCE_RELOC.
2445 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2446 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2447 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2448 absolute symbol.
2449 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2450 (MD_APPLY_SYM_VALUE): Define.
2451 (obj_fix_adjustable): Don't define.
2452 (tc_fix_adjustable): Define this instead.
2453 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2454
24552002-09-04 Alan Modra <amodra@bigpond.net.au>
2456
2457 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2458 (ppc_fix_adjustable <coff version>): Cleanup.
2459
2460 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2461 (md_parse_option): No -a64 without BFD64.
2462 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2463 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2464
24652002-09-04 Nick Clifton <nickc@redhat.com>
2466
2467 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2468 instructions into the hash table if the target cpu is the BookE32.
2469
24702002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2471
2472 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2473 ATTRIBUTE_UNUSED.
2474
24752000-08-28 Catherine Moore <clm@redhat.com>
2476
2477 * tc-v850.c (v850_relax): Declare.
2478 (v850_longcode): New routine.
2479 (v850_handle_align): New routine.
2480 (md_pseudo_table): Add longcall and longjump.
2481 (md_parse_option): Check for relax option.
2482 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2483 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2484 (md_apply_fix3): Likewise.
2485 (v850_force_relocation): Likewise.
2486 (v850_comm): Change the current section.
2487 (md_assemble): Ensure that the correct value is put in the
2488 fixup.
2489 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2490 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2491 Remove redundant v850ea support.
2492 * tc-v850.h (HANDLE_ALIGN): Define.
2493 (v850_handle_align): Declare.
2494 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2495
24962002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2497
2498 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2499 * configure: Regenerate.
2500 * NEWS: Mention new port.
2501
25022002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2503
2504 * config/obj-coff.c: Add sdef definition.
2505 * config/obj-coff.h: Add tic4x include file and set
2506 target format.
2507 * config/tc-tic4x.c: New file.
2508 * config/tc-tic4x.h: New file.
2509
25102002-08-28 Alan Modra <amodra@bigpond.net.au>
2511
2512 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2513 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2514 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2515 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2516 (RELOC_ENUM): Define.
2517 (fix_new_internal): Use RELOC_ENUM.
2518 (fix_new, fix_new_exp): Likewise.
2519 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2520 Replace gotos with continue.
2521 (write_relocs): Formatting. Avoid symbol loops in
2522 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2523 errors, and error number in other cases.
2524 (fixup_segment): Remove param names from prototype. Rename
2525 "this_segment_type" to "this_segment". Update linkrelax comment.
2526 Remove "size, "place" and "where" local vars. Formatting. Update
2527 "no symbol" comment. Remove #if 0 and #if 1.
2528
2529 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2530
25312002-08-27 Alan Modra <amodra@bigpond.net.au>
2532
2533 * dwarf2dbg.c: Always include dwarf2dbg.h.
2534 (dwarf2_directive_file): Adjust dummy version args.
2535 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2536 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2537 when symbol values differ.
2538 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2539 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2540 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2541
25422002-08-26 Alan Modra <amodra@bigpond.net.au>
2543
2544 * config/tc-w65.c (md_section_align): Fix typo.
2545 (md_parse_option): Return 0, not 1.
2546
25472002-08-22 Nick Clifton <nickc@redhat.com>
2548
2549 * doc/as.texinfo (Section): Note that if '@' is a comment
2550 character then another symbol is used to prefix the section's
2551 type.
2552
25532002-08-22 Christian Groessler <chris@groessler.org>
2554
2555 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2556 "case 0" case.
2557
25582002-08-12 Graeme Peterson <gp@qnx.com>
2559
2560 * configure.in: Add support for sh-**-nto* target.
2561 * configure: Regenerate.
2562
25632002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2564
2565 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2566
25672002-08-21 Elena Zannoni <ezannoni@redhat.com>
2568
2569 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2570 is ELF.
2571 (ppc_apuinfo_section_add): Define only if format is ELF.
2572 (md_assemble): Emit APUinfo section only if format is ELF.
2573 Fix formatting.
2574
25752002-08-21 Alan Modra <amodra@bigpond.net.au>
2576
2577 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2578 * config/tc-frv.c: Likewise.
2579 * config/tc-hppa.c: Likewise.
2580 * config/tc-ia64.c: Likewise.
2581 * config/tc-ip2k.c: Likewise.
2582 * config/tc-m68hc11.c: Likewise.
2583 * config/tc-m68k.c: Likewise.
2584 * config/tc-mmix.c: Likewise.
2585 * config/tc-mn10300.c: Likewise.
2586 * config/tc-sh.c: Likewise.
2587 * config/tc-sparc.c: Likewise.
2588 * config/tc-v850.c: Likewise.
2589
25902002-08-20 Richard Sandiford <rsandifo@redhat.com>
2591
2592 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2593 by zero.
2594
25952002-08-19 Elena Zannoni <ezannoni@redhat.com>
2596
2597 From matthew green <mrg@redhat.com>
2598
2599 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2600 PPC_OPCODE_PPC is, except for BookE architectures.
2601 (md_parse_option): Add support for -mspe.
2602 (md_show_usage): Add -mspe.
2603 (md_parse_option): Add support for -me500 and
2604 -me500x2 to generate code for Motorola e500 core complex.
2605 (md_show_usage): Add -me500 and -me500x2.
2606
2607 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2608 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2609 PPC_APUINFO_BRLOCK): New macros.
2610
2611 (ppc_cleanup): New function.
2612 (ppc_apuinfo_section_add): New function.
2613 (APUID): New macro.
2614 (md_assemble): Collect info and write the APUinfo section.
2615
2616 * config/tc-ppc.h (md_cleanup): Define.
2617 (ppc_cleanup): Export.
2618 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2619
26202002-08-17 Stan Cox <scox@redhat.com>
2621
2622 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2623 config/tc-mips.c (s_change_section): New function to support
2624 IRIX .section pseudo-op.
2625
26262002-08-16 Nick Clifton <nickc@redhat.com>
2627
2628 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2629
26302002-08-15 Alexandre Oliva <aoliva@redhat.com>
2631
2632 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2633 the fix-up against on the right frag.
2634 (s_cpsetup): Likewise. Parse third argument as expression, to
2635 handle global symbols and forward/backward labels correctly.
2636
26372002-08-14 Nick Clifton <nickc@redhat.com>
2638
2639 * read.c (stringer): Catch attempts to create strings in the abs
2640 section.
2641
2642 * config/tc-alpha.c: Fix compiling for COFF targets.
2643 Some minor formatting tidyups.
2644
26452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2646
2647 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2648 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2649 according to the reloc.
2650 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2651 (TC_FORCE_RELOCATION): Define.
2652 (tc_m68hc11_force_relocation): Declare.
2653
2654 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2655 (s_m68hc11_relax): New function for relax group.
2656 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2657 beginning of jump instruction.
2658 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2659 address computation.
2660 (tc-gen_reloc): Update.
2661 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2662 PC-relative fixup.
2663 (tc_m68hc11_force_relocation): New function, handle new relocs.
2664 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2665 reloc for the linker relax pass.
2666 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2667 and VTABLE relocs.
2668
26692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2670
2671 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2672 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2673 (s_m68hc11_mode): New function for .mode pseudo op.
2674 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2675 pseudo op.
2676 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2677 (m68hc11_elf_final_processing): Declare.
2678
26792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2680
2681 * config/tc-m68hc11.c (md_begin): Take into account additional
2682 page operand for call instruction.
2683 (print_opcode_format): Likewise.
2684 (check_range): Likewise for page range checking.
2685 (get_operand): Don't skip a possible comma in operands.
2686 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
2687 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
2688 (fixup24): New to handle call reloc.
2689 (build_insn): Handle missing page operand for call instruction.
2690 (find): Likewise.
2691 (md_apply_fix3): Take into account new relocs.
2692 (get_operand): Fix the mode for indexed indirect addressing.
2693 (build_indexed_byte): Fix post index byte for indexed indirect mode.
2694
26952002-08-12 Richard Sandiford <rsandifo@redhat.com>
2696
2697 * config/tc-mips.c (mips_ip): Don't work out the value of
2698 constant %hi()s here.
2699
27002002-08-10 Alan Modra <amodra@bigpond.net.au>
2701
2702 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
2703 for ELF, and don't bother checking ELF relocs when non-ELF.
2704 (i386_immediate): Allow absolute_section expressions for aout.
2705 (i386_displacement): Likewise. Also test bfd_is_com_section.
2706 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
2707 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
2708 not when fx_addsy. Remove dead code.
2709
27102002-08-09 Graeme Peterson <gp@qnx.com>
2711
2712 * configure.in: Add support for ppc-*-nto* target.
2713 * configure: Regenerate.
2714
27152002-08-09 Alan Modra <amodra@bigpond.net.au>
2716
2717 * config/tc-i386.h: Reorganize.
2718
27192002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2720
2721 * config/tc-mips.c (macro): Handle a register plus a 16-bit
2722 immediate offset in "dla" and "la" expansions.
2723
27242002-08-09 Alan Modra <amodra@bigpond.net.au>
2725
2726 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
2727 Remove "bfd_gas=yes" from target table when covered later.
2728 Consolidate some entries.
2729 * configure: Regenerate
2730
27312002-08-09 Jakub Jelinek <jakub@redhat.com>
2732
2733 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
2734 at start of insn, pass it to output_disp and output_imm.
2735 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
2736 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
2737 properly addend.
2738 (output_imm): Added arguments. Compute properly addend for
2739 R_386_GOTPC.
2740 (md_apply_fix3): Remove R_386_GOTPC handling.
2741
27422002-08-06 George France <france@handhelds.org>
2743
2744 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
2745 and m21264b processor names and cpu types.
2746 * doc/c-alpha.texi: Documented new types.
2747
27482002-08-06 Alan Modra <amodra@bigpond.net.au>
2749
2750 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
2751
27522002-08-01 Richard Sandiford <rsandifo@redhat.com>
2753
2754 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
2755 handling to BFD_RELOC_MIPS16_GPREL.
2756
27572002-08-01 Nick Clifton <nickc@redhat.com>
2758
2759 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
2760 pool is computed using signed arithmetic so that proper sign
2761 extension is performed if X_add_number is a 64-bit integer.
2762
27632002-08-01 H.J. Lu <hjl@gnu.org>
2764 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
2767 .debug_line section unless it has line information.
2768
27692002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2770
2771 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
2772 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
2773 Allow default displacement size to be an option "--disp-size-default".
2774 (md_number_to_disp): Make error messages include value. Use %d to
2775 print integers, not %s.
2776 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
2777 get duplicate messages sometimes.
2778 (convert_iif): Grow frag to max possible instruction size. Avoid
2779 creating unnecessary fixes.
2780 (md_number_to_field) Add prototype.
2781 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
2782 prototypes and make static.
2783 (struct addr_mode): Make mode and scaled_mode explicitly signed.
2784 (evaluate_expr): Use resultP argument instead of exprP global.
2785 (get_addr_mode): Quiten compiler warnings.
2786 (encode_operand): eliminate unused variables. Quiten compiler
2787 warnings. Eliminate nul character in format strings.
2788 (parse): argc is unsigned.
2789 (reloc): Type cast index to quieten compiler.
2790 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
2791 (md_convert_frag): Note unused parameters. Remove unused
2792 variables.
2793 (md_create_long_jump, md_create_short_jump,
2794 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
2795 unused parameters.
2796
27972002-07-31 Nick Clifton <nickc@redhat.com>
2798
2799 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2800 of the PDP-11 and 2.11BSD a.out support.
2801
28022002-07-31 Momchil Velikov <velco@fadata.bg>
2803
2804 * config/tc-v850.c (md_assemble): Fix range check for immediate
2805 operand.
2806
28072002-07-30 Chris Demetriou <cgd@broadcom.com>
2808
2809 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
2810 to Broadcom SB-1 core support.
2811
28122002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2813
2814 * config/tc-mips.c (mips_target_format): Fix formatting.
2815 Add recognition of n32 ABI formats.
2816
28172002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2818
2819 * tc-mips.c (load_address): Don't clobber $at when loading a
2820 64-bit address in non-PIC code if noat is in effect.
2821 (macro): Likewise.
2822
28232002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2824
2825 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
2826 used in division/multiply macro expansions similarly to how they
2827 are used in the variants with break instructions.
2828 (macro2): Likewise.
2829
28302002-07-30 Graeme Peterson <gp@qnx.com>
2831
2832 * configure.in: Add support for arm-*-nto target.
2833 * configure: Regenerate.
2834
28352002-07-30 Nick Clifton <nickc@redhat.com>
2836
2837 * config/tc-arm.c (struct literal_pool): Add fields to allow
2838 multiple literal pools to be maintained.
2839 (find_literal_pool): New function.
2840 (find_or_make_literal_pool): New function.
2841 (add_to_literal_pool): Use find_or_make_literal_pool.
2842 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
2843 needed.
2844 (s_ltorg): Use find_literal_pool.
2845 (arm_cleanup): Dump all literal pools.
2846 * doc/c-arm.texi: Document new behaviour of only dumping literal
2847 pools upon request.
2848
28492002-07-26 Alan Modra <amodra@bigpond.net.au>
2850
2851 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
2852 rather than PPC_OPCODE_32 for powerpc64*.
2853
28542002-07-25 Nick Clifton <nickc@redhat.com>
2855
2856 * po/es.po: Updated Spanish translation.
2857 * po/fr.po: Updated French translation.
2858
28592002-07-25 Richard Sandiford <rsandifo@redhat.com>
2860
2861 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
2862 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
2863 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
2864 * configure, config.in: Regenerate.
2865 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
2866 (mips_set_options): Remove "abi" field.
2867 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
2868 with mips_abi.
2869 (mips_cpu): Remove.
2870 (mips_arch_string, mips_arch_info): New vars.
2871 (mips_tune_string, mips_tune_info): New vars.
2872 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
2873 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
2874 (mips_isa_to_str, mips_cpu_to_str): Remove.
2875 (mips_ip): If the selected architecture is a generic ISA rather
2876 than a processor, only mention the ISA level in error messages.
2877 (OPTION_MCPU): Remove.
2878 (OPTION_FP64): New.
2879 (md_longopts): Add -mfp64, remove -mcpu.
2880 (mips_set_option_string): New fn.
2881 (md_parse_option): Make -mipsN update file_mips_isa rather than
2882 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
2883 Don't let -mgp32 and -mfp32 change the ABI.
2884 (show): Move to end of file. Constify string argument.
2885 (md_show_usage): Move to the end of the file. Read available
2886 architectures from mips_cpu_info_table.
2887 (mips_set_architecture): New fn.
2888 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
2889 is an alias for -march=mipsN. Don't change the ABI based on other
2890 flags. Infer the register size from the ABI as well as the
2891 architecture. Complain about more conflicting arguments.
2892 Unify logic with GCC.
2893 (s_mipsset): Don't change the ABI.
2894 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
2895 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
2896 "mipsN"-type entries. Remove entries that vary only in the
2897 manufacturer's prefix, or that have "000" replaced by "k".
2898 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
2899 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2900 (mips_parse_cpu): New fn.
2901 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
2902 (mips_cpu_info_from_isa): Minor formatting tweak.
2903
29042002-07-24 Nick Clifton <nickc@redhat.com>
2905
2906 * po/sv.po: Updated Swedish translation.
2907 * po/es.po: Updated Spanish translation.
2908
29092002-07-23 Alan Modra <amodra@bigpond.net.au>
2910
2911 * Makefile.am: Run "make dep-am".
2912 * Makefile.in: Regenerate.
2913 * doc/Makefile.in: Regenerate.
2914 * config.in: Regenerate.
2915 * po/POTFILES.in: Regenerate.
2916
29172002-07-23 Nick Clifton <nickc@redhat.com>
2918
2919 * po/fr.po: Updated French translation.
2920
29212002-07-23 Nick Clifton <nickc@redhat.com>
2922
2923 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
2924 GAS.
2925
29262002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2927
2928 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
2929 instead of S_IS_EXTERN.
2930 (md_estimate_size_before_relax): Likewise.
2931 (mips_fix_adjustable): Likewise.
2932
29332002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2934
2935 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
2936
29372002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
2938 Nick Clifton <nickc@redhat.com>
2939
2940 * cond.c (s_ifdef): Treat a referenced but not yet defined
2941 symbol as if it were undefined, in exactly the same way as
2942 .equiv.
2943
2944 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
2945 consider referenced bug not yet defined symbols to be
2946 undefined.
2947
29482002-07-18 Denis Chertykov <denisc@overta.ru>
2949 Frank Ch. Eigler <fche@redhat.com>
2950 Alan Lehotsky <alehotsky@cygnus.com>
2951 John Healy <jhealy@redhat.com>
2952 Jeff Johnston <jjohnstn@redhat.com>
2953
2954 * configure.in: Add ip2k configuraton.
2955 * configure: Regenerate.
2956 * Makefile.am: Add ip2k configuraton.
2957 * Makefile.in: Regenerate.
2958 * configure: Regenerate.
2959 * Makefile.in: Regenerate.
2960 * config/tc-ip2k.c: New file.
2961 * config/tc-ip2k.h: New files.
2962 * NEWS: Mention new support.
2963 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
2964 * doc/Makefile.in: Regenerate.
2965 * doc/all.texi: Set IP2K
2966 * doc/as.texinfo: Add IP2K description.
2967 * doc/c-ip2k.texi: New file.
2968
29692002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2970
2971 * NEWS: Reformat to match style of other NEWS files.
2972
29732002-07-17 Jan Hubicka <jh@suse.cz>
2974
2975 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
2976
29772002-07-16 Moritz Jodeit <moritz@jodeit.org>
2978
2979 * config/tc-z8k.c (build_bytes): Correct order of memset args.
2980
29812002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2982
2983 * NEWS: Add 'Changes in 2.13'.
2984
29852002-07-15 Matt Fredette <fredette@netbsd.org>
2986
2987 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
2988
29892002-07-12 Alan Modra <amodra@bigpond.net.au>
2990
2991 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
2992 case with non CODE_64BIT case. Don't warn on "qword ptr" if
2993 not CODE_64BIT.
2994
29952002-07-11 Alan Modra <amodra@bigpond.net.au>
2996
2997 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
2998 (ppc_frob_file_before_adjust): New function.
2999 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3000 (ppc_elf_frob_symbol): Don't declare.
3001 (tc_frob_file_before_adjust): Define.
3002 (ppc_frob_file_before_adjust): Declare.
3003
3004 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3005 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3006 flags.
3007 (ppc_size): Delete.
3008 (ppc_xcoff64): Rename to ppc_obj64.
3009 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3010 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3011 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3012 or bfd_mach_ppc.
3013 (ppc_target_format): Use ppc_obj64 to select format.
3014 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3015 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3016 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3017 (tc_frob_symbol): Likewise.
3018 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3019 BFD_DEFAULT_TARGET_SIZE.
3020 (ppc_tc): Likewise.
3021 (ppc_is_toc_sym): Likewise.
3022 (md_apply_fix3): Likewise.
3023 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3024 BFD_DEFAULT_TARGET_SIZE.
3025 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3026 (tc_frob_symbol): Likewise.
3027
30282002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3029
3030 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3031 (mips_ip): Likewise.
3032
30332002-07-09 Alan Modra <amodra@bigpond.net.au>
3034
3035 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3036 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3037 (md_apply_fix3): Formatting. Remove redundant test.
3038 (tc_gen_reloc): Remove redundant code.
3039 (tc_i386_force_relocation): Delete. Movy body of function to..
3040 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3041
30422002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3043
3044 * configure.in: Add hppa-*-openbsd* target, change
3045 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3046 with sparc64 cpu.
3047 * configure: Regenerate.
3048
30492002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3050
3051 * config/tc-mips.c (macro): Shift the 32-bit address range
3052 accessible with a lone "lui" down by 32768.
3053
30542002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3055
3056 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3057 instead of "dadd" in address calculations.
3058 (macro): Likewise.
3059
30602002-07-08 Alan Modra <amodra@bigpond.net.au>
3061
3062 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3063 movzx fudges.
3064 (md_assemble): Instead, zap the suffix here.
3065
30662002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3067
3068 * NEWS: Remove next release number until the release is actually
3069 upon us.
3070
30712002-07-03 Alan Modra <amodra@bigpond.net.au>
3072
3073 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3074 Run "make dep-am".
3075 * Makefile.in: Regenerate.
3076
30772002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3078
3079 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3080 to symbols in merge sections, even non pc-relative ones.
3081
30822002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3083
3084 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3085
30862002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3087
3088 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3089 .softregs and .eeprom.
3090
30912002-06-28 David O'Brien <obrien@FreeBSD.org>
3092
3093 * NEWS: Note the next release is 2.13.
3094
30952002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3096
3097 * po/tr.po: New translation imported.
3098
30992002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3100
3101 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3102 (ecoff_directive_def): Likewise.
3103 (ecoff_directive_tag): Likewise.
3104 * listing.c (file_info): Likewise.
3105 * hash.c (what): Likewise.
3106
31072002-06-25 H.J. Lu <hjl@gnu.org>
3108
3109 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3110 * Makefile.in: Regenerated.
3111
31122002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3113
3114 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3115 (assemble_ppi): Generate warning if the same register is used
3116 twice as destination in the same padd / pmuls instruction.
3117
31182002-06-18 Dave Brolley <brolley@redhat.com>
3119
3120 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3121 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3122 * configure.in: Support frv-*-*.
3123 * Makefile.am (CPU_TYPES): Add frv.
3124 (TARGET_CPU_CFILES): Add tc-frv.c.
3125 (TARGET_CPU_HFILES): Add tc-frv.h.
3126 (DEPTC_frv_coff): New variable.
3127 (DEPTC_frv_elf): New variable.
3128 (DEPOBJ_frv_coff): New variable.
3129 (DEPOBJ_frv_elf): New variable.
3130 (DEP_frv_coff): New variable.
3131 (DEP_frv_elf): New variable.
3132 * tc-frv.c: New file.
3133 * tc-frv.h: New file.
3134
31352002-06-17 Catherine Moore <clm@redhat.com>
3136
3137 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3138
31392002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3140
3141 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3142
31432002-06-17 Tom Rix <trix@redhat.com>
3144
3145 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3146
31472002-06-14 H.J. Lu <hjl@gnu.org>
3148 Daniel Jacobowitz <drow@mvista.com>
3149
3150 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3151 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3152 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3153 and new_logical_line for the first .file directive.
3154 * read.c (s_app_file_string): New function.
3155 (s_app_file): Call it.
3156 * read.h (s_app_file_string): Add declaration.
3157
31582002-06-14 Daniel Jacobowitz <drow@mvista.com>
3159
3160 * configure.in: Remove MIPS_STABS_ELF.
3161 * configure: Regenerated.
3162 * config.in: Regenerated.
3163 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3164 for MIPS targets.
3165 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3166 ".extern".
3167 (pdr_seg): Declare unconditionally.
3168 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3169 (s_mips_end): Likewise. Generate stabs function markers.
3170 (s_mips_ent): Generate stabs function markers.
3171 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3172 ELF.
3173 (s_mips_mask): Likewise.
3174 (mips_flag_mdebug): New.
3175 (md_longopts): Add "mdebug" and "no-mdebug".
3176 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3177 (mips_after_parse_args): Set mips_flag_mdebug.
3178 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3179
31802002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3181
3182 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3183 value twice for RELA relocations.
3184
31852002-06-12 Ben Elliston <bje@redhat.com>
3186
3187 * symbols.c (resolve_symbol_value): Initialise final_val.
3188
3189 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3190
31912002-06-11 Tom Rix <trix@redhat.com>
3192
3193 * config/tc-ppc.c (ppc_subseg_align): Delete.
3194 (ppc_change_csect): Default csect align is 2.
3195 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3196
31972002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3198
3199 * config/tc-avr.c (mcu_types): Update.
3200
32012002-06-08 Matt Thomas <matt@3am-software.com>
3202
3203 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3204 (vax-*-netbsd*): New targets.
3205 * configure: Regenerate.
3206 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3207 * config/tc-vax.c: Add support for ELF and PIC.
3208 (flag_want_pic): New flag.
3209 (float_cons): Fix prototype.
3210 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3211 (md_assemble): Introduce a new is_absolute local, and use it
3212 rather than repeating the test. Make fatal errors actually
3213 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3214 Add support for ELF. Add support for PIC.
3215 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3216 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3217 BFD_ASSEMBLER.
3218 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3219 optional for a.out, and not allowed for VMS. Adjust all callers.
3220 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3221 (md_create_long_jump): Likewise.
3222 (md_undefined_symbol): Likewise.
3223 (md_section_align): Likewise.
3224 (md_shortopts): Allow -k and -K for ELF.
3225 (md_parse_option): Set flag_want_pic if -k or -K.
3226 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3227 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3228 * config/tc-vax.h (tc_headers_hook): Remove.
3229 (TARGET_FORMAT): Set according to object format and target
3230 environment.
3231 (BFD_ARCH, TARGET_ARCH): Define.
3232 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3233 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3234 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3235 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3236
32372002-06-08 Alan Modra <amodra@bigpond.net.au>
3238
3239 * Makefile.am: Run "make dep-am".
3240 * Makefile.in: Regenerate.
3241
3242 * as.c: Replace CONST with const.
3243 * write.c: Likewise.
3244 * config/obj-coff.c: Likewise.
3245 * config/tc-a29k.c: Likewise.
3246 * config/tc-arm.c: Likewise.
3247 * config/tc-dlx.c: Likewise.
3248 * config/tc-h8300.c: Likewise.
3249 * config/tc-h8500.c: Likewise.
3250 * config/tc-i370.c: Likewise.
3251 * config/tc-i860.c: Likewise.
3252 * config/tc-i960.c: Likewise.
3253 * config/tc-m68hc11.c: Likewise.
3254 * config/tc-m68k.c: Likewise.
3255 * config/tc-m88k.c: Likewise.
3256 * config/tc-mcore.c: Likewise.
3257 * config/tc-mips.c: Likewise.
3258 * config/tc-ns32k.c: Likewise.
3259 * config/tc-pdp11.c: Likewise.
3260 * config/tc-pj.c: Likewise.
3261 * config/tc-s390.c: Likewise.
3262 * config/tc-sh.c: Likewise.
3263 * config/tc-sparc.c: Likewise.
3264 * config/tc-tahoe.c: Likewise.
3265 * config/tc-tic80.c: Likewise.
3266 * config/tc-v850.c: Likewise.
3267 * config/tc-vax.c: Likewise.
3268 * config/tc-w65.c: Likewise.
3269 * config/tc-z8k.c: Likewise.
3270
32712002-06-08 Daniel Jacobowitz <drow@mvista.com>
3272
3273 Based on patch from Matt Green:
3274 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3275 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3276 (s_mips_loc): New function.
3277 (mips_nonecoff_pseudo_table): Call them.
3278 (append_insn): Call dwarf2_emit_insn.
3279
32802002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3281
3282 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3283 to -1.
3284 (file_ase_mips16): New veriable.
3285 (mips_eabi64): Remove.
3286 (CPU_HAS_MIPS16): New define.
3287 (CPU_HAS_MDMX): Fix data type.
3288 (md_begin): Code cleanup. Use file_ase_mips16.
3289 (mips_elf_final_processing): Handle mips16 header flag.
3290 Handle EABI flag without intermediate variable.
3291
32922002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3293
3294 * doc/as.texinfo: Update MIPS documentation.
3295
32962002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3297
3298 * config/tc-mips.c: Add define for $zero register.
3299 (md_begin): Add $zero as alias name for $0.
3300 (insn_uses_reg): Use ZERO define.
3301 (mips_ip): Add $zero as alias name for $0.
3302 (mips16_ip): Likewise.
3303 (s_cplocal): Demand empty rest of input line.
3304 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3305 names. Use ZERO define. Fix input_line_pointer progress.
3306
33072002-06-07 Alan Modra <amodra@bigpond.net.au>
3308
3309 * symbols.c: Replace CONST by const throughout.
3310 (symbol_find_exact): Split out from..
3311 (symbol_find_base): ..here.
3312 * symbols.h: Replace CONST by const throughout.
3313 (symbol_find_exact): Declare.
3314 * config/obj-elf.c: #include "struc-symbol.h".
3315 (elf_frob_file): If group name matches an exported symbol, use that
3316 symbol for the signature and ".group" as the section name.
3317
33182002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3319
3320 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3321 but warn about it.
3322
33232002-06-06 Daniel Jacobowitz <drow@mvista.com>
3324
3325 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3326 and mips_opts.ase_mdmx if they are uninitialized.
3327
33282002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3329
3330 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3331 (hppa_force_relocation): Check if a stub just before the start symbol
3332 of the last call_info is reachable before forcing relocation. Fix
3333 typo.
3334
33352002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3336
3337 * config/tc-mips.c (mips_after_parse_args): New function.
3338 (md_begin): Move processing of defaults to mips_after_parse_args.
3339 config/tc-mips.h (md_after_parse_args): Define.
3340
33412002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3342
3343 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3344 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3345 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3346 * configure: Regenerate.
3347 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3348 environment.
3349
33502002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3351
3352 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3353
33542002-06-04 Alan Modra <amodra@bigpond.net.au>
3355
3356 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3357 linkonce flag. Print all warnings.
3358 (obj_elf_section): Parse ",comdat" for groups.
3359 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3360 consistency of comdat flag.
3361
33622002-06-02 Richard Henderson <rth@redhat.com>
3363
3364 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3365 with LITERALs without sequence numbers.
3366
33672002-06-01 Richard Henderson <rth@redhat.com>
3368
3369 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3370 Rename them LITUSE_ALPHA_*.
3371
33722002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3373
3374 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3375 accept parentheses enclosed register lists.
3376
33772002-05-31 Alan Modra <amodra@bigpond.net.au>
3378
3379 * Makefile.am: Run "make dep-am".
3380 * Makefile.in: Regenerate.
3381 * po/POTFILES.in: Regenerate.
3382
33832002-05-31 Graeme Peterson <gp@qnx.com>
3384
3385 * configure.in: Add i386-*-nto-qnx*.
3386 * configure: Regenerate.
3387
33882002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3389
3390 * config/tc-mips.c (mips_ip): Use unsigned long values for
3391 warning output.
3392
33932002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3394
3395 * config/tc-mips.c (s_cpsetup): Fix initialization of
3396 mips_cpreturn_register and mips_cpreturn_offset.
3397
33982002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3399
3400 * config/tc-mips.c (s_cpsetup): Fix comment.
3401
34022002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3403
3404 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3405 (mips_ip): Likewise.
3406 (mips16_ip): Likewise.
3407 (tc_get_register): Likewise.
3408
34092002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3410 Ed Satterthwaite <ehs@broadcom.com>
3411
3412 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3413 (mips_opts): Initialize "ase_mdmx" member.
3414 (file_ase_mdmx): New variable.
3415 (CPU_HAS_MDMX): New macro.
3416 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3417 based on command line options and configuration defaults.
3418 (macro_build): Note in comment that use of MDMX in macros is
3419 not currently allowed.
3420 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3421 "Z" MDMX operand types.
3422 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3423 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3424 types.
3425 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3426 Add support for "-mdmx" and "-no-mdmx" options.
3427 (OPTION_ELF_BASE): Move to accomodate new options.
3428 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3429 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3430 file_ase_mdmx was set.
3431 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3432 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3433 nomdmx" directives.
3434
34352002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3436
3437 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3438 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3439 command line switch conforming to gcc conventions.
3440 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3441
34422002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3443
3444 * config/tc-mips.c (macro_build_jalr): New Function.
3445 (md_begin): NewABI uses big GOTs.
3446 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3447 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3448 (load_address): Add some NewABI PIC support.
3449 (macro): Likewise.
3450 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3451 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3452
34532002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3454
3455 * config/tc-mips.c (load_address): Use mips_gp_register instead
3456 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3457 instead.
3458 (macro): Use mips_gp_register instead of hardcoded value.
3459
34602002-05-30 Richard Henderson <rth@redhat.com>
3461
3462 * expr.h (operatorT): Add O_md17..O_md32.
3463 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3464 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3465 O_tprelhi, O_tprello, O_tprel): New.
3466 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3467 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3468 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3469 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3470 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3471 (md_apply_fix3): Handle TLS relocations.
3472 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3473 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3474 associated TLS reloc. Check lituse_tls relocs match up.
3475 (emit_insn): Handle TLS relocations.
3476 (ldX_op): Remove.
3477
3478 * doc/c-alpha.texi: Add docs for tls relocations.
3479
34802002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3481
3482 * config/tc-mips.c (mips_gprel_offset): New variable.
3483 (s_gpvalue): Use it.
3484
34852002-05-30 Diego Novillo <dnovillo@redhat.com>
3486
3487 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3488 write-write conflicts.
3489 (md_assemble): Reformat introductory comment.
3490 (parallel_ok): Prevent packing only if the first
3491 instruction cannot be packed.
3492
34932002-05-30 Jason Eckhardt <jle@redhat.com>
3494 Tom Rix <trix@redhat.com>
3495
3496 * config/tc-d10v.c (build_insn): Check for immediates.
3497
34982002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3499
3500 * config/tc-mips.c: Replace GP in comments by $gp.
3501 (mips_big_got): Initialize.
3502 (mips_trap): Initialize.
3503 (load_address): Use mips_gp_register instead of hardcoded value.
3504 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3505 (macro): Use mips_gp_register instead of hardcoded value.
3506 (macro2): Change load_address calls.
3507 (md_pcrel_from): Comment formatting.
3508 (s_cpload): Use mips_gp_register instead of hardcoded value.
3509 (s_cprestore): Likewise. Comment formatting.
3510 (s_gpword): Fix data type.
3511 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3512 (nopic_need_relax): Replace GP in comments by $gp.
3513 (mips_elf_final_processing): Better comment.
3514
35152002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3516
3517 * configure.in: Add DLX configuraton
3518 * Makefile.am: Add DLX configuraton
3519 * configure: Regenerate.
3520 * Makefile.in: Regenerate.
3521 * config/tc-dlx.c: New file.
3522 * config/tc-dlx.h: New files.
3523 * NEWS: Mention new support.
3524
35252002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3526
3527 * config/obj-coff.c (write_object_file): Add missing semicolon.
3528
35292002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3530
3531 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3532 by the define. Remove superfluous check of mips_opts.mips16.
3533 (append_insn): Likewise. Canonicalize variable increments.
3534 (macro_build): Canonicalize variable increments.
3535 (macro_build_lui): Likewise.
3536 (load_register): Likewise.
3537 (load_address): Move pointer initialization.
3538 (macro): Move pointer to a more local scope. Canonicalize variable
3539 increments. Better comments. Replace magic constant for RA by the
3540 define.
3541 (macro2): Replace magic constant for RA by the define. Canonicalize
3542 variable increments.
3543 (mips_ip): Canonicalize variable increments.
3544 (mips16_ip): Replace magic constant for RA by the define.
3545 (my_getSmallParser): Canonicalize variable increments/decrements.
3546 (my_getPercentOp): Likewise.
3547 (my_getSmallExpression): Likewise.
3548 (s_align): Likewise.
3549 (s_mipsset): Likewise.
3550 (s_cpsetup): Likewise.
3551 (s_insn): Remove superfluous check of mips_opts.mips16.
3552 (s_mips_stab): Likewise.
3553 (mips_handle_align): Canonicalize variable increments.
3554 (s_mips_ent): Likewise.
3555 (s_mips_end): Add comment.
3556
35572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3558
3559 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3560 * configure: Regenerate.
3561
35622002-05-25 Alan Modra <amodra@bigpond.net.au>
3563
3564 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3565 * Makefile.in: Regenerate.
3566 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3567 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3568 * configure: Regenerate.
3569 * as.h: Use #include "" instead of <> for local header files.
3570 * flonum-konst.c: Likewise.
3571 * flonum-mult.c: Likewise.
3572 * gasp.c: Likewise.
3573 * listing.c: Likewise.
3574 * config/tc-ia64.h: Likewise.
3575 * config/tc-v850.h: Likewise.
3576
35772002-05-24 TAMURA Kent <kent@netbsd.org>
3578
3579 * configure.in: Add a target for i386-netbsdpe.
3580 * configure: Regenerate.
3581
35822002-05-23 Jakub Jelinek <jakub@redhat.com>
3583
3584 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3585 (obj_elf_common): Call elf_common.
3586 (obj_elf_tls_common): New function.
3587 (elf_pseudo_tab): Support .tls_common.
3588 (special_sections): Add .tdata and .tbss.
3589 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3590 sections.
3591 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3592 (obj_elf_parse_section_letters): Include T in error message.
3593 * config/tc-ppc.c (ppc_section_letter): Likewise.
3594 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3595 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3596 SEC_MERGE.
3597 * config/tc-sparc.c (md_apply_fix3): Likewise.
3598 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3599 Define them if not BFD_ASSEMBLER.
3600 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3601 and @NTPOFF.
3602 (md_apply_fix3): Add TLS relocs.
3603 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3604 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3605 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3606 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3607 (ia64_elf_section_letter): Include T in error message.
3608 (md_begin): Support TLS operators.
3609 (md_operand): Likewise.
3610 (ia64_gen_real_reloc_type): Support TLS relocs.
3611 * write.c (adjust_reloc_syms): Don't change symbols in
3612 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3613
36142002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3615
3616 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3617 round the relocation up rather than down.
3618
36192002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3620
3621 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3622 flag.
3623 * doc/as.texinfo: Document that the COFF version of .section
3624 ignores the 'a' flag.
3625
36262002-05-23 Alan Modra <amodra@bigpond.net.au>
3627
3628 * config/tc-alpha.c (assemble_tokens): Protect use of
3629 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3630
3631 * write.c (size_seg): Check adjustment to last frag.
3632 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3633 section alignment.
3634 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3635 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3636 (write_object_file): Invoke md_do_align if available, and use
3637 frag_align_code on text sections.
3638 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3639 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3640 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3641 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3642 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3643 BFD_ASSEMBLER too.
3644
36452002-05-22 H.J. Lu <hjl@gnu.org>
3646
3647 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3648 for source file.
3649
36502002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3651
3652 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3653 as ELF builds.
3654
36552002-05-22 H.J. Lu <hjl@gnu.org>
3656
3657 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3658 for one .loc for compiler.
3659
36602002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3661
3662 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3663 embedded-PIC.
3664
36652002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3666
3667 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3668 Optimize the rotate by zero case.
3669
36702002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3671
3672 * configure.in: Remove accidental enabling of bfd_gas=yes for
3673 sh-coff targets.
3674 * configure: Regenerate.
3675
36762002-05-18 Kazu Hirata <kazu@cs.umass.edu>
3677
3678 * app.c: Fix formatting.
3679 * as.c: Likewise.
3680 * ehopt.c: Likewise.
3681 * expr.c: Likewise.
3682 * input-file.c: Likewise.
3683 * listing.c: Likewise.
3684 * macro.h: Likewise.
3685 * stabs.c: Likewise.
3686 * symbols.c: Likewise.
3687
36882002-05-17 Alan Modra <amodra@bigpond.net.au>
3689
3690 * config/obj-generic.c: Delete file.
3691 * config/obj-generic.h: Likewise.
3692
36932002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
3694
3695 * config/tc-avr.c (mcu_types): Update for new devices.
3696
36972002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3698
3699 * config/tc-mips.c (macro): Warn about wrong la/dla use.
3700
37012002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3702
3703 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
3704 worked sometimes by accident. Fix copy&paste comment.
3705
37062002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3707
3708 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
3709 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
3710 (mips_elf_final_processing): Let n32 use .reginfo.
3711
37122002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3713
3714 * config/tc-mips.c (append_insn): Fix too small range of variable.
3715
37162002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
3717
3718 * config/tc-arm.c (arm_cleanup): Remove redundant call to
3719 listing_prev_line().
3720
37212002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
3722
3723 * config/tc-arm.c (md_assemble): Remove redundant call to
3724 listing_prev().
3725
3726 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
3727 loc_directive_seen.
3728
3729 * stabs.c (s_stab_generic): Fix grammatical error in warning
3730 message.
3731
37322002-05-13 Alan Modra <amodra@bigpond.net.au>
3733
3734 * write.c (subsegs_finish): Don't specially align last subseg.
3735
37362002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3737
3738 * stabs.c (s_stab_generic): Warn about a description field that is
3739 too big.
3740
3741 * config/obj-coff.c: Fix compile time warnings when compiling
3742 without BFD_ASSEMBLER defined.
3743 Fix formatting.
3744
3745 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
3746 target.
3747 (md_pcrel_from_section): Use md_pcrel_from().
3748
37492002-05-11 Bruno Haible <bruno@clisp.org>
3750
3751 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
3752 by dwarf2_directive_loc, instead of calling dwarf2_where.
3753
37542002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3755
3756 * config/obj-coff.h: Fix formatting.
3757 * config/tc-mcore.c: Likewise.
3758 * config/tc-mn10300.c: Likewise.
3759 * config/tc-openrisc.c: Likewise.
3760 * config/tc-or32.c: Likewise.
3761 * config/tc-pdp11.c: Likewise.
3762 * config/tc-ppc.c: Likewise.
3763 * config/tc-ppc.h: Likewise.
3764 * config/tc-sh64.c: Likewise.
3765 * config/tc-sh.c: Likewise.
3766 * config/tc-tic54x.c: Likewise.
3767 * config/tc-xstormy16.c: Likewise.
3768 * config/tc-xstormy16.h: Likewise.
3769
37702002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3771
3772 * config/obj-coff.c: Fix formatting.
3773 * config/obj-elf.c: Likewise.
3774 * config/tc-alpha.c: Likewise.
3775 * config/tc-arm.c: Likewise.
3776 * config/tc-d10v.c: Likewise.
3777 * config/tc-d30v.c: Likewise.
3778 * config/tc-h8300.c: Likewise.
3779 * config/tc-hppa.c: Likewise.
3780
37812002-05-09 Alan Modra <amodra@bigpond.net.au>
3782
3783 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
3784 reloc when no_cond_jump_promotion.
3785
37862002-05-08 Jim Wilson <wilson@redhat.com>
3787
3788 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
3789 current variable part of frag.
3790
37912002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3792
3793 * config/tc-mmix.c: Fix formatting.
3794 * config/tc-mmix.h: Likewise.
3795
37962002-05-08 Alan Modra <amodra@bigpond.net.au>
3797
3798 * configure: Regenerate.
3799
38002002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3801
3802 * config/tc-m68k.c: Fix formatting.
3803
38042002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
3805
3806 * Makefile.am: Honour DESTDIR.
3807 * Makefile.in: Regenerate.
3808
38092002-05-06 Kazu Hirata <kazu@cs.umass.edu>
3810
3811 * config/tc-ia64.c: Fix formatting.
3812 * config/tc-ia64.h: Likewise.
3813
38142002-05-04 Kazu Hirata <kazu@cs.umass.edu>
3815
3816 * config/tc-mips.c: Fix formatting.
3817 * config/tc-s390.c: Likewise.
3818 * config/tc-s390.h: Likewise.
3819
38202002-05-03 Alexandre Oliva <aoliva@redhat.com>
3821
3822 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
3823 information for instructions.
3824
38252002-05-02 Kazu Hirata <kazu@cs.umass.edu>
3826
3827 * as.h: Fix formatting.
3828 * cgen.c: Likewise.
3829 * cgen.h: Likewise.
3830 * dwarf2dbg.c: Likewise.
3831 * frags.h: Likewise.
3832 * gasp.c: Likewise.
3833 * macro.c: Likewise.
3834 * read.c: Likewise.
3835 * stabs.c: Likewise.
3836 * symbols.c: Likewise.
3837
38382002-05-02 Alan Modra <amodra@bigpond.net.au>
3839
3840 * app.c (mri_pseudo): Only declare for TC_M68K.
3841
3842 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
3843 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
3844 BFD_RELOC_16_BASEREL.
3845 (md_assemble): Likewise.
3846 (md_apply_fix3): Likewise.
3847
38482002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
3849
3850 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
3851 zero into an add of zero - it is not the same.
3852
38532002-05-01 Arati Dikey <aratid@kpit.com>
3854
3855 * tc-sh.c (get_specific): Generate warning if the same
3856 destination register is used in parallel instructions.
3857
38582002-05-01 Andrew Macleod <amacleod@cygnus.com>
3859
3860 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
3861
38622002-05-01 Alan Modra <amodra@bigpond.net.au>
3863
3864 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
3865 backwards to prevent cascading errors.
3866
38672002-04-30 Mark Mitchell <mark@codesourcery.com>
3868
3869 * configure.in: Add support for powerpc-*-windiss.
3870 * configure: Regenerated.
3871
38722002-04-28 Alan Modra <amodra@bigpond.net.au>
3873
3874 * config/tc-s390.c (md_parse_option): Formatting.
3875
3876 * config/tc-i386.c: Formatting fixes, add missing space in error
3877 message.
3878
38792002-04-24 Christian Groessler <chris@groessler.org>
3880
3881 * config/tc-z8k.c (build_bytes): Add support for new cases:
3882 CLASS_IGNORE and ARG_NIM4.
3883 (md_assemble): Prevent destruction of input_line_pointer if
3884 get_operands returns failure.
3885
38862002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3887
3888 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
3889 instructions to be generated by macros.
3890
38912002-04-24 Andreas Schwab <schwab@suse.de>
3892
3893 * config/tc-i386.c (output_jump, output_disp)
3894 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
3895 more.
3896 (md_apply_fix3): Remember addend value for rela relocations.
3897 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
3898
38992002-04-22 Chris Demetriou <cgd@broadcom.com>
3900
3901 * config/tc-mips.c (macro_build): Add close-parenthesis missing
3902 from previous change.
3903
39042002-04-22 Eric Christopher <echristo@redhat.com>
3905
3906 * config/tc-mips.c (macro_build): Add warning if macro instructions
3907 are expanded into a branch delay slot.
3908
39092002-04-17 Geoffrey Keating <geoffk@redhat.com>
3910
3911 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
3912 numbers, gdb relies on them to detect the start of the prologue.
3913
39142002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
3915
3916 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
3917 symbols in merge sections.
3918
39192002-04-16 Alan Modra <amodra@bigpond.net.au>
3920
3921 * as.c (main): Don't reference _bfd_chunksize.
3922
39232002-04-15 Tom Rix <trix@redhat.com>
3924
3925 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
3926 symbols in merge sections.
3927
39282002-04-11 Richard Sandiford <rsandifo@redhat.com>
3929
3930 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
3931 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
3932 argument for the precision.
3933 (gen_to_words): Update accordingly.
3934
39352002-04-10 Alan Modra <amodra@bigpond.net.au>
3936
3937 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
3938 BFD_VERSION_STRING unavailable.
3939 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
3940
39412002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
3942
3943 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
3944 symbol_used_in_reloc_p is true.
3945
3946 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
3947 endian hosts.
3948
39492002-04-04 Alan Modra <amodra@bigpond.net.au>
3950
3951 * dep-in.sed: Cope with absolute paths.
3952 * Makefile.am (dep.sed): Subst TOPDIR.
3953 Run "make dep-am".
3954 * Makefile.in: Regenerate.
3955
39562002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3957
3958 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
3959 (mips_ip): Remove unused variable.
3960 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
3961 unsigned char with bfd_byte.
3962 (s_file): Remove unused variable.
3963 (s_mips_ent): Likewise.
3964
39652002-04-03 Tom Rix <trix@redhat.com>
3966
3967 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
3968 (build_insn): Same.
3969 (find_opcode): Fix warning in as_warn.
3970 * config/tc-d10v.h: Update Copyright.
3971
39722002-04-03 Alan Matsuoka <alanm@redhat.com>
3973 Tom Rix <trix@redhat.com>
3974
3975 From Jeff Knaggs <jknaggs@redhat.com>
3976 * config/tc-d10v.c (check_resource_conflict): New function to
3977 check for resource conflicts.
3978
3979 From Jason Eckhardt <jle@redhat.com>
3980 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3981 imm3 fields.
3982 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
3983 reserved control registers is used.
3984 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
3985 imm3 fields.
3986
3987 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
3988 * tc-d10v.c (parallel_ok): Prevent packing only if the first
3989 instruction cannot be packed.
3990
3991 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
3992 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3993 write-write conflicts.
3994 (md_assemble): Reformat introductory comment.
3995 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
3996 arguments.
3997
39982002-04-03 Alan Modra <amodra@bigpond.net.au>
3999
4000 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4001 O_logical_not>): Derive final_seg from add_symbol.
4002 <O_multiply..O_logical_or>: More final_seg twiddles.
4003
40042002-04-01 Jessica Han <jessica@cup.hp.com>
4005
4006 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4007 in 32-bit mode.
4008
40092002-03-27 Andreas Schwab <schwab@suse.de>
4010
4011 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4012 field for pc-relative fixups.
4013 (output_disp): Likewise.
4014 (md_estimate_size_before_relax): Likewise.
4015 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4016 pc-relative fixups in 64bit mode.
4017
40182002-03-22 Alan Modra <amodra@bigpond.net.au>
4019
4020 * config/te-aix5.h: Typo fix.
4021
40222002-03-21 Alan Modra <amodra@bigpond.net.au>
4023
4024 * Makefile.am: Run "make dep-am".
4025 * Makefile.in: Regenerate.
4026 * doc/Makefile.in: Regenerate.
4027
40282002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4029
4030 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4031 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4032
40332002-03-18 Alexandre Oliva <aoliva@redhat.com>
4034
4035 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4036 the EXTENDED bit here; report the estimate according to the
4037 current size.
4038
40392002-03-18 Tom Rix <trix@redhat.com>
4040
4041 * configure.in: Add AIX 5 support.
4042 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4043 * config/te-aix5.h: New file. AIX 5 support.
4044 * configure: Regenerate.
4045
40462002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4047
4048 * po/fr.po: Updated version.
4049
40502002-03-16 Andreas Jaeger <aj@suse.de>
4051
4052 * doc/c-mips.texi (Machine Dependencies): Add new node.
4053
40542002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4055
4056 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4057 (mips_opts): Initialize "ase_mips3d" member.
4058 (file_ase_mips3d): New variable.
4059 (CPU_HAS_MIPS3D): New macro.
4060 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4061 based on command line options and configuration defaults.
4062 (macro_build, mips_ip): Accept MIPS-3D instructions if
4063 mips_opts.ase_mips3d is set.
4064 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4065 Add support for "-mips3d" and "-no-mips3d" options.
4066 (OPTION_ELF_BASE): Move to accomodate new options.
4067 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4068 (mips_elf_final_processing): Add a comment indicating that a
4069 MIPS-3D ASE ELF header flag should be set, when one exists.
4070 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4071 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4072 nomips3d" directives.
4073
40742002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4075
4076 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4077 a weak symbol in same section to be within reach.
4078
40792002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4080
4081 * po/fr.po: Updated version.
4082
40832002-03-12 Andreas Schwab <schwab@suse.de>
4084
4085 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4086 body record so that an error is given for misplaced .save
4087 pseudo-ops.
4088
40892002-03-09 Alan Modra <amodra@bigpond.net.au>
4090
4091 * config/tc-i386.h (REX_OPCODE): Define.
4092 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4093 (rex_byte): typedef to int.
4094 * config/tc-i386.c: Group prototypes and vars together.
4095 Formatting fixes. Remove occurrences of "register" keyword.
4096 (true): Delete.
4097 (false): Delete.
4098 (mode_from_disp_size): Add INLINE keyword to prototype.
4099 (fits_in_signed_byte): Likewise.
4100 (fits_in_unsigned_byte): Likewise.
4101 (fits_in_unsigned_word): Likewise.
4102 (fits_in_signed_word): Likewise.
4103 (fits_in_unsigned_long): Likewise.
4104 (fits_in_signed_long): Likewise.
4105 (type_names): Constify.
4106 (intel_float_operand): Constify param.
4107 (add_prefix): Use REX_OPCODE.
4108 (md_assemble): Likewise. Modify for changed rex_byte.
4109 (parse_insn): Split out of md_assemble.
4110 (parse_operands): Likewise.
4111 (swap_operands): Likewise.
4112 (optimize_imm): Likewise.
4113 (optimize_disp): Likewise.
4114 (match_template): Likewise.
4115 (check_string): Likewise.
4116 (process_suffix): Likewise.
4117 (check_byte_reg): Likewise.
4118 (check_long_reg): Likewise.
4119 (check_qword_reg): Likewise.
4120 (check_word_reg): Likewise.
4121 (finalize_imm): Likewise.
4122 (process_operands): Likewise.
4123 (build_modrm_byte): Likewise.
4124 (output_insn): Likewise.
4125 (output_branch): Likewise.
4126 (output_jump): Likewise.
4127 (output_interseg_jump): Likewise.
4128 (output_disp): Likewise.
4129 (output_imm): Likewise.
4130
41312002-03-07 Daniel Jacobowitz <drow@mvista.com>
4132
4133 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4134
41352002-03-06 Alan Modra <amodra@bigpond.net.au>
4136
4137 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4138 relocs except when BFD64.
4139
4140 * write.c (number_to_chars_bigendian): Don't abort when N is
4141 larger than sizeof (VAL).
4142 (number_to_chars_littleendian): Likewise.
4143
41442002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4145
4146 * config/tc-hppa.c (md_apply_fix3): Add cast.
4147 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4148 e_rrsel.
4149
41502002-03-05 Paul Koning <pkoning@equallogic.com>
4151
4152 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4153 (parse_ac5): New function for parsing float regs in float operand.
4154 (parse_expression): Remove attempt to make literals be octal.
4155 (parse_op_no_deferred): Support float literals.
4156 (parse_op): Reject attempts to refer to float regs.
4157 (parse_fop): New function, like parse_op but for float operand.
4158 (md_assemble): Add cases to parse float operands. Also fix
4159 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4160
41612002-03-04 H.J. Lu <hjl@gnu.org>
4162
4163 * config/obj-elf.c (special_section): Add .init_array,
4164 .fini_array and .preinit_array.
4165
4166 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4167 .init_array and .fini_array.
4168
41692002-03-01 Jakub Jelinek <jakub@redhat.com>
4170
4171 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4172 visibility.
4173 (obj_frob_symbol): Copy visibility.
4174
41752002-02-28 Jakub Jelinek <jakub@redhat.com>
4176
4177 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4178 s_text.
4179 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4180
41812002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4182
4183 * po/es.po: Updated.
4184
41852002-02-26 Chris Demetriou <cgd@broadcom.com>
4186
4187 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4188 only, undo the changes made on 2001-06-08, with the
4189 effect being that common or extern symbols are
4190 adjusted for embedded-PIC, but weak symbols are not.
4191 (md_estimate_size_before_relax: Likewise, with the effect
4192 that extern symbols are treated the same as weak symbols
4193 only if not embedded-PIC.
4194 (mips_fix_adjustable) Likewise, with the effect that
4195 weak or extern symbols are not adjusted for embedded-PIC.
4196 (md_apply_fix3): Tweak so that the case where value is zero
4197 is handled more correctly for embedded-PIC code.
4198
41992002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4200
4201 * doc/as.texinfo (Overview): Add missing @ifset IA64
4202
4203 * configure.in (LINGUAS): Add es.po.
4204 * configure: Regenerate.
4205 * po/es.po: New file.
4206
42072002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4208
4209 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4210 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4211 and NO_PIC cases. Code cleanup.
4212 (macro2): Fix handling of 64bit register loads.
4213
42142002-02-25 David Mosberger <davidm@hpl.hp.com>
4215
4216 * doc/as.texinfo: Add entry for IA64.
4217 * doc/c-ia64.texi: New file.
4218
42192002-02-25 Alan Modra <amodra@bigpond.net.au>
4220
4221 * config/tc-hppa.c: Update copyright date.
4222
4223 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4224 Remove references to chip manufacturers.
4225 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4226 Correct comments.
4227 (md_show_usage): Remove references to chip manufacturers. Mention
4228 -mpower4.
4229 (md_begin): Test power4 opcode flag bits.
4230
42312002-02-22 David Mosberger <davidm@hpl.hp.com>
4232
4233 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4234 count exceeds prologue count.
4235 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4236 (unwind.label_prologue_count): New member.
4237
4238 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4239
4240 (get_saved_prologue_count): New function.
4241 (save_prologue_count): New function.
4242 (free_saved_prologue_count): New function.
4243 (dot_label_state): Record state label by calling save_prologue_count().
4244 (dot_copy_state): Restore prologue count by calling
4245 get_saved_prologue_count().
4246 (generate_unwind_image): Free up list of saved prologue
4247 counts by calling free_saved_prologue_counts().
4248
42492002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4250
4251 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4252 function declarations.
4253
42542002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4255
4256 * NEWS: Note that GASP is now deprecated.
4257 * Makefile.am: Do not build gasp-new by default.
4258 * Makefile.in: Regenerate.
4259 * doc/Makefile.am: Do not install gasp.info.
4260 * doc/Makefile.in: Regenerate.
4261 * gas/gasp.texi: Note that gasp is now deprecated.
4262
42632002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4264
4265 * NEWS: Mark 2.12 branch.
4266
42672002-02-19 Tom Tromey <tromey@redhat.com>
4268
4269 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4270
42712002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4272
4273 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4274 option input.
4275
42762002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4277
4278 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4279 Make bit size independent of architecture switch.
4280 (md_begin): Add warning for -m64 with -Aesa.
4281 (s390_md_end): Use renamed architecture defines.
4282
42832002-02-18 Daniel Jacobowitz <drow@mvista.com>
4284
4285 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4286
42872002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4288
4289 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4290 instead of CRIS.
4291
42922002-02-15 Chris Demetriou <cgd@broadcom.com>
4293
4294 * config/tc-mips.c (md_estimate_size_before_relax): Really
4295 make sure we treat weak like extern only for ELF. (Fixes
4296 patch from 2001-07-25.)
4297
42982002-02-15 Ben Elliston <bje@redhat.com>
4299
4300 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4301 works as expected.
4302
43032002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4304
4305 * NEWS: Mention support for MMIX.
4306
43072002-02-13 Chris Demetriou <cgd@broadcom.com>
4308
4309 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4310 a sequence of indpendent 'if' statements for easier debugging
4311 and future modification.
4312
43132002-02-13 Matt Fredette <fredette@netbsd.org>
4314
4315 * config/tc-m68k.c (md_show_usage): No longer display a
4316 hard-coded "68020" for the default CPU, instead display the
4317 canonical name of the true, configured default CPU.
4318 (m68k_elf_final_processing): Mark objects for sub-68020
4319 CPUs with the new EF_M68000 flag.
4320
43212002-02-13 Andreas Schwab <schwab@suse.de>
4322
4323 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4324 pc-relative relocations to merge sections in 64-bit mode.
4325
43262002-02-13 Ben Elliston <bje@redhat.com>
4327
4328 * NEWS: Document floating point number handling in gasp.
4329 * gasp.c: Include <assert.h> and "xregex.h".
4330 (is_flonum): New function.
4331 (chew_flownum): Likewise.
4332 (change_base): Consume flonums from the input, where possible.
4333 * doc/gasp.texi (Constants): Document floating point numbers.
4334
43352002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4336
4337 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4338 that implicitly use LR and RR selectors.
4339
43402002-02-12 Alexandre Oliva <aoliva@redhat.com>
4341
4342 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4343 and `epsw' as available on AM33 and above only.
4344 (other_register_name): Add logic to handle machine type encoded in
4345 reg_number.
4346
43472002-02-11 Tom Rix <trix@redhat.com>
4348
4349 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4350 xcoff64.
4351
43522002-06-11 Alexandre Oliva <aoliva@redhat.com>
4353
4354 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4355 Use all over.
4356
43572002-02-11 Jan Hubicka <jh@suse.cz>
4358
4359 * i386.c (md_assemble): Support 32bit address prefix.
4360 (i386_displacement): Likewise.
4361 (i386_index_check): Accept 32bit addressing in 64bit mode.
4362
43632002-02-11 Alexandre Oliva <aoliva@redhat.com>
4364
4365 * config/tc-sh.c (dot): Removed unused function.
4366
43672002-02-11 Alan Modra <amodra@bigpond.net.au>
4368
4369 * Makefile.am: "make dep-am".
4370 * Makefile.in: Regenerate.
4371 * aclocal.m4: Regenerate.
4372 * config.in: Regenerate.
4373 * configure: Regenerate.
4374 * doc/Makefile.in: Regenerate.
4375
43762002-02-10 Richard Henderson <rth@redhat.com>
4377
4378 * doc/c-alpha.texi: New file.
4379 * doc/Makefile.am (CPU_DOCS): Add it.
4380 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4381
43822002-02-09 Richard Henderson <rth@redhat.com>
4383
4384 * config/tc-alpha.c (O_samegp): New.
4385 (USER_RELOC_P): Include it.
4386 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4387 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4388 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4389 (alpha_validate_fix): New.
4390 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4391
43922002-02-09 Hans-Peter Nilsson <hp@axis.com>
4393
4394 * doc/c-cris.texi: New.
4395 * doc/all.texi: @set CRIS.
4396 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4397 Include c-cris.texi.
4398 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4399 * doc/Makefile.in: Regenerate.
4400
44012002-02-08 Chris Demetriou <cgd@broadcom.com>
4402
4403 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4404 determine if a number is a sign-extended 32-bit number.
4405 (load_register): Use IS_SEXT_32BIT_NUM.
4406 (macro): Check if load/store macro handling is using a
4407 constant 32-bit address on 64-bit address systems, and if
4408 so optimize the generation of that address.
4409
44102002-02-08 Richard Henderson <rth@redhat.com>
4411
4412 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4413 we've eliminated all foreign relocation types yet.
4414 (alpha_fix_adjustable): Likewise.
4415
44162002-02-08 Alexandre Oliva <aoliva@redhat.com>
4417
4418 Contribute sh64-elf.
4419 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4420 Stephen Clarke <Stephen.Clarke@st.com>
4421 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4422 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4423 * config/tc-sh.c (md_relax_table): Added default sizes for
4424 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4425 MOVI_16, MOVI_32 and MOVI_48.
4426 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4427 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4428 and MOVI_16.
4429 (shmedia_md_estimate_size_before_relax): Remove redundant
4430 blocks. Set fragP->fr_var even if relaxation type unchanged.
4431 Retain UNDEF_MOVI until expression decays to number.
4432 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4433 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4434 relocation types. Take fixP->fx_addnumber into account too.
4435 (shmedia_md_apply_fix): Likewise.
4436 (shmedia_md_convert_frag): Likewise.
4437 (shmedia_build_Mytes): Likewise.
4438 (sh64_consume_datalabel): Complain about nested datalabel.
4439 Support PIC relocs. Call sh_parse_name.
4440 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4441 in tc-sh.h to SHmedia reloc types.
4442 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4443 MOVI_GOTPC): New relaxation constants.
4444 (md_relax_table): Introduce relaxation directives for PIC-related
4445 constants.
4446 (sh_PIC_related_p): Handle datalabel.
4447 (sh_check_fixup): Choose SH5 PIC relocations.
4448 (sh_cons_fix_new): Added BDF_RELOC_64.
4449 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4450 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4451 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4452 current ISA is SHmedia, get 7 bytes.
4453 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4454 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4455 void function.
4456 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4457 shmedia_apply_fix3 and make void.
4458 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4459 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4460 as_bad.
4461 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4462 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4463 2001-03-14 DJ Delorie <dj@redhat.com>
4464 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4465 * doc/Makefile.in(CPU_DOCS): Ditto.
4466 * doc/c-sh64.texi: New file.
4467 * doc/as.texinfo: Add SH64 support.
4468 2001-03-13 DJ Delorie <dj@redhat.com>
4469 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4470 A_REUSE_PREV so that its purpose is more obvious.
4471 (shmedia_build_Mytes): Ditto.
4472 2001-03-07 DJ Delorie <dj@redhat.com>
4473 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4474 before processing.
4475 (sh64_vtable_inherit): Ditto.
4476 (strip_datalabels): New, strip "datalabel" from given line.
4477 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4478 pseudos.
4479 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4480 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4481 call ...
4482 (shmedia_build_Mytes): ... to here.
4483 2001-03-06 DJ Delorie <dj@redhat.com>
4484 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4485 is a generic one.
4486 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4487 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4488 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4489 address by one in call to dwarf2_emit_insn.
4490 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4491 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4492 alignment handling broken by imported changes.
4493 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4494 (sh64_handle_align): Declare.
4495 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4496 (sh64_max_mem_for_rs_align_code): Declare.
4497 (enum sh64_isa_values): Moved here from tc-sh64.c.
4498 (md_do_align): Define.
4499 (sh64_do_align): Declare.
4500 (struct sh64_tc_frag_data): New.
4501 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4502 changed.
4503 (TC_FRAG_INIT): Change to set new datatype.
4504 (struct sh64_segment_info_type): Rename member
4505 last_flushed_location to last_contents_mark. All users changed.
4506 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4507 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4508 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4509 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4510 of unsetting seen_insn.
4511 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4512 call sh64_update_contents_mark.
4513 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4514 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4515 enum sh64_isa_values.
4516 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4517 (emitting_crange): Boolean guard moved to file scope from function
4518 scope in sh64_set_contents_type.
4519 (s_sh64_abi): New.
4520 (sh64_update_contents_mark): New; most split out from
4521 sh64_flush_pending_output.
4522 (shmedia_md_end): Call sh64_update_contents_mark. Set
4523 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4524 (sh64_do_align): New function.
4525 (sh64_max_mem_for_rs_align_code): New function.
4526 (sh64_handle_align): Rename from shmedia_do_align. Make
4527 non-static. Add head comment. Emit zero bytes for n bytes modulo
4528 four. Change return-type to void.
4529 (shmedia_elf_new_section): Remove.
4530 (shmedia_md_assemble): Call sh64_update_contents_mark.
4531 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4532 new frag. Call sh64_update_contents_mark after making the new
4533 frag.
4534 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4535 and sh_flush_pending_output.
4536 (sh64_flag_output): Also call md_flush_pending_output, but add
4537 condition on not emitting_crange.
4538 (sh64_tc_cons_fix_new): Remove.
4539 2001-01-12 Nick Clifton <nickc@redhat.com>
4540 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4541 alignment handling scheme imported from sourceware.
4542 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4543 * config/tc-sh64.h (TARGET_FORMAT): Define.
4544 (sh64_target_format): Prototype.
4545 * config/tc-sh64.c (sh64_target_mach): New function.
4546 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4547 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4548 zero_address_frag instead of copying the frag of the symbol.
4549 (shmedia_frob_file_before_adjust): Ditto.
4550 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4551 to valueT to remove signedness.
4552 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4553 headers to output_bfd. Do not evaluate symbols if final is false;
4554 do emit fixups.
4555 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4556 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4557 to the current frag, call shmedia_md_convert_frag to emit fixups
4558 and make frag_wane neutralize the frag. Update comments.
4559 * config/tc-sh.c (md_convert_frag): Change caller of
4560 shmedia_md_convert_frag.
4561 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4562 * config/tc-sh64.h: Tweak comments and correct formatting.
4563 * config/tc-sh64.c: Ditto.
4564 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4565 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4566 for the no-relocation case.
4567 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4568 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4569 wrappers.
4570 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4571 comment.
4572 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4573 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4574 expansion.
4575 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4576 Correct comment.
4577 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4578 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4579 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4580 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4581 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4582 if reloc is emitted.
4583 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4584 New options plus bugfixes.
4585 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4586 "-expand-pt32".
4587 (md_parse_option): Handle new options.
4588 (md_show_usage): Add blurb for new options.
4589 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4590 (sh64_expand, sh64_pt32): New variables.
4591 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4592 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4593 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4594 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4595 <resolved previously-pc-relative relocs>: Handle
4596 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4597 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4598 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4599 points to SHcompact code.
4600 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4601 SH64PCREL16)>: Check that ISA of what operand points at and
4602 PTA/PTB matches, or emit error.
4603 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4604 SHMEDIA_BFD_RELOC_PT.
4605 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4606 operand.
4607 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4608 condition for MOVI expansion.
4609 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4610 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4611 sh64_expand.
4612 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4613 fixup.
4614 (sh64_target_format): Error-check setting of sh64_pt32 and
4615 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4616 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4617 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4618 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4619 * config/tc-sh64.c: Improve comments.
4620 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4621 not say the linker will check correctness of PTA/PTB expansion.
4622 (shmedia_md_end): Make non-static.
4623 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4624 prototype.
4625 * config/tc-sh.c (sh_finalize): Remove.
4626 * config/tc-sh.h (md_end): Do not define.
4627 Remove prototype for sh_finalize.
4628 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4629 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4630 sh64_section_data container when storing section type in tdata
4631 field in elf_section_data.
4632 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4633 EF_SH5.
4634 * Makefile.am: Update dependencies.
4635 * Makefile.in: Regenerate.
4636 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4637 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4638 dwarf2_emit_insn call with test on debug_type.
4639 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4640 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4641 CRT_SH5_ISA32 sticky for 64-bit.
4642 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4643 Generate .crange sections when switching ISA mode or emitting
4644 constants in same section as code.
4645 * config/tc-sh64.c: Reformat structure definitions.
4646 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4647 variables.
4648 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4649 to emit a .cranges descriptor when contents type changes. Only
4650 emit error if changing contents type and -no-mix is in effect.
4651 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4652 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4653 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4654 sh64_flush_last_crange over sections.
4655 When checking main symbol of datalabel symbol, check for
4656 STO_SH5_ISA32, not ISA type of section in definition.
4657 (shmedia_frob_file_before_adjust): Check main symbol for
4658 STO_SH5_ISA32; don't check ISA type of section in definition.
4659 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4660 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4661 .cranges entries have been output.
4662 (shmedia_elf_new_section): Just call md_flush_pending_output.
4663 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4664 fix. Do not set tc_segment_info_data.in_code for section. Call
4665 sh64_set_contents_type for SHmedia code.
4666 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4667 false. Call md_flush_pending_output.
4668 (sh64_target_format): Check that -no-mix and
4669 -shcompact-const-crange are used in sane combination with other
4670 options.
4671 (shmedia_md_pcrel_from_section): Check type of fix for how to
4672 adjust pc-relative.
4673 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4674 not ISA type of section in definition.
4675 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4676 hold contents-type state.
4677 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
4678 (sh64_flush_pending_output): Declare.
4679 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
4680 (sh64_tc_cons_fix_new): Declare.
4681 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
4682 call sh64_flag_output.
4683 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
4684 call sh64_set_contents_type to mark SHcompact code and set
4685 seen_insn.
4686 (md_longopts): New options "-no-mix" and
4687 "-shcompact-const-crange".
4688 (md_parse_option): Handle new options.
4689 (md_show_usage): Add blurb for new options.
4690 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
4691 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
4692 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
4693 (sh64_last_insn_frag): New.
4694 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
4695 to get frag for insn opcode for generating fixups; do not assume it
4696 is the same frag.
4697 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
4698 for new insn.
4699 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
4700 section.
4701 (TC_FRAG_TYPE): Define as fragS *.
4702 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
4703 (sh64_last_insn_frag): Declare.
4704 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
4705 not == NULL before dereferencing.
4706 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4707 Get rid of BFD section flag and EF_SH64_ABI64.
4708 * config/tc-sh64.c (shmedia_frob_section_type): Use
4709 elf_section_data (sec)->tdata, not a specific BFD section flag, to
4710 communicate the section as containing SHmedia code. Describe why.
4711 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
4712 EF_SH64 regardless of ABI.
4713 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
4714 in error message. Handle resolved expressions for
4715 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4716 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
4717 (shmedia_check_limits): Handle BFD_RELOC_64.
4718 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
4719 a STO_SH5_ISA32 symbol, only the BFD value.
4720 2000-12-11 Ben Elliston <bje@redhat.com>
4721 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
4722 dwarf2_generate_asm_lineno.
4723 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
4724 Handle PC-relative MOVI expansions with assembler relaxation.
4725 Generate PC-relative relocs from 16-bit PC-relative expressions.
4726 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
4727 (shmedia_md_pcrel_from_section): ...here.
4728 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
4729 turned completely resolved. Adjust relocation type for 16-bit
4730 immediate operands that has turned PC-relative. Adjust back for
4731 MD_PCREL_FROM_SECTION being applied twice.
4732 (shmedia_md_convert_frag): Always emit reloc for expression with
4733 global or weak symbol. Handle relaxation result for PC-relative
4734 expressions.
4735 (shmedia_md_estimate_size_before_relax): An expression with a weak
4736 or global symbol can not be relaxed. Break out tests for
4737 relaxable symbol into variable sym_relaxable.
4738 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
4739 UNDEF_MOVI)>: Break out any PC-relative expression and change
4740 relaxation type.
4741 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
4742 opjp.
4743 <case A_IMMS16>: Fix typo for initial minor relaxation type of
4744 MOVI expansion. If X_op_symbol of the immediate expression is
4745 set, make an expression symbol for the argument to frag_var.
4746 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
4747 relaxations.
4748 (END): Adjust for new relaxations.
4749 (md_relax_table): Add entries for new relaxations.
4750 2000-12-07 Ben Elliston <bje@redhat.com>
4751 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
4752 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4753 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
4754 SHORI operand offsets in PT/PTA/PTB expansions.
4755 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4756 Implement DataLabel semantics.
4757 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
4758 shmedia_frob_file_before_adjust.
4759 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
4760 (DATALABEL_SUFFIX): Define.
4761 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
4762 symbol list to update "datalabel" symbols to their main symbol
4763 counterparts.
4764 (shmedia_frob_file_before_adjust): New.
4765 (sh64_adjust_symtab): For remaining datalabel symbols, set to
4766 undefined and set STT_DATALABEL.
4767 (sh64_frob_label): Initialize TC symbol field.
4768 (sh64_consume_datalabel): Actually implement semantics. New
4769 parameter operandf, call it instead of expression.
4770 (sh64_exclude_symbol): New.
4771 * config/tc-sh64.h (md_parse_name): Pass on the function operand
4772 to sh64_consume_datalabel.
4773 (tc_symbol_new_hook): Define to tc_frob_symbol.
4774 (TC_SYMFIELD_TYPE): Define to symbolS *.
4775 (tc_frob_symbol): Define to call sh64_exclude_symbol.
4776 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
4777 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
4778 case.
4779 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
4780 generating dwarf2 debug information.
4781 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4782 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
4783 elf64-sh64 for the 64-bit ABI.
4784 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
4785 option.
4786 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4787 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
4788 case-insensitivity.
4789 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4790 * config/tc-sh64.c: Tweak comments, formatting and error messages.
4791 (enum sh64_abi_values): New type.
4792 (enum sh64_isa_values): New type.
4793 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
4794 (seen_shcompact_mode, seen_shmedia_mode): Delete.
4795 (sh64_abi): Replace shmedia_64.
4796 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
4797 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
4798 (s_sh64_mode): Check validity for this target.
4799 (sh64_target_format): Initialize defaults for ISA and ABI.
4800 Fallback to old object format if no SH64 ISA or ABI has been
4801 specified.
4802 * config/tc-sh.c (md_parse_option): Check combinations for errors.
4803 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
4804 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
4805 * config/tc-sh64.h: Fix typo in comment.
4806 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
4807 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
4808 <PT fixups for absolute values>: Size will be longest, not
4809 shortest.
4810 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
4811 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
4812 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
4813 and l1 to hold lowercase of two first characters. Change all
4814 remaining TO_LOWER to tolower.
4815 * config/tc-sh64.c (TO_LOWER): Delete.
4816 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
4817 (md_parse_name): Define.
4818 (sh64_consume_datalabel): Declare.
4819 (DOLLAR_DOT): Define.
4820 * config/tc-sh64.c (shmedia_parse_exp): New.
4821 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
4822 (shmedia_parse_reg): Remove const from src
4823 parameter.
4824 (shmedia_get_operands): Ditto for args parameter and ptr variable.
4825 (shmedia_md_assemble): Ditto for op_end variable.
4826 (shmedia_get_operand): Ditto for ptr parameter and src variable.
4827 Use shmedia_parse_exp, not parse_exp.
4828 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
4829 parameter. All callers changed.
4830 (shmedia_get_operand): Add shmedia_arg_type parameter. All
4831 callers changed.
4832 (shmedia_parse_reg): Put first two character in local variables.
4833 Use tolower, not TO_LOWER. If no register is found and argtype
4834 indicates a control register, scan shmedia_creg_table
4835 case-insensitive.
4836 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4837 * Makefile.am (CPU_TYPES): Add sh64.
4838 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
4839 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
4840 Regenerate dependencies.
4841 * Makefile.in: Regenerate.
4842 * configure.in: Add support for sh64-*-elf*.
4843 * configure: Regenerate.
4844 * config/tc-sh64.h: New.
4845 * config/tc-sh64.c: New.
4846 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
4847 .mode, .isa and .uaquad.
4848 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
4849 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
4850 [HAVE_SH64] (END): Define as 10.
4851 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
4852 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
4853 MOVI_64): Define.
4854 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
4855 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
4856 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
4857 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
4858 Define.
4859 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
4860 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
4861 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
4862 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
4863 SHmedia instructions. Handle state-change after switching to
4864 SHcompact.
4865 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
4866 (md_parse_option) [HAVE_SH64]: Parse new options.
4867 (md_show_usage) [HAVE_SH64]: Show usage of new options.
4868 (md_convert_frag) [HAVE_SH64] <default>: Call
4869 shmedia_md_convert_frag instead of abort.
4870 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
4871 BFD_RELOC_SH_SHMEDIA_CODE.
4872 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
4873 SHcompact or SHmedia code.
4874 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
4875 shmedia_md_apply_fix instead of abort.
4876 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
4877 result from calling shmedia_md_estimate_size_before_relax instead
4878 of calling abort.
4879 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
4880 do the work.
4881 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
4882 shmedia_init_reloc and do nothing more if it returns non-zero.
4883 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
4884 * po/POTFILES.in: Regenerate.
4885 * po/gas.pot: Regenerate.
4886
48872002-02-06 Alexandre Oliva <aoliva@redhat.com>
4888
4889 * config/tc-sh.c (parse_at): Install the correct version of
4890 2002-02-04's patch.
4891
4892 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
4893 assume fixP->fx_subsy is non-NULL.
4894
48952002-02-04 Alexandre Oliva <aoliva@redhat.com>
4896
4897 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
4898 A_DISP_PC_ABS, and adjust it by -4.
4899 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
4900 expected.
4901 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
4902 the operand type is not A_DISP_PC_ABS.
4903
49042002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4905
4906 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
4907 common and weak symbols. Handle common and weak symbols as
4908 undefined symbols with regards to GREG handling and merging.
4909 (mmix_frob_file): Ditto.
4910
49112002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4912
4913 * configure.in (hppa-*-netbsd*): New target.
4914 * configure: Regenerate.
4915 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
4916
49172002-02-02 Alan Modra <amodra@bigpond.net.au>
4918
4919 * config/tc-v850.c: Add missing prototypes amd use old-style
4920 function definitions.
4921 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
4922 (sdata_section tdata_section, zdata_section, sbss_section,
4923 tbss_section, zbss_section, rosdata_section, rozdata_section,
4924 scommon_section, tcommon_section, zcommon_section,
4925 call_table_data_section, call_table_text_section): Delete.
4926 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4927 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
4928 v850_call_table_data, v850_call_table_text): Delete.
4929 (struct v850_seg_entry): New.
4930 (v850_seg_table): New.
4931 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
4932 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
4933 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
4934 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
4935 (do_v850_seg): New.
4936 (v850_seg): New.
4937 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
4938 recording of alignment.
4939 (md_pseudo_table): Use v850_seg.
4940 (md_begin): Don't init .call_table_data and .call_table_text here.
4941 Set v850_seg_table bss entry.
4942
49432002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4944
4945 Support on-demand global register allocation by passing on
4946 base-plus-offset relocs to the linker.
4947 * config/tc-mmix.c: Tweak and fix typos in comments.
4948 (allocate_undefined_gregs_in_linker): New variable.
4949 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
4950 (md_longopts): Add --linker-allocated-gregs.
4951 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
4952 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
4953 (md_show_usage): Update text for -x. Add text for
4954 --linker-allocated-gregs.
4955 (tc_gen_reloc): Derive default value for addend from val and
4956 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
4957 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
4958 GREG if allocate_undefined_gregs_in_linker.
4959 * doc/as.texinfo (Overview) <Target MMIX options>: Add
4960 --linker-allocated-gregs.
4961 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
4962 --linker-allocated-gregs. Mention that it's implied by -x.
4963 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
4964 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
4965
4966 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
4967
49682002-02-01 Alan Modra <amodra@bigpond.net.au>
4969
4970 * Makefile.am: Run "make dep-am"
4971 * Makefile.in: Regenerate.
4972
49732002-01-31 Ivan Guzvinec <ivang@opencores.org>
4974
4975 * config/tc-or32.c: New file.
4976 * config/tc-or32.h: New file.
4977 * configure.in: Add support for or32 targets.
4978 * configure: Regenerate.
4979 * config/obj-coff.c: Add support for or32 targets.
4980 * config/obj-coff.h: Add support for or32 targets.
4981 * Makefile.am: Add support for or32 targets.
4982 * Makefile.in: Regenerate.
4983 * NEWS: Mention support for OpenRISC.
4984 * doc/Makefile.in: Regenerate.
4985 * po/POTFILES.in: Regenerate.
4986 * po/gas.pot: Regenerate.
4987
49882002-01-30 Richard Sandiford <rsandifo@redhat.com>
4989
4990 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
4991 and mod.
4992
49932002-01-29 Chris Demetriou <cgd@broadcom.com>
4994
4995 * config/tc-mips.c (tc_gen_reloc): Arrange for
4996 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
4997 their LO16 parts, even for ELF.
4998
49992002-01-29 Daniel Jacobowitz <drow@mvista.com>
5000
5001 * config/tc-i386.c: Protect definitions of true and false
5002 from redefinition.
5003
50042002-01-28 Jakub Jelinek <jakub@redhat.com>
5005
5006 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5007 made because of .weak, if they are neither defined nor used in any
5008 way.
5009
50102002-01-27 Daniel Jacobowitz <drow@mvista.com>
5011
5012 * configure: Regenerated.
5013
50142002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5015
5016 * doc/Makefile.am (install): Depend on install-info.
5017 * doc/Makefile.in: Regenerate.
5018
50192002-01-26 Nick Clifton <nick@redhat.com>
5020
5021 * po/fr.po: Updated version
5022
50232002-01-24 Kazu Hirata <kazu@hxi.com>
5024
5025 * config/tc-h8300.c (check_operand): Don't print a warning
5026 when a valid 24-bit address is given to a 16-bit address
5027 operand.
5028
50292002-01-24 Alexandre Oliva <aoliva@redhat.com>
5030
5031 * config/tc-sh.c (sh_elf_suffix): Removed.
5032 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5033 sh_end_of_match, sh_parse_name): New functions.
5034 (sh_elf_cons): Simplify.
5035 (parse_exp): Reject misplaced PIC operands.
5036 (md_undefined_symbol): Simplify.
5037 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5038 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5039 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5040 Complain if subsy remains at the end.
5041 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5042 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5043
50442002-01-22 Alexandre Oliva <aoliva@redhat.com>
5045
5046 * config/tc-mn10300.c (xr_registers): Move `pc'...
5047 (other_registers): ... here.
5048
50492002-01-22 Alan Modra <amodra@bigpond.net.au>
5050
5051 * Makefile.am: Run "make dep-am".
5052 * Makefile.in: Regenerate.
5053 * gas/po/POTFILES.in: Regenerate.
5054
50552002-01-21 DJ Delorie <dj@redhat.com>
5056
5057 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5058 stabstr_name allocation permanent, as it will be referenced from
5059 the section hash.
5060
50612002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5062
5063 * configure.in (ia64-*-netbsd*): New target.
5064 * configure: Regenerate.
5065
50662002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5067
5068 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5069 to @dots call.
5070 <Detailed description, ARM options>: Ditto.
5071 * doc/c-arm.texi (ARM Options): Ditto.
5072
50732002-01-18 Richard Earnshaw <rearnsha@arm.com>
5074
5075 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5076 do_mia, do_mar and do_mra respectively.
5077 (do_mav_*): Renamed from do_c_*.
5078 (mav_reg_required_here, mav_parse_offset): Renamed from
5079 cirrus_reg_required_here and cirrus_parse_offset respectively.
5080 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5081
50822002-01-18 Richard Earnshaw <rearnsha@arm.com>
5083 Keith Walker <keith.walker@arm.com>
5084
5085 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5086 (insns): Add pattern for bxj instruction.
5087 (do_bxj): New function.
5088 (arm_cpus): Add arm926ej.
5089 (arm_archs): Add armv5tej.
5090
50912002-01-18 Richard Earnshaw <rearnsha@arm.com>
5092
5093 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5094
50952002-01-19 Keith Walker <keith.walker@arm.com>
5096
5097 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5098
50992002-01-18 Richard Earnshaw <rearnsha@arm.com>
5100
5101 * NEWS: Mention new ARM command-line options and VFP support.
5102
5103 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5104 uses changed.
5105 (ARM_CEXT_MAVERICK): Similarly.
5106 (ARM_ANY): Now means any core instruction.
5107 (CPU_DEFAULT): Default to ARM_ANY.
5108 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5109 (pic_code): Declare for all object types. Make type int.
5110 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5111 (march_fpu_opt, mfpu_opt): Declare.
5112 (md_longopts): Tidy up conditional definitions.
5113 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5114 (arm_long_opts): New tables.
5115 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5116 (arm_parse_extension): New function.
5117 (md_parse_option): Rewrite using new table-driven system.
5118 (md_show_usage): Use new table-driven system.
5119 (md_begin): Calculate cpu_variant from command line option data.
5120 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5121 command-line options.
5122 * doc/c-arm.texi: Likewise.
5123
51242002-01-18 Andreas Jaeger <aj@suse.de>
5125
5126 * as.c (parse_args): Update year.
5127
51282002-01-17 Timothy Wall <twall@alum.mit.edu>
5129
5130 * config/tc-tic54x.c (encode_address): Add a more informative
5131 warning about incorrect syntax.
5132
51332002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5134
5135 * po/gas.pot: Regenerate.
5136
51372002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5138
5139 * macro.c (get_any_string): Add no-c-format comment to prevent
5140 confusion when translating string.
5141 * gasp.c (get_any_string): Add no-c-format comment to prevent
5142 confusion when translating string.
5143
51442002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5145 Johannes Stezenbach <js@convergence.de>
5146 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5147 matched before the shorter ones.
5148 (my_getSmallParser): Fix handling of nested parentheses in
5149 percent_op's. Code cleanup.
5150 (my_getPercentOp): New function, code from my_getSmallParser.
5151 (my_getSmallExpression): Fix handling of closing parentheses.
5152 Code cleanup. Better comments.
5153
51542002-01-16 Nick Clifton <nickc@redhat.com>
5155
5156 po/tr.po: New file: Turkish translation.
5157 configure.in (LINGUAS): Add "tr".
5158 configure: Regenerate.
5159
51602002-01-15 Richard Earnshaw <rearnsha@arm.com>
5161
5162 Support for VFP instructions
5163 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5164 (cp_address_required_here): New argument wb_ok. When false, do not
5165 accept write-back forms of addressing. Change all callers.
5166 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5167 (FPU_VFP_EXT_V2): Define.
5168 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5169 Define in terms of above.
5170 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5171 (vfp_reg): New struct.
5172 (vfp_regs): New array of registers.
5173 (insns): Add VFP instructions.
5174 (sn_table): New array of VFP single-precision register names.
5175 (dn_table): New array of VFP double-precision register names.
5176 (all_reg_maps): Add the new register tables.
5177 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5178 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5179 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5180 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5181 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5182 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5183 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5184 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5185 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5186 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5187 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5188 (do_vfp_sp_dp_cvt): New functions.
5189 (md_begin): Set soft-float flag for appropriate VFP work.
5190 (md_atof): Handle VFP-format doubles.
5191 (md_parse_option): Handle VFP command-line options.
5192 (md_show_usage): Display VFP command-line options.
5193
51942002-01-15 Richard Earnshaw <rearnsha@arm.com>
5195
5196 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5197 various command line options.
5198
51992002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5200
5201 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5202 vtinherit relocs.
5203 (xstormy16_md_apply_fix3): Do not return a value.
5204
52052002-01-14 Richard Earnshaw <rearnsha@arm.com>
5206
5207 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5208 the -EL/-EB option that matches the target's endianness.
5209 (md_parse_option): Likewise.
5210
52112002-01-14 Richard Earnshaw <rearnsha@arm.com>
5212
5213 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5214 is not dependent on ARM_BI_ENDIAN.
5215
52162002-01-14 Richard Earnshaw <rearnsha@arm.com>
5217
5218 * tc-arm.c (all error messages): Normalize capitalization of messages.
5219
5220 * tc-arm.h (md_operand): Delete define.
5221 * tc-arm.c (in_my_get_expression): New static variable.
5222 (my_get_expression): Set and clear it.
5223 (md_operand): New function. If called from my_get_expression
5224 put the error in inst.error.
5225 (output_inst): Now takes argument of instruction being assembled.
5226 Print it out with any error message.
5227 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5228 with '=' syntax.
5229 (end_of_line): Don't update inst.error if it is already set.
5230
52312002-01-11 Richard Earnshaw <rearnsha@arm.com>
5232
5233 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5234 op that can be translated into a mvn instruction.
5235
52362002-01-11 Steve Ellcey <sje@cup.hp.com>
5237
5238 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5239 setting default md.flags.
5240 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5241 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5242 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5243 for 32 bit unwind info blocks.
5244 (generate_unwind_image): Add support for different types
5245 of unwind images (32 bits and/or big-endian).
5246 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5247 (ia64_target_format): Add support for hpux target formats.
5248 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5249 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5250 SHT_FINI_ARRAY elf section types.
5251
52522002-01-10 Richard Earnshaw <rearnsha@arm.com>
5253
5254 * tc-arm.c (struct reg_entry): Move before prototypes.
5255 (int_register, cp_register, fp_register): Delete.
5256 (reg_table): Delete. Replaced with ...
5257 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5258 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5259 (mav_dspsc_table): ... one table per register set.
5260 (arm_reg_hsh): Delete.
5261 (struct reg_map): New structure.
5262 (all_reg_maps): New array.
5263 (enum arm_reg_type): New enums.
5264 (build_reg_hsh): New function.
5265 (insert_reg_alias): Use hash table passed by caller. Adjust all
5266 callers.
5267 (create_register_alias): New function, split out from ...
5268 (md_assemble): ... here.
5269 (md_begin): Build new register hash tables.
5270 (arm_reg_parse): New argument for the hash table to search. Adjust all
5271 callers.
5272 (arm_reg_parse_any): New function.
5273 (co_proc_number): Look up the processor number in the processor hash
5274 table.
5275 (cirrus_regtype): Delete.
5276 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5277 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5278 (ARM_EXT_MAVERICKsc_register): Delete.
5279 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5280 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5281 functions.
5282 (do_c_triple_4, do_c_triple_5): Delete.
5283 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5284 (do_c_quad_6): Delete.
5285 (do_c_quad_6[ab]): New functions.
5286 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5287 arguments to use new register parsing methods.
5288 (cirrus_reg_required_here): Likewise.
5289 (insns): Reclassify cirrus maverick worker functions.
5290 (cirrus_valid_reg): Delete.
5291
52922002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5293
5294 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5295 (sh*-*-netbsdelf*): New target.
5296 * configure: Regenerate.
5297 * tc-sh.h: Update copyright years.
5298 (TARGET_FORMAT): Add version for TE_NetBSD.
5299
53002002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5301
5302 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5303 negative.
5304
53052002-01-06 Alan Modra <amodra@bigpond.net.au>
5306
5307 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5308 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5309
53102002-01-05 Daniel Jacobowitz <drow@mvista.com>
5311
5312 * tc-mips.c (mips_cprestore_valid): New flag.
5313 (mips_frame_reg_valid): New flag.
5314 (macro) [M_JAL_2]: Check both flags.
5315 [M_JAL_A]: Likewise.
5316 (s_cprestore): Set mips_cprestore_valid.
5317 (tc_get_register): If setting mips_frame_reg, set
5318 mips_frame_reg_valid and clear mips_cprestore_valid.
5319 (s_mips_ent): Clear both flags.
5320 (s_mips_end): Clear both flags.
5321
53222002-01-05 Alan Modra <amodra@bigpond.net.au>
5323
5324 * write.c (write_object_file): Make use of bfd_section_list_remove.
5325 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5326 * config/tc-mmix.c (mmix_frob_file): Likewise.
5327
53282002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5329
5330 * configure.in (i386-*-netbsdelf*): Collapse target into...
5331 (i386-*-netbsd*): ...this. Add support for x86-64.
5332 * configure: Regenerated.
5333
53342002-01-03 matthew green <mrg@redhat.com>
5335
5336 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5337
53382002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5339
5340 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5341 NULL frag link.
5342
5343For older changes see ChangeLog-0001
5344
5345
5346Local Variables:
5347mode: change-log
5348left-margin: 8
5349fill-column: 74
5350version-control: never
5351End:
Note: See TracBrowser for help on using the repository browser.