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