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