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