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