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