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