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