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