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