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