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