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