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