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