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