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