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