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