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