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