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