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