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