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