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