1 2001-12-17 Richard Henderson <rth@redhat.com>
3 * config/tc-alpha.c (alpha_handle_align): Encode unop with RB as $sp.
5 2001-12-17 Nick Clifton <nickc@cambridge.redhat.com>
7 * cgen.c: Add prototype for queue_fixup.
8 (gas_cgen_parse_operand): Move initilisastion of errmsg to avoid
9 possible longjmp corruption.
10 * cgen.h: Add prototype for gas_cgen_md_operand.
12 2001-12-15 Alan Modra <amodra@bigpond.net.au>
14 * config/obj-elf.c (obj_elf_init_stab_section): References are
15 kept to section name strings. Don't alloca them!
17 2001-12-12 Alexandre Oliva <aoliva@redhat.com>
19 * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
20 OPERAND_ATSIGN as O_absent.
22 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
23 Richard Henderson <rth@redhat.com>
25 * configure.in: Add support for xstormy16.
26 * configure: Regenerated.
27 * Makefile.am: Add support for xstormy16.
28 * Makefile.in: Regenerated.
29 * config/tc-xstormy16.c: New file.
30 * config/tc-xstormy16.h: New file.
32 2001-12-06 Richard Earnshaw (rearnsha@arm.com)
34 * tc-arm.c (do_arit, do_cmp, do_mov, do_ldst, do_ldstt, do_ldmstm)
35 (do_branch, do_swi, do_adr, do_adrl, do_empty, do_mul, do_mla)
36 (do_swap, do_msr, do_mrs, do_mull, do_ldstv4, do_bx, do_blx)
37 (do_bkpt, do_clz, do_lstc2, do_cdp2, do_co_reg2, do_smla, do_smlal)
38 (do_smul, do_qadd, do_pld, do_ldrd, do_co_reg2c, do_cdp, do_lstc)
39 (do_co_reg, do_fpa_ctrl, do_fpa_ldst, do_fpa_ldmstm, do_fpa_monadic)
40 (do_fpa_dyadic, do_fpa_cmp, do_fpa_from_reg, do_fpa_to_reg, do_mia)
41 (do_mar, do_mra, do_c_binops, do_c_binops_1, do_c_binops_2)
42 (do_c_binops_3, do_c_triple, do_c_triple_4, do_c_triple_5, do_c_quad)
43 (do_c_quad_6, do_c_dspsc, do_c_dspsc_1, do_c_dspsc_2, do_c_shift)
44 (do_c_shift_1, do_c_shift_2, do_c_ldst, do_c_ldst_1, do_c_ldst_2)
45 (do_c_ldst_3, do_c_ldst_4, do_branch25): Delete redundant argument,
47 (struct asm_opcode): Adjust parms field accordingly.
48 (md_assemble): Don't pass dummy second argument when calling worker
50 (build_arm_ops_hsh): Add prototype
53 2001-12-05 Richard Earnshaw <rearnsha@arm.com>
55 * tc-arm.c (struct asm_opcode): Delete comp_suffix and flags. Add
56 cond_offset. Rename variants->variant.
57 (insns): Adjust for new format. Explicitly code each variant that
58 takes flags. Remove temporary instructions.
59 (struct arm_it): Remove redundant field suffix.
60 (s_flag, ldr_flags, str_flags, byte_flag, cmp_flags, ldm_flags)
61 (stm_flags, lfm_flags, sfm_flags, round_flags, fix_flags, except_flag)
63 (struct asm_flg): Delete.
64 (LONGEST_INST): Delete.
66 (struct thumb_opcode): Rename variants->variant.
67 (do_empty): Renamed from do_nop.
68 (ldst_extend): Delete argument hwse. Split code for half-word and
69 signed byte instructions to ...
70 (ldst_extend_v4): ... here.
71 (ld_mode_required_here): Use ldst_extend_v4.
72 (do_ldrd): Simplify now that this is only called for ldrd. No
73 need to test for XScale, which was wrong anyway. Don't reject r12
74 as a target register. Add test that ldrd doesn't update an index
76 (do_pld): Don't allow post-indexed or write-back addressing modes.
77 Adjust call to ldst_extend.
78 (do_adr): Split code for adrl to ...
80 (do_cmp): No need to fold in COND_BIT.
81 (do_ldst): Simplify. Split code for ldrt/strt into do_ldstt. Split
82 code to handle half-word and signed byte instructions to ...
83 (do_ldstv4): ... here.
84 (do_ldstt): New function. Handle load/store with translate.
85 (do_ldmstm): Write feature modification bits directly into
87 (do_fpa_ldst): Remove suffix handling code.
88 (do_fpa_dyadic, do_fpa_monadic, do_fpa_from_reg): Likewise.
89 (do_fpa_ldmstm): Type of access is now held in inst.instruction.
90 (build_arm_ops_hsh): New function.
91 (md_begin): Call it. Don't build the ARM opcode directly.
92 (md_assemble): Simplify ARM instruction handling.
94 2001-12-05 Arati Dikey <aratid@kpit.com>
96 * tc-sh.c (parse_at): Corrected incorrect op->type selection due
99 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
101 * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so
102 that we can tell which operand refers to the insn put in the L
103 container and mark it as such, so that the relocation type can be
106 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
108 * config/tc-mips.c (mips_cpreturn_offset): Better comment.
109 (load_register): Better error message. Cast away signedness
110 mismatches. Add casts needed for varargs.
111 (load_address): Replace checks of HAVE_64BIT_ADDRESS with dbl.
112 Remove superfluous casts.
113 (macro): Cast away signedness mismatches. Remove superfluous casts.
114 (s_cpload): Fix wrong comment.
115 (s_mips_weakext): Standardize output message.
116 (get_number): Likewise.
118 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
120 * config/tc-mips.c (append_insn): Add jump address range overflow
123 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
125 * config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
127 (show): Document -mabi option.
129 2001-12-03 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
131 * config/tc-arm.c (md_parse_option): Only clear cpu part when
132 specifying 'xscale' cpu (don't change the fpu part).
134 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
136 * config/tc-d10v.c (find_opcode): Reject SP operand if
137 OPERAND_NOSP flag is present.
139 2001-12-03 Eric Christopher <echristo@redhat.com>
141 * config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
143 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
145 * config/tc-mips.c (macro_build): Replace BFD_RELOC_MIPS_GPREL
146 by BFD_RELOC_GPREL16.
147 (load_address): Likewise.
149 (md_apply_fix): Likewise. Replace BFD_RELOC_MIPS_GPREL32 by
151 (s_gpword): Replace BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
152 (tc_gen_reloc): Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
153 *config/tc-mips.h: Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
155 2001-11-29 Alexandre Oliva <aoliva@redhat.com>
157 * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
160 * config/tc-d10v.c (find_opcode): Reject non-SP operand if
163 2001-11-29 Arati Dikey <aratid@kpit.com>
165 * tc-sh.c (parse_at): Removed case-sensitivity of index register
168 2001-11-28 Jakub Jelinek <jakub@redhat.com>
170 * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
171 in reloc if it has non-zero addend.
172 * config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
173 * config/tc-sparc.c (md_apply_fix3): Likewise.
175 2001-11-28 Andreas Schwab <schwab@suse.de>
177 * as.c (parse_args): Call md_after_parse_args if defined.
178 * config/tc-ia64.h (md_after_parse_args): Define.
179 * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs.
180 * doc/internals.texi (CPU backend): Document md_after_parse_args.
182 2001-11-23 Jakub Jelinek <jakub@redhat.com>
184 * config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
185 * write.c (adjust_reloc_syms): Don't handle relocs against
186 SEC_MERGE section symbols specially.
187 (fixup_segment): Likewise.
189 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
191 * config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
192 (md_apply_fix3): ...here. Don't prevent the symbol value being
193 subtracted twice from GPREL addends.
194 (tc_gen_reloc): Add the symbol value to a GPREL addend if it was
195 subtracted by the previous function.
197 2001-11-20 Nick Clifton <nickc@cambridge.redhat.com>
199 * config/tc-avr.c (md_apply_fix3): Fix typo introduced by
200 md_apply_fix3 change.
202 2001-11-20 Ben Elliston <bje@redhat.com>
204 * config/tc-m88k.c (md_apply_fix3): Match local variable `val' to
205 usage after md_apply_fix3 cleanups.
207 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
209 * doc/c-mmix.texi: Use texinfo 4 features.
210 (MMIX-mmixal): Fix typo.
212 2001-11-17 Hans-Peter Nilsson <hp@axis.com>
214 * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
217 2001-11-16 Michael Snyder <msnyder@redhat.com>
219 * stabs.c (stabs_generate_asm_lineno): Remember file and line number
220 from one call to the next, and eliminate consecutive duplicates
221 (thereby emitting only one line symbol per source line).
222 * dwarf2dbg.c (dwarf2_gen_line_info): Ditto.
224 2001-11-16 Alan Modra <amodra@bigpond.net.au>
226 * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
228 2001-11-15 H.J. Lu <hjl@gnu.org>
230 * config/tc-hppa.c (md_apply_fix3): Fix a typo.
232 2001-11-15 H.J. Lu <hjl@gnu.org>
234 * config/tc-alpha.c (md_apply_fix3): Fix a typo.
236 2001-11-15 Nick Clifton <nickc@cambridge.redhat.com>
238 * write.c (fixup_segment): Remove references to md_apply_fix and
240 * cgen.c, config/obj-coff.c, config/tc-*.c: Update all occurances
241 of md_apply_fix to md_apply_fix3.
242 Make all md_apply_fix3 functions void.
243 * cgen.h, config/obj-coff.h, tc-*.h: Remove all definitions of
244 MD_APPLY_FIX3 and TC_HANDLE_FX_DONE.
245 * doc/internals.texi: Update references to md_apply_fix3.
246 * tc.h: Update prototype for md_apply_fix3.
248 2001-11-15 Alan Modra <amodra@bigpond.net.au>
250 * config/tc-i386.h (md_end): Define.
251 (i386_elf_emit_arch_note): Declare.
252 (CpuUnknown): Delete.
253 * config/tc-i386.c (default_arch): Constify.
254 (smallest_imm_type): Remove CpuUnknown test.
255 (md_assemble): Don't bother checking cpu_arch_flags non-zero.
256 (i386_elf_emit_arch_note): New function.
258 * po/POTFILES.in: Regenerate.
260 2001-11-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
262 * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
264 2001-11-15 Alan Modra <amodra@bigpond.net.au>
266 * frags.c (frag_grow): Revert last change.
268 * dwarf2dbg.c (get_frag_fix): Align last frag size.
270 * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
272 (md_assemble): Likewise.
274 2001-11-12 Nick Clifton <nickc@cambridge.redhat.com>
276 * frags.c (frag_grow): Use frag_make_room() to grow the
279 2001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
281 * config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
282 value from the addend for fixups against local symbols in
283 SEC_MERGE sections - it was not added in, in the first place.
285 2001-11-11 Timothy Wall <twall@alum.mit.edu>
287 * write.c (relax_segment): Convert symbol address into an octet
288 offset prior to adding to the frag address, which is an octet
289 offset. Add comments to that effect.
290 * config/tc-tic54x.c: Fix bugs causing tests to fail.
291 * config/tc-tic54x.h: Ditch PARAMS macro.
293 2001-11-13 Alan Modra <amodra@bigpond.net.au>
295 * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
296 put in note section. Use sizeof instead of hard-coded constants.
298 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
300 * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
301 (md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
302 OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
303 Sort options a bit more logical.
304 (md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
305 OPTION_MABI only for elf targets.
307 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
309 * config/tc-mips.c (set_at): Add cast needed for varargs.
310 (load_register): Likewise.
311 (macro): Likewise. Some code reformatting.
312 (macro2): Add cast needed for varargs.
313 (mips16_macro): Likewise.
315 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
317 * config/tc-mips.c (md_assemble): Remove superflous casts.
318 (append_insn): Likewise.
319 (mips16_macro_build): Likewise.
321 (mips16_ip): Likewise.
322 (s_cpload): Likewise.
323 (mips_relax_frag): Likewise.
325 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
327 * config/tc-mips.c (mips_abi_level): Move in front of
329 (mips_set_options): Add members gp32, fp32, abi.
330 (file_mips_gp32): New flag.
331 (file_mips_fp32): New flag.
332 (mips_opts): Initialize the new members.
335 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
336 (HAVE_32BIT_FPRS): Likewise.
337 (HAVE_NEWABI): Likewise.
338 (HAVE_64BIT_OBJECTS): Likewise.
339 (md_begin): Likewise. Save default (file) values.
340 (md_parse_option): Use the new values from mips_opts.
341 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
342 possible. Let .set mipsN work together with .set push/pop.
343 Enhance error messages.
344 (mips_elf_final_processing): Use file_mips_* for header processing.
346 2001-11-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
348 * config/tc-avr.c (mcu_types): Update for new devices.
350 2001-11-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
352 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
354 * doc/Makefile.in: Rebuild.
355 * doc/as.texinfo: Do not put man SEEALSO in document;
356 Use @command for commands, @option for options; Reorganize usage
357 to clearly identify target specific options.
359 2001-11-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
361 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
363 2001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
365 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
367 2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
369 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
370 that need the global offset table.
371 (md_apply_fix3): Add code to undo opertions done in fixup_segment
372 triggered by TC_FORCE_RELOCATION.
373 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
374 a call to function tc_s390_force_relocation.
375 (TC_FIX_ADJUSTABLE): Define.
377 2001-11-04 Chris Demetriou <cgd@broadcom.com>
379 * configure.in (mips-*-netbsd*): Add support for target.
380 * configure: Regenerate.
382 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
384 * configure.in (ALL_LINGUAS): Add 'fr'.
385 * configure: Regernate.
386 * po/fr.po: New file. Obtained from the translation project web
389 2001-11-02 Richard Earnshaw <rearnsha@arm.com>
391 * tc-arm.c: Re-arrange prototypes by architecture.
392 (insns): Re-arrange instructions by archtitecture. Pld instruction
394 (tinsns): blx and bkpt are part of ARMv5T.
395 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
396 to do_fpa_*. All callers changed.
398 * tc-arm.c (insns): Add two temporary instructions to handle
401 2001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
403 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
404 for bra/bsr and use frag_variant(), this ensure that the possible
405 16-bit BFD_RELOC_16 will be in the same frag.
407 2001-10-31 Chris Demetriou <cgd@broadcom.com>
409 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
410 PIC code, assume pointers the same size as GPRs.
411 (macro): In M_LA_AB handling for embedded PIC code, support
412 "la $treg,foo-bar($breg)". In load/store handling
413 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
414 which is used by the compiler for switch statements.
415 In load/store double multi-instruction macro handling
416 (label ldd_std) add a comment that no special handling
417 is currently done for embedded PIC.
418 (mips_ip): In 'o' (16-bit offset) case, only accept 16
421 2001-10-31 Richard Earnshaw <rearnsha@arm.com>
423 General cleanup of feature definitions.
424 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
425 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
426 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
427 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
428 (ARM_EXT_V{5,5E}): Synchronize with above.
429 (ARM_ARCH_V*): Define a complete set in terms of above features.
430 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
431 (FPU_FPA_EXT_V[12]): Define.
432 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
434 (FPU_DEFAULT): Default to FPA.
435 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
436 Thumb, this is now ARM_ARCH_V5T.
437 (insns): Rework for new feature defines.
439 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
441 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
443 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
444 * configure: Regenerate.
445 * Makefile.in: Regenerate.
446 * doc/c-sh.texi (SH Options): Added descriptions.
448 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
450 * configure.in: Update for MMIX port.
451 * Makefile.am: Ditto. Regenerate dependencies.
452 * Makefile.in: Regenerate.
453 * configure: Regenerate.
454 * config/tc-mmix.h, config/tc-mmix.c: New files.
455 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
456 * doc/Makefile.in: Regenerate.
457 * doc/all.texi: @set MMIX.
458 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
460 * doc/c-mmix.texi: New file.
462 2001-10-24 Chris Demetriou <cgd@broadcom.com>
464 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
465 these evaluate to true if mips_arch indicates SB-1.
467 2001-10-23 Alan Modra <amodra@bigpond.net.au>
469 * as.c (parse_args): Print the date as well for --version.
471 2001-10-20 Chris Demetriou <cgd@broadcom.com>
473 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
474 SB-1 CPU for consistency.
475 (mips_cpu_info_table): Tweak comment about SB-1.
477 2001-10-20 H.J. Lu <hjl@gnu.org>
479 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
480 (cirrus_parse_offset): Likewise.
482 2001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
484 * config/tc-arm.c: Restore line_comment_chars.
486 2001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
488 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
491 2001-10-18 Hans-Peter Nilsson <hp@bitrange.com>
493 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
494 for undefined symbols.
496 2001-10-17 Chris Demetriou <cgd@broadcom.com>
498 * doc/as.texinfo (MIPS ISA options): Added accidentally
499 omitted "-mips64" option to list of options.
501 2001-10-17 matthew green <mrg@redhat.com>
503 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
504 -m7410, -m7450 and -m7455 options.
506 2001-10-17 Alan Modra <amodra@bigpond.net.au>
508 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
509 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
510 (md_begin): Don't set ppc_size here.
511 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
512 (md_shortopts): Constify.
513 (md_longopts): Likewise.
514 (md_longopts_size): Likewise.
515 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
517 (ppc_machine): Explain why this function is a nop.
519 2001-10-17 Alan Modra <amodra@bigpond.net.au>
521 * bit_fix.h: Comment typo fix.
522 * config/tc-mips.c: Likewise.
523 * config/tc-sh.c: Likewise.
524 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
526 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
527 that autoheader doesn't duplicate config.in entries.
528 (DEFAULT_ARCH): Ditto.
529 * configure: Regenerate.
530 * config.in: Regenerate.
532 2001-10-16 Alan Modra <amodra@bigpond.net.au>
534 From Andrew Pines <apines@cosmodog.com>
535 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
537 2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
538 Hans-Peter Nilsson <hp@bitrange.com>
540 * config/tc-sh.c (shl): Remove.
542 (little): Remove shl handling. Emit error for endian mismatch.
543 (md_show_usage): Add description of -big.
544 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
546 (md_pseudo_table): Add .big.
547 (md_longopts): Add -big.
548 (md_begin): Don't set target_big_endian here.
549 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
550 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
552 * configure.in (endian): Default is big.
553 (sh-*-pe*): Little endian.
554 (cpu_type): Set sh for target sh*.
555 * configure: Regenerate.
557 2001-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
559 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
562 2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
564 * config/tc-arm.c: Replace CONST with const.
566 * cgen.c: Tidy up formatting.
568 2001-10-12 matthew green <mrg@redhat.com>
570 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
571 flags, equivalent to -m7400. New -maltivec to enable AltiVec
572 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
573 64-bit and 32-bit BookE support, respectively. Change -m403 and
574 -m405 to set PPC403 option.
575 (md_show_usage): Adjust for new options.
576 * doc/all.texi: Set PPC.
577 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
578 * doc/c-ppc.texi: New file.
579 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
580 * doc/Makefile.in: Regenerate.
582 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
584 * read.c (s_bad_endr): New function. Issues a warning message
585 about a bad use of the .rept pseudo op.
586 (po_table[]): Add .endr.
587 * read.h: Prototype s_bad_endr.
589 * CONTRIBUTORS: Update contact email address.
591 2001-10-11 Kazu Hirata <kazu@hxi.com>
593 * config/tc-alpha.c: Fix comment typos.
594 * config/tc-cris.c: Likewise.
595 * config/tc-hppa.c: Likewise.
596 * config/tc-i370.c: Likewise.
597 * config/tc-mips.c: Likewise.
598 * config/tc-mn10200.c: Likewise.
599 * config/tc-mn10300.c: Likewise.
600 * config/tc-sh.c: Likewise.
601 * config/tc-tahoe.c: Likewise.
602 * config/tc-v850.c: Likewise.
604 2001-10-11 Kazu Hirata <kazu@hxi.com>
606 * app.c: Fix comment typos.
607 * bit_fix.h: Likewise.
609 * itbl-ops.c: Likewise.
611 2001-10-11 Nick Clifton <nickc@cambridge.redhat.com>
613 * input-file.c: Include safe-ctype.h.
614 (input_file_open): Use ISSPACE instead of isspace.
616 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
618 * config/tc-mips.c (mips_cpreturn_offset): New variable.
619 (mips_cpreturn_register): Likewise.
620 (mips_gp_register): Likewise.
621 (s_cpsetup): New function prototype.
622 (s_cplocal): Likewise.
623 (s_cpreturn): Likewise.
624 (s_gpvalue): Likewise.
625 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
627 (macro): Don't warn about .cprestore for NewABI.
628 (md_pcrel_from): Code cleanup.
629 (mips_force_relocation): Force output of some NewABI relocations even
630 without a defined symbol.
631 (s_cpload): Ignore .cpload for NewABI.
632 (s_cpsetup): Handle .cpsetup.
633 (s_cplocal): Handle .cplocal.
634 (s_cprestore): Ignore .cprestore for NewABI.
635 (s_cpreturn): Handle .cpreturn.
636 (s_gpvalue): Handle .gpvalue.
637 (s_cpadd): Ignore .cpadd for NewABI.
638 (nopic_need_relax): Take g_switch_value into account as gp
640 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
642 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
644 * config/tc-mips.c (my_getSmallParser): New function prototype.
645 (small_ex_type): Named this enum, more return values for
646 my_getSmallExpression.
647 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
648 triple relocations. Protect some parts with ifdef OBJ_ELF.
649 (percent_op_match): New struct, lookup table for %some_reloc().
650 (my_getSmallParser): New function, parses nested percent_ops also.
651 (my_getSmallExpression): Rewite to support nested percent_ops.
653 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
656 (load_address): Support both 32- and 64-bit addresses.
657 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
658 (macro2): Call load_address correctly.
660 2001-10-09 Christian Groessler <cpg@aladdin.de>
662 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
663 since z8k-opc.h now uses the PARAMS macro.
665 2001-10-09 Aldy Hernandez <aldyh@redhat.com>
667 * config/tc-arm.c: Change MAVERIK to MAVERICK.
669 2001-10-09 Alan Modra <amodra@bigpond.net.au>
671 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
673 (obj_elf_change_section): Rename "group" to "group_name".
674 (obj_elf_section): Likewise.
675 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
676 first member section; Instead use elf_next_in_group.
678 2001-10-09 Alan Modra <amodra@bigpond.net.au>
680 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
681 Set elf_section_data group from it. Warn if group name changed.
682 (obj_elf_parse_section_letters): Parse 'G' too.
683 (obj_elf_section): Parse group name.
684 (struct group_list): New.
685 (build_group_lists): New function.
686 (elf_frob_file): Create SEC_GROUP section(s).
688 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
691 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
693 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
695 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
696 (cirrus_regtype): New enum.
697 (LONGEST_INST): Change to 10.
704 (insns): Add cirrus dsp instructions.
705 (ARM_EXT_MAVERIKSC_REG): New.
706 (cirrus_register): New.
707 (cirrus_mvf_register): New.
708 (cirrus_mvd_register): New.
709 (cirrus_mvfx_register): New.
710 (cirrus_mvdx_register): New.
711 (cirrus_mvax_register): New.
712 (ARM_EXT_MAVERIKsc_register): New.
713 (reg_table): Add cirrus registers.
714 (cirrus_valid_reg): New.
715 (cirrus_reg_required_here): New.
716 (do_c_binops_1): New.
717 (do_c_binops_2): New.
718 (do_c_binops_3): New.
719 (do_c_triple_4): New.
720 (do_c_triple_5): New.
735 (cirrus_parse_offset): New.
737 (md_parse_option): Add arm9e.
738 (md_show_usage): Same.
740 2001-10-08 Tom Rix <trix@redhat.com>
742 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
744 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
746 2001-10-07 Alan Modra <amodra@bigpond.net.au>
748 * config/obj-elf.c: Standardize error/warning messages - don't
749 capitalise, no final period or newline, don't say "ignoring" for
750 as_bad messages. In some cases, change the wording to that used
751 elsewhere for similar messages.
752 (obj_elf_section_name): New function, split out from ..
753 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
754 entsize not specified.
756 2001-10-05 Jakub Jelinek <jakub@redhat.com>
758 * doc/as.texinfo: Document M and S ELF section flags.
760 2001-10-05 Alan Modra <amodra@bigpond.net.au>
762 * subsegs.c (subseg_text_p): Return 0 for absolute section.
763 * read.c (do_align): If in absolute section, warn about and ignore
764 non-zero fill pattern.
766 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
768 * config/tc-mn10300.c (tc_gen_reloc): Don't free
769 reloc->sym_ptr_ptr if it's not allocated.
771 2001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
773 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
775 (prev_insn_fixp): Likewise.
776 (append_insn): Changed prototype to accept a relocation pointer.
777 (imm_reloc): Make it an array.
778 (offset_reloc): Likewise.
779 (md_assemble): Handle triple relocations.
780 (append_insn): Likewise. Add handling for some NewABI relocations.
781 (mips_no_prev_insn): Handle triple relocations.
782 (macro_build): Likewise. Add handling for some NewABI relocations.
783 Move handling for the 'u' case to append_insn().
784 (mips16_macro_build): Handle triple relocations.
785 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
787 (mips_ip): Handle triple relocations.
788 (mips16_ip): Likewise.
789 (mips_force_relocation): Force handling of triple relocations
790 without symbols for NewABI.
791 (md_apply_fix): Add handling for some NewABI relocations.
793 2001-10-05 Alan Modra <amodra@bigpond.net.au>
795 * config/tc-i386.c (parse_register): If not producing code for
796 x86_64, reject x86_64 register name matches.
797 (md_assemble): Remove now redundant check for x86_64 regs.
799 2001-10-04 Alan Modra <amodra@bigpond.net.au>
801 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
802 as BFD_DEFAULT_TARGET_SIZE.
804 (ppc_is_toc_sym): Likewise.
805 (md_apply_fix3): Likewise.
807 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
809 * config/tc-mips.c (mips_64): Remove.
810 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
812 (mips_abi_level, mips_abi): New enum.
813 (mips_32bit_abi): Remove.
814 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
815 (HAVE_NEWABI): New define.
816 (HAVE_64BIT_OBJECTS): New define.
817 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
818 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
819 (support_64bit_objects): New prototype.
820 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
821 .reginfo section for n32, use .MIPS.options instead.
822 (support_64bit_objects): New function, code from md_parse_option.
823 (md_longopts): Add -n32 option.
824 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
825 Add -n32 option. Protect with OBJ_ELF.
826 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
827 (mips_elf_final_processing): Likewise. Don't write .reginfo section
828 for n32, use .MIPS.options instead.
830 2001-10-03 Alan Modra <amodra@bigpond.net.au>
832 * po/POTFILES.in: Regenerate.
833 * configure: Regenerate.
835 2001-10-02 Alan Modra <amodra@bigpond.net.au>
837 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
838 bits if target is 64 bit.
840 * doc/as.texinfo (listing): Fix typo.
842 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
844 * Makefile.am (Makefile): Depend on bfd/configure.in.
846 * Makefile.in: Regenerate.
848 2001-09-30 H.J. Lu <hjl@gnu.org>
850 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
851 and "ams" for compatibility.
853 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
855 * config/tc-sh.c (md_pcrel_from_section): Transformed from
856 md_pcrel_from. Handle pc-relativeness against link-time
857 symbol. Handle relativeness to elsewhere than the fixup.
858 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
859 (md_pcrel_from_section): Prototype.
861 * Makefile.am: Update dependencies with "make dep-am".
862 * Makefile.in: Regenerate.
864 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
866 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
867 (print_opcode_format, skip_whites): Likewise.
868 (convert_branch, m68hc11_new_insn): Likewise.
869 (build_dbranch_insn, build_indexed_byte): Likewise.
870 (build_reg_mode, find, find_opcode): Likewise.
871 (print_insn_format): Fix call to print_opcode_format.
872 (md_assemble): Fix call to build_dbranch_insn.
874 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
876 * config/tc-arm.c: Add missing prototypes.
878 2001-09-26 Jeff Johnston <jjohnstn@redhat.com>
880 * input-file.c (input_file_open): When reading the
881 first line looking for #NO_APP, prepare for the possibility
882 of finding #APP instead. Also fix algorithm to allow
883 white-space to follow either #NO_APP or #APP directives.
885 2001-09-25 Geoff Berry <geoff.berry@bops.com>
887 * listing.c (buffer_line): Don't write past the end of `line' when
890 2001-09-25 Alexandre Oliva <aoliva@redhat.com>
892 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
893 relocation for differences between symbols in a section other
894 than the one in which the difference is to be placed; apply
895 the relocation instead.
897 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
899 * config/tc-arc.c: Add missing prototype.
900 (md_atof): Change type to int. Add missing prototype.
901 * config/tc-arc.h: Prototype exported functions.
903 2001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
905 * as.c: Add missing function prototype.
906 * config/obj-aout.c: Fix compile time warning.
908 2001-09-21 Bruno Haible <haible@clisp.cons.org>
910 * config/tc-openrisc.c: Don't include <ctype.h>.
912 2001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
914 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
916 2001-09-19 Alan Modra <amodra@bigpond.net.au>
918 * config/tc-i370.c: Fix typo in last change.
920 2001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
922 * doc/as.texinfo (Symbol Names): Improve documentation on local
923 labels and add documenation about dollar labels.
925 2001-09-18 Bruno Haible <haible@clisp.cons.org>
927 * as.h: Don't include <ctype.h>.
928 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
929 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
930 (atof_generic): Use ISDIGIT instead of isdigit.
931 * config/m68k-parse.y: Include "safe-ctype.h".
932 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
933 * config/obj-elf.c: Include "safe-ctype.h".
934 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
935 * config/obj-vms.c: Include "safe-ctype.h".
936 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
937 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
938 instead of isupper/islower/toupper/tolower.
939 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
940 (insert_sreg): Use TOUPPER instead of islower/toupper.
941 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
942 isalpha/isalnum/isupper/tolower.
943 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
945 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
946 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
947 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
948 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
949 (arc_extoper): Use TOLOWER instead of isupper/tolower.
950 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
951 (arm_psr_parse): Use ISALPHA instead of isalpha.
952 (accum0_required_here): Use ISALNUM instead of isalnum.
953 (do_ldrd): Use ISSPACE instead of isspace.
954 (decode_shift): Use ISALPHA instead of isalpha.
955 (insert_reg): Use TOUPPER instead of islower/toupper.
956 (arm_reg_parse): Use ISALPHA instead of isalpha.
957 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
958 isalnum/ispunct/tolower.
959 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
960 (md_parse_option): Use TOLOWER instead of tolower.
961 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
962 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
963 (cris_process_instruction): Use ISLOWER instead of islower.
964 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
965 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
966 (get_flags): Use ISSPACE instead of isspace.
967 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
968 (do_assemble): Use TOLOWER instead of tolower.
969 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
970 (do_assemble): Use TOLOWER instead of tolower.
971 (d30v_start_line): Use ISSPACE instead of isspace.
972 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
973 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
974 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
975 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
976 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
977 (start_label): Use ISALPHA instead of isalpha.
978 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
979 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
980 isupper/islower/tolower.
981 (pa_parse_number): Use ISDIGIT instead of isdigit.
982 (pa_chk_field_selector): Use TOLOWER instead of tolower.
983 (pa_stringer): Use ISDIGIT instead of isdigit.
984 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
985 (register_name): Use ISALPHA instead of isalpha.
986 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
987 isalnum/islower/tolower.
988 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
990 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
992 (md_assemble): Use ISSPACE instead of isspace.
993 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
994 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
995 instead of isdigit/islower/isupper/tolower/isalpha.
996 (output_invalid): Use ISPRINT instead of isprint.
997 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
998 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
999 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
1000 (get_args): Use ISALNUM instead of isalnum.
1001 * config/tc-ia64.c: Include "safe-ctype.h".
1002 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1003 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
1004 (ia64_parse_name): Likewise.
1005 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
1006 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
1007 instead of isspace/isalnum/isupper/tolower.
1008 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
1009 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
1010 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
1011 (mklower_table): Remove variable.
1012 (mklower): Remove macro.
1013 (insert_reg): Use TOUPPER instead of islower/toupper.
1014 (md_begin): Remove initialization of mklower_table.
1015 (s_reg): Use ISALNUM instead of isalnum.
1016 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
1017 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
1018 (build_mri_control_operand): Use TOLOWER instead of tolower.
1019 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
1020 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
1021 (md_assemble): Use ISSPACE instead of isspace.
1022 (get_imm16): Use ISALNUM instead of isalnum.
1023 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
1024 isdigit/isupper/tolower.
1025 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
1026 instead of isalpha/isupper/tolower.
1027 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
1028 isdigit/islower/isupper.
1029 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
1030 (mcore_s_section): Use ISSPACE instead of isspace.
1031 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
1032 isspace/tolower/isalnum.
1033 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
1034 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
1035 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
1037 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
1038 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
1039 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1040 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
1042 (tc_get_register): Likewise.
1043 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
1044 (s_mips_ent): Use ISDIGIT instead of isdigit.
1045 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
1046 (md_assemble): Use ISSPACE instead of isspace.
1047 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
1048 (md_assemble): Use ISSPACE instead of isspace.
1049 * config/tc-ns32k.c: Don't include <ctype.h>.
1050 * config/tc-pdp11.c: Include "safe-ctype.h".
1051 (mklower): Remove function.
1052 (parse_reg): Use TOLOWER instead of mklower.
1053 * config/tc-pj.c: Include "safe-ctype.h".
1054 (md_assemble): Use ISSPACE instead of isspace.
1055 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
1056 (register_name): Use ISALPHA instead of isalpha.
1057 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
1058 isalnum/islower/tolower.
1059 (md_assemble): Use ISSPACE instead of isspace.
1060 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
1062 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
1063 (register_name): Use ISALPHA instead of isalpha.
1064 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
1065 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
1067 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
1068 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
1069 isalnum/islower/tolower.
1070 (IDENT_CHAR): Use ISALNUM instead of isalnum.
1071 (parse_reg): Use TOLOWER instead of tolower.
1072 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
1073 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
1074 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1075 (parse_keyword_arg): Use ISALNUM instead of isalnum.
1076 * config/tc-tahoe.c: Include "safe-ctype.h".
1077 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
1078 (tip_op): Use TOLOWER instead of isupper/tolower.
1079 * config/tc-tic30.c: Include "safe-ctype.h".
1080 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
1081 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
1082 (tic30_operand): Use TOLOWER instead of tolower.
1083 (tic30_find_parallel_insn): Likewise.
1084 (output_invalid): Use ISPRINT instead of isprint.
1085 * config/tc-tic54x.c: Include "safe-ctype.h".
1086 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
1087 (lookup_version): Use TOUPPER instead of toupper.
1088 (tic54x_var): Use ISALPHA instead of isalpha.
1089 (tic54x_mlib): Use ISSPACE instead of isspace.
1090 (subsym_iscons): Use TOUPPER instead of toupper.
1091 (get_operands): Use ISSPACE instead of isspace.
1092 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1093 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
1094 (next_line_shows_parallel): Use ISSPACE instead of isspace.
1095 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
1096 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
1097 ISSPACE instead of isspace.
1098 * config/tc-tic80.c: Include "safe-ctype.h".
1099 (md_assemble): Use ISSPACE instead of isspace.
1100 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1101 (system_register_name): Use ISDIGIT instead of isdigit.
1102 (md_assemble): Use ISSPACE instead of isspace.
1103 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
1104 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
1105 isupper/tolower/isdigit.
1106 (vip_op): Use TOLOWER instead of isupper/tolower.
1107 * config/tc-w65.c: Don't include <ctype.h>.
1108 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
1109 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
1110 (whatreg): Use ISDIGIT instead of isdigit.
1111 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
1112 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
1113 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
1114 (integer_constant): Use ISALNUM/TOUPPER instead of
1115 isalnum/islower/toupper.
1116 (operand): Use TOLOWER instead of isupper/tolower.
1117 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
1118 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
1120 (process_assigns, whatcond): Use TOUPPER instead of toupper.
1121 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
1122 (main): For gettext, also set the LC_CTYPE locate facet.
1123 * hash.c: Include "safe-ctype.h".
1124 (main): Use TOLOWER instead of isupper/tolower.
1125 * itbl-lex.l: Don't include <ctype.h>.
1126 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
1127 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
1128 omit non-ASCII characters.
1129 (debugging_pseudo): Use ISSPACE instead of isspace.
1130 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
1131 (buffer_and_nest): Use ISALNUM instead of isalnum.
1132 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
1133 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
1134 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
1135 instead of isalnum/isdigit/isupper/isalpha.
1136 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
1137 of isalpha/isalnum/isupper/tolower.
1138 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
1139 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
1140 isupper/tolower/isdigit.
1141 (s_mri_common): Use ISDIGIT instead of isdigit.
1142 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
1143 (s_float_space): Use ISALPHA instead of isalpha.
1144 (ignore_rest_of_line): Use ISPRINT instead of isprint.
1145 (float_cons): Use ISALPHA instead of isalpha.
1146 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
1148 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
1149 (save_symbol_name): Use ISLOWER/TOUPPER instead of
1151 (symbol_find_base): Use TOUPPER instead of islower/toupper.
1152 (decode_local_label_name): Use ISDIGIT instead of isdigit.
1154 2001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1156 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
1157 in 64 bit mode and make format "e" work.
1159 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1161 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
1163 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
1164 var to ensure bfd_alloc arg is the right type.
1165 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
1168 * config/obj-coff.c: Replace calls to bfd_write with calls to
1169 bfd_bwrite. Cast args of bfd_seek.
1171 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
1174 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
1176 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
1179 2001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
1181 * config/tc-sh.h (sh_force_relocation): Prototype.
1182 (struct fix): Forward declare.
1183 * config/tc-sh.c (type sh_operand_info): Move to top of file.
1184 (cons, s_align_bytes): Remove old-type declarations.
1185 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
1186 get_operands, get_specific, insert, build_relax,
1187 insert_loop_bounds, build_Mytes): Prototype.
1188 (little): Make static. Prototype.
1189 (check, tc_Nout_fix_to_chars): Delete unused functions.
1191 2001-09-14 Eric Christopher <echristo@redhat.com>
1193 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
1196 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1198 * configure.in: Add arm-openbsd target.
1199 * configure: Regenerate.
1201 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1203 * configure.in: Change machine triplets from mips-*-linux-gnu* to
1206 2001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1208 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
1210 2001-09-11 Richard Henderson <rth@redhat.com>
1212 * config/tc-alpha.c (alpha_elf_section_letter): New.
1213 (alpha_elf_section_flags): New.
1214 * config/tc-alpha.h (md_elf_section_letter): New.
1215 (md_elf_section_flags): New.
1216 * config/tc-ia64.c (ia64_elf_section_letter): New.
1217 * config/tc-ia64.h (md_elf_section_letter): New.
1219 2001-09-11 Jakub Jelinek <jakub@redhat.com>
1221 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
1222 of 'm', 'S' instead of 's'. Update bad_msg.
1223 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
1224 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
1226 2001-09-09 Alan Modra <amodra@bigpond.net.au>
1228 * expr.c (expr): Move code setting "retval" to the end of the loop,
1229 and rearrange for efficiency. For "PIC code" subtraction, use
1230 "rightseg" rather than recalculating. For "symbol OP symbol"
1231 subtract, set "retval" to absolute_section if symbols in same
1233 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
1234 O_symbol. Simplify a +/- b code. Allow equality and non-equality
1235 comparisons on symbols from any section. Allow other comparison
1236 operators as for subtraction.
1237 (symbol_equated_reloc_p): New predicate function.
1238 * symbols.h (symbol_equated_reloc_p): Declare.
1239 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
1240 for expression syms is set correctly.
1241 (adjust_reloc_syms): Use symbol_equated_reloc_p.
1242 (write_relocs): Likewise.
1243 (write_object_file): Likewise.
1244 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
1245 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
1246 of a complex expression when setting up frag_var.
1248 2001-09-07 Richard Henderson <rth@redhat.com>
1250 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
1251 require_seq and allow_seq. Let !literal omit the sequence number.
1252 (tokenize_arguments): Reject sequence numbers of !allow_seq.
1254 2001-09-08 Jakub Jelinek <jakub@redhat.com>
1256 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
1257 section symbols the same way as externs.
1259 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1261 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
1264 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1266 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
1267 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
1268 PIC, BFD_RELOC_16_PCREL for the rest.
1269 (mips_ip): Likewise.
1270 (md_pcrel_from): return the right offset for the differently shifted
1272 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
1274 2001-09-05 Richard Henderson <rth@redhat.com>
1276 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
1277 (pseudo_func): Add @iplt.
1278 (pseudo_opcode): Add data16 and data16.ua.
1279 (md_begin): Set iplt pseudo.
1280 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
1282 2001-09-04 Richard Henderson <rth@redhat.com>
1284 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
1285 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
1286 (alpha_macros): Remove occurrences of same.
1287 (O_lituse_addr, O_gprel): New.
1288 (DUMMY_RELOC_LITUSE_*): New.
1289 (s_alpha_ucons, s_alpha_arch): Prototype.
1290 (alpha_reloc_op): Construct elements via DEF macro.
1291 (ALPHA_RELOC_SEQUENCE_OK): Remove.
1292 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
1293 members to not be literal specific.
1294 (next_sequence_num): New.
1295 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
1296 added/removed BFD relocations.
1297 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1298 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
1299 (tokenize_arguments): Parse ! relocations properly.
1300 (find_macro_match): Delete unused macro argument types.
1301 (assemble_insn): Add reloc parameter; emit that instead of the
1302 default as appropriate.
1303 (get_alpha_reloc_tag): New. Split from ...
1304 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
1305 (assemble_tokens): Don't search macros if user relocation present.
1306 Copy reloc sequence number to insn struct.
1307 (emit_ldgp): Remove user reloc handling.
1308 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
1309 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
1310 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
1311 * config/tc-alpha.h (tc_adjust_symtab): Always define.
1312 (struct alpha_fix_tag): Name members less literal specific.
1314 Tue Sep 4 20:01:19 2001 Jeffrey A Law (law@cygnus.com)
1316 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
1317 address of two symbols in different sections.
1319 2001-08-31 Eric Christopher <echristo@redhat.com>
1320 Jason Eckhardt <jle@redhat.com>
1322 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
1323 5kc, and 20kc. Clean up old entries.
1325 Fri Aug 31 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1326 Jeff Law <law@redhat.com>
1328 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1329 offset match H8 ELF spec.
1330 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1331 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1333 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1334 (build_bytes): Mark fixups for PCrel branches as signed. For
1335 OBJ_ELF, make sure the reloc's offset points to the first byte
1337 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1338 * tc-h8300.h (relocation mappings): Add.
1340 Thu Aug 30 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1342 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1343 define for BFD_ASSEMBLER.
1344 (tc_reloc_mangle): Likewise.
1345 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1347 Wed Aug 29 12:49:58 2001 Jeffrey A Law (law@cygnus.com)
1349 * config/tc-h8300.c (h8300hmode): Record the machine type
1350 if BFD_ASSEMBLER is defined.
1351 (h8300smode, md_begin): Similarly.
1353 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1355 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1356 default from coff to elf.
1357 * configure: Regenerate.
1359 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1361 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1362 assorted coff relocations to the corresponding elf relocations.
1363 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1365 * configure.in: Add case for h8300-*-elf.
1366 * configure: Regenerate.
1368 Wed Aug 29 12:05:13 2001 J"orn Rennecke <amylaar@redhat.com>
1370 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
1371 documentation to reflect reality.
1373 2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1375 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
1376 (macro): Reflect change to MAX_GPREL_OFFSET.
1378 2001-08-27 Torbjorn Granlund <tege@swox.com>
1379 Staffan Ulfberg <staffanu@swox.se>
1380 Linus Nordberg <linus@swox.se>
1381 Alan Modra <amodra@bigpond.net.au>
1383 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1384 * configure: Regenerate.
1385 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1386 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1387 (md_assemble): Use them.
1388 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1389 (md_pseudo_table): Add "llong", "quad".
1390 (md_parse_option): Match default_cpu of powerpc*.
1391 (ppc_arch): Likewise.
1392 (ppc_subseg_align): Only for OBJ_XCOFF.
1393 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1394 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1395 (ppc_insert_operand): Don't bother testing 'file' before calling
1396 as_bad_where. Use as_bad_where for operand->insert errors.
1397 (mapping): Add ELF64 relocation modifiers.
1398 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1399 expressions with abs_symbol.
1400 (ppc_elf_cons): Correct offset for little endian targets.
1401 (ppc_elf_frob_symbol): New.
1402 (md_assemble): Add support for 64 bit ELF relocs.
1403 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1404 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1405 ".toc" section for 64 bit ELF.
1406 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1407 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1408 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1409 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1410 Expand on comments, error message. Add support for 64 bit relocs,
1411 and use PPC_HI etc. macros.
1412 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1413 (HANDLE_ALIGN): Define to generate nops in code sections rather
1415 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1416 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1417 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1418 (ppc_fix_adjustable): Declare.
1419 (tc_frob_symbol): Define.
1420 (ppc_elf_frob_symbol): Declare.
1422 2001-08-26 Andreas Jaeger <aj@suse.de>
1424 * config/tc-s390.c: Add missing prototypes
1425 (md_gather_operands): Make static.
1427 2001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1429 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1430 allowed value, not the word beyond maximum.
1431 * config/tc-mips.c (macro_build_lui): Code cleanup.
1432 (macro): Reflect change to MAX_GPREL_OFFSET.
1433 (mips_ip): Check explicitly against S_EX_NONE.
1434 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1435 (md_apply_fix): Code cleanup.
1437 2001-08-24 Andreas Jaeger <aj@suse.de>
1439 * config/tc-ppc.h: Fix prototype declaration.
1441 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1443 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1444 * config/obj-elf.c (obj_elf_size): When size is constant, free
1445 and clear symbol_get_obj(sym)->size if any.
1447 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1449 * config/tc-mips.c (md_begin): Warn about incompatibility between
1450 -march=FOO and -mipsN option, continue with default ISA.
1452 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1454 * config/tc-mips.c (md_parse_option): #ifdef the
1455 traditional/non-traditional names as it is done in mips_target_format.
1457 2001-08-20 Richard Henderson <rth@redhat.com>
1459 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1460 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1461 use seg parameter instead of now_seg.
1463 2001-08-18 H.J. Lu <hjl@gnu.org>
1465 * config/tc-mips.c (show): Add the missing prototype.
1467 2001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1469 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1471 (mips_ip): Use the new return values instead of characters. Add
1472 support for %higher and %highest.
1475 (my_getSmallExpression): Make parsing case insensitive and more
1476 reliable. Add support for %higher and %highest. Further support to
1477 parse %gprel and %neg is implemented but currently deactivated.
1479 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1481 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1482 (ecoff_build_symbols): Likewise.
1483 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1485 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1487 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1488 for n32 ABI if appropriate.
1490 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1492 * config/tc-mips.c (cons_fix_new_mips): Remove.
1493 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1494 (cons_fix_new_mips): Remove.
1496 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
1498 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1499 a label, not a hex constant.
1501 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1503 * config/tc-v850.h: Add missing prototypes.
1505 2001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1507 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1510 2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1512 * config/tc-sparc.c (cons_fix_new_sparc): Move
1513 `sparc_no_align_cons = 0;' to...
1514 (s_uacons): ...here so that sparc_no_align_cons will get
1517 2001-08-11 Kazu Hirata <kazu@hxi.com>
1519 * config/tc-mips.c: Fix a comment typo.
1521 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1523 * config/tc-mips.c (move_register): New function.
1524 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1525 (mips_ip): Likewise.
1526 (macro2): Use move_register rather than macro_build for moves.
1527 (mips16_macro): Likewise.
1528 (macro): Likewise. Handle M_MOVE.
1530 2001-08-10 Andreas Jaeger <aj@suse.de>
1532 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1534 * configure: Regenerate.
1536 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1538 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1539 Comment indentation of #pragma.
1540 * macro.c (alloca): Likewise.
1542 * config/tc-ppc.c: Revert 2001-08-08.
1544 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1546 * symbols.c: Add missing prototypes.
1547 * config/e-i386elf.c: Likewise.
1548 * config/e-i386coff.c: Likewise.
1549 * config/e-i386aout.c: Likewise.
1550 * config/obj-coff.c: Likewise.
1551 (def_symbol_in_progress, stack): Move definition.
1552 * config/obj-elf.c: Add missing prototypes.
1553 (obj_elf_change_section): Make static.
1554 (obj_elf_parse_section_letters): Likewise.
1555 (obj_elf_section_word): Likewise.
1556 (obj_elf_section_type): Likewise.
1558 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1560 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
1561 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1562 determining reloc type with code reading operands->reloc field.
1564 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1566 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1567 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1568 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1569 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1571 * output-file.c (output_file_create): Don't try to open a second
1572 time as it's unnecessary. FOPEN_W was undefined too.
1574 2001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1576 * config/tc-mips.c (macro_build): Replace magic constants by defines.
1577 (mips_ip): Likewise. Typo.
1579 2001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1581 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1583 (RELAX_ENCODE): Replace bfd_vma by valueT.
1584 (load_address): Formatting.
1585 (macro): Likewise. Code cleanup. Typo.
1586 (macro2): Formatting.
1587 (md_parse_option): Typo.
1588 (s_mipsset): Reorder cases to look nicer.
1589 (md_estimate_size_before_relax): Formatting. Code cleanup.
1590 (mips_elf_final_processing): Check against NULL instead of 0.
1591 (md_obj_end): Remove ugly `' in message string.
1592 (s_mips_ent): Remove ugly `' in message string.
1594 2001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1596 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1597 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1598 mutually exclusive (if they are different).
1599 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1602 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
1604 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1607 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
1609 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1610 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1611 (md_long_opts): Add -mfp32 option.
1612 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1613 (md_show_usage): Show usage for -mfp32 and -mgp32.
1614 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1615 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1616 (HAVE_32BIT_ADDRESSES): New macro.
1617 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1618 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1619 (s_cprestore, s_cpadd): Likewise.
1620 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1621 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1622 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1623 to determine the width of addresses in load, store and jump macros.
1624 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1625 used in set instructions; do not check the address size for them.
1626 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1627 unaligned load and store macros.
1628 (mips_ip): Use the new macros to check the width of a register when
1629 processing float constants. Force a constant into memory if it is
1630 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1631 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1632 than mips_gp32 to select synthetic instructions.
1633 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1634 synthetic instructions.
1636 2001-08-01 Christian Groessler <cpg@aladdin.de>
1638 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1639 "rh", "rr", "rq", or "sp" then don't automatically assume
1640 it's a register name. Check whether there is a number
1643 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1645 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1646 Don't allocate more space than necessary for the input line copy.
1648 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1650 * read.c: Standardize error/warning messages - don't capitalise, no
1651 final period or newline, don't say "ignored" or "zero assumed" for
1652 as_bad messages. In some cases, change the wording to that used
1653 elsewhere for similar messages.
1656 * atof-generic.c: Likewise.
1659 * depend.c: Likewise.
1660 * dwarf2dbg.c: Likewise.
1661 * ecoff.c: Likewise.
1663 * frags.c: Likewise.
1664 * input-file.c: Likewise.
1665 * input-scrub.c: Likewise.
1666 * listing.c: Likewise.
1667 * output-file.c: Likewise.
1668 * stabs.c: Likewise.
1669 * subsegs.c: Likewise.
1670 * symbols.c: Likewise.
1671 * write.c: Likewise.
1672 * ecoff.c (ecoff_directive_end): Test for missing name by
1673 comparing input line pointers rather than reading string.
1674 (ecoff_directive_ent): Likewise.
1675 * read.c (s_set): Likewise.
1676 (s_align): Report a warning rather than an error for
1677 alignment too large.
1678 (s_comm): Check for missing symbol name.
1679 (s_lcomm_internal): Likewise.
1681 (s_globl): Use is_end_of_line instead of looking for '\n'.
1682 (s_lcomm_internal): Likewise.
1683 (ignore_rest_of_line): Report a warning rather than an error.
1685 2001-07-31 Geoffrey Keating <geoffk@redhat.com>
1687 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1688 any kind of relocation against a not-loaded section.
1690 2001-07-30 Alan Modra <amodra@bigpond.net.au>
1692 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1693 to include '@' in symbol names when parsing versioned symbols
1694 rather than calling get_symbol_end multiple times.
1695 * config/tc-i370.c (register_name): Format fixes. Don't call
1696 get_symbol_end after parsing number.
1697 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1698 code out of conditional.
1699 (address_register_name): Likewise.
1700 (other_register_name): Likewise.
1701 * config/tc-mn10300.c (r_register_name): Likewise.
1702 (xr_register_name): Likewise.
1703 (data_register_name): Likewise.
1704 (address_register_name): Likewise.
1705 (other_register_name): Likewise.
1706 * config/tc-ppc.c (register_name): Likewise.
1707 * config/tc-s390.c (register_name): Likewise.
1709 2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1711 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1712 and bra relax: update fragP->fr_fix after the fixup.
1714 2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1716 * read.c (s_set): Check for missing symbol name.
1718 2001-07-26 Alan Modra <amodra@bigpond.net.au>
1720 * write.c (relax_segment <rs_space>): Account for fr_fix.
1722 2001-07-25 H.J. Lu <hjl@gnu.org>
1724 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1725 we treat weak like extern only for ELF.
1726 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1727 symbols only for ELF.
1729 2001-07-25 Chris Demetriou <cgd@broadcom.com>
1731 * config/tc-mips.c: Fix spelling error in comment.
1733 2001-07-25 Dave Brolley <brolley@redhat.com>
1735 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1736 (IS_PARALLEL_SEPARATOR): New macro.
1737 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1738 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1739 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1740 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1743 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1745 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1746 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1747 Update dependencies with "make dep-am".
1748 * Makefile.in: Regenerate.
1749 * doc/Makefile.in: Regenerate.
1751 2001-07-23 Kazu Hirata <kazu@hxi.com>
1753 * config/tc-alpha.h: Fix formatting.
1754 * config/tc-arc.c: Likewise.
1755 * config/tc-d10v.h: Likewise.
1756 * config/tc-hppa.c: Likewise.
1757 * config/tc-i370.c: Likewise.
1758 * config/tc-i386.h: Likewise.
1759 * config/tc-i960.h: Likewise.
1760 * config/tc-ia64.c: Likewise.
1761 * config/tc-ia64.h: Likewise.
1762 * config/tc-m32r.c: Likewise.
1763 * config/tc-m68k.c: Likewise.
1764 * config/tc-m88k.c: Likewise.
1765 * config/tc-ns32k.c: Likewise.
1766 * config/tc-pdp11.c: Likewise.
1767 * config/tc-pj.h: Likewise.
1768 * config/tc-s390.c: Likewise.
1769 * config/tc-sparc.c: Likewise.
1770 * config/tc-sparc.h: Likewise.
1771 * config/tc-tic80.c: Likewise.
1772 * config/tc-w65.h: Likewise.
1774 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1776 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1777 symbols specially. Always resolve, adding fr_address to value.
1778 * write.c (write_object_file): Don't add fr_address to sym values.
1779 (relax_frag): Likewise.
1780 (relax_segment): Likewise.
1781 * config/obj-ieee.c (do_symbols): Likewise.
1782 * config/tc-cris.c (md_convert_frag): Likewise.
1783 * config/tc-fr30.c (md_convert_frag): Likewise.
1784 * config/tc-i386.c (md_convert_frag): Likewise.
1785 * config/tc-m32r.c (md_convert_frag): Likewise.
1786 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1787 * config/tc-mcore.c (md_convert_frag): Likewise.
1788 * config/tc-mips.c (mips16_extended_frag): Likewise.
1789 * config/tc-ns32k.c (md_convert_frag): Likewise.
1790 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1791 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1792 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1793 (md_relax_table): Remove first four entries. Format.
1794 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1795 setting fr_var. Simplify byte branch checks.
1797 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1799 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1800 "isbranch" param as all calls have it set.
1801 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1802 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1803 strcasecmp in "nullify" var.
1804 (pa_parse_neg_add_cmpltr): Likewise.
1805 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1806 functions. Don't print wrong conditions in error messages.
1808 2001-07-23 Andreas Jaeger <aj@suse.de>
1810 * config/tc-s390.c (s390_force_relocation): Removed.
1812 * config/tc-s390.h: Remove double declaration of
1813 TC_FORCE_RELOCATION.
1815 2001-07-22 H.J. Lu <hjl@gnu.org>
1817 * config/tc-mips.c (s_mips_end): Remove unused variables.
1818 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1820 2001-07-17 Andreas Schwab <schwab@suse.de>
1822 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1824 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1826 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1828 2001-07-17 matthew green <mrg@eterna.com.au>
1830 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1832 (line_comment_chars): Set to '/' if TE_NetBSD.
1834 2001-07-14 matthew green <mrg@eterna.com.au>
1836 * configure.in (i386-*-netbsdelf*): New target.
1837 * configure: Regenerate.
1839 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
1841 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1842 class of the non-debug symbol is C_NULL.
1844 2001-07-10 Anders Norlander <anorland@synergenix.se>
1846 * doc/as.texinfo (Incbin): Fix grammatical errors.
1848 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1850 * depend.c: Use FOPEN_.. macros in calls to fopen().
1851 * input-file.c: As above.
1852 * itbl-ops.c: As above.
1853 * listing.c: As above.
1854 * output-file.c: As above.
1857 2001-07-08 Anders Norlander <anorland@synergenix.se>
1859 * read.c (s_incbin): New .incbin function.
1860 * read.c (potable): Add "incbin" pseudo-op.
1861 * read.h: Add s_incbin prototype.
1862 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1863 * NEWS: Mention new feature.
1865 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1867 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1870 2001-07-06 John Healy <jhealy@redhat.com>
1872 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1873 set of fixups to be stored.
1874 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1875 restored to be chosen from any that are saved.
1876 (gas_cgen_swap_fixups): Modified to allow the current set of
1877 fixups to be swapped with any other set that has been saved.
1878 (gas_cgen_initialize_saved_fixups_array): New routine.
1879 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1880 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1881 or MAX_SAVED_FIXUP_CHAINS.
1882 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1883 store, swap and restore fuctions to reflect the new interface.
1885 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1887 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1888 ignore empty, ineffectual alignment frags when deciding if a
1889 branch can be short.
1891 2001-07-05 Steve Ellcey <sje@cup.hp.com>
1893 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1894 and SPECIAL_SECTION_FINI_ARRAY.
1895 (special_section_name): Add .init_array and .fini_array.
1896 (md_pseudo_table): Add init_array and fini_array.
1897 (md): Add pointer_size and pointer_size_shift fields.
1898 (setup_unwind_header): New static function.
1899 (output_unw_records): Modify to use setup_unwind_header.
1900 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1901 md.pointer_size_shift.
1902 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1904 2001-07-05 Ben Elliston <bje@redhat.com>
1906 * README (Supported platforms): m88k no longer suffers bitrot.
1908 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1910 2001-07-05 Alan Modra <amodra@bigpond.net.au>
1912 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1913 lsy_value. Correct typos in comments.
1914 * symbols.c (local_symbol_make): Update for name change.
1915 (local_symbol_convert): Likewise.
1917 (S_GET_VALUE): Likewise.
1918 (S_SET_VALUE): Likewise.
1919 (print_symbol_value_1): Likewise.
1920 (resolve_symbol_value): Likewise. Don't divide local sym values
1921 by OCTETS_PER_BYTE twice.
1923 2001-07-04 Jim Wilson <wilson@redhat.com>
1925 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
1927 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
1930 2001-07-05 Ben Elliston <bje@redhat.com>
1932 * read.c (s_fill): Correct spelling error in comments.
1934 * doc/c-m88k.texi: New file.
1935 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
1936 * doc/Makefile.in: Regenerate.
1937 * doc/all.texi: Set M880X0.
1938 * doc/as.texinfo: Hook in m88k-dependent documentation.
1940 2001-07-04 Eric Christopher <echristo@redhat.com>
1942 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
1944 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
1945 and rm5721 as valid cpu strings.
1946 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
1948 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
1950 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
1951 if it's expected to be non-zero.
1953 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
1955 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
1958 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
1959 (write_object_file): Set finalize_syms to
1960 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
1963 * doc/internals.texi: Document
1964 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
1966 2001-07-02 Alan Modra <amodra@bigpond.net.au>
1968 * config/tc-ppc.c: Formatting fixes.
1970 2001-07-01 Ben Elliston <bje@redhat.com>
1972 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
1973 they cause some subtle breakage. Will fix them again later.
1975 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
1977 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
1978 outside of a function as a .appline directive.
1980 2001-06-28 Eric Christopher <echristo@redhat.com>
1981 H.J. Lu <hjl@gnu.org>
1983 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
1984 of mips_cpu for the ISA selection.
1985 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
1986 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
1987 (mips_tune): New. Use mips_tune for scheduling and optimization
1989 (append_insn): Use mips_tune and mips_arch.
1990 (macro_build): Ditto.
1992 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
1993 backwards compatability mips_cpu generates arch and tune.
1994 (md_show_usage): Document new behavior.
1996 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
2001 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
2003 * write.c (write_object_file): Do not set finalize_syms until
2004 after the segments have been sized. Some backends may still
2005 need to access the syms's frags in order to adjust relaxed
2008 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
2011 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2013 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
2014 subtract MD_PCREL_FROM_SECTION for 68k.
2015 (fixup_segment <Difference of 2 syms different seg>): Only fudge
2016 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2018 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
2020 * write.c (fixup_segment <Difference of 2 syms same seg>): If
2021 pcrel, subtract MD_PCREL_FROM_SECTION value.
2023 2001-06-24 Ben Elliston <bje@redhat.com>
2025 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
2027 2001-06-24 Jakub Jelinek <jakub@redhat.com>
2029 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
2030 section symbols the same way as externs.
2032 2001-06-24 Ben Elliston <bje@redhat.com>
2034 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
2035 (emit_relocations): Ditto.
2037 (md_begin): Reformat comments to conform to the GNU standards.
2038 (md_assemble): Ditto.
2040 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
2041 (md_parse_option): Mark parameters as unused.
2042 (md_show_usage): Ditto.
2043 (calcop): Adjust type of `reg_prefix' to char.
2045 (getval): Adjust type of local `c' to char.
2046 (md_create_short_jump): Mark from_addr, to_addr params as unused.
2047 (md_create_long_jump): Ditto.
2048 (md_estimate_size_before_relax): Mark parameters as unused.
2050 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
2051 to allay a possible compiler warning.
2053 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
2055 * doc/internals.texi (CPU backend): Document md_atof.
2057 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
2059 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
2060 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
2063 2001-06-21 Philip Blundell <philb@gnu.org>
2065 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
2067 (insns): Remove entry for adrl. Add long_flag for adr.
2068 (do_adr): Handle `l' suffix.
2071 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2073 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
2074 (md_apply_fix): Use it here. Replace printf with equivalent
2076 (tc_gen_reloc): Use as_bad_where instead of as_bad.
2077 (md_apply_fix): Here too.
2078 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
2079 * config/tc-m68k.c (tc_gen_reloc): Likewise.
2080 (md_convert_frag_1): Likewise.
2082 2000-06-20 Tom Rix <trix@redhat.com>
2084 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
2086 2001-06-18 H.J. Lu <hjl@gnu.org>
2088 * doc/Makefile.am (info): Depend on $(MANS).
2089 (as.1): Remove the prefix `$(srcdir)/'.
2090 * doc/Makefile.in: Regenerated.
2094 2001-06-18 Philip Blundell <philb@gnu.org>
2096 * config/tc-arm.c (do_msr): Remove restriction on usage of
2099 2001-06-19 Alan Modra <amodra@bigpond.net.au>
2101 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
2104 2001-06-13 Philip Blundell <philb@gnu.org>
2106 * config/tc-arm.c (thumb_shift): Improve wording of error message.
2107 (do_t_arit): Likewise.
2109 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2111 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
2112 .loc pseudos if the dfwarf2 functions are available.
2113 (md_assemble): Only call dwarf2_emit_insn if it is available.
2115 * expr.c: Fix typo in comment.
2117 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2119 * doc/as.texinfo (Infix Ops): Document that comparison and
2120 combiner operators can be used as infix operators.
2122 2001-06-12 Peter Jakubek <pjak@snafu.de>
2124 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
2126 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
2127 (reverse_mri_condition): Likewise.
2128 (swap_mri_condition): Issue warning for conditions that can not be
2130 (build_mri_control_operand): Fix order of operands (swapped).
2131 (build_mri_control_operand): Allow upper case extension in structured
2133 (s_mri_else): Likewise.
2134 (s_mri_next): Likewise.
2135 (s_mri_for): Likewise.
2136 (s_mri_if): Fix handling comment ('*') in mri mode.
2137 (s_mri_while): Likewise.
2138 * macro.c (macro_expand): Allow macro invocation with empty
2141 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2143 * config/tc-arm.c: Fix test for overlow of literal pool.
2145 2001-06-11 H.J. Lu <hjl@gnu.org>
2147 * NEWS: Updated for the new -n option for the MIPS assembler.
2149 * config/tc-mips.c (md_show_usage): Add -n.
2151 * doc/as.texinfo: Document the new -n option.
2152 * doc/c-mips.texi: Likewise.
2153 * doc/as.1: Regenerated.
2155 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2157 * config/obj-coff.c (obj_coff_section): Formatting fix.
2159 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
2162 2001-06-08 H.J. Lu <hjl@gnu.org>
2164 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
2165 disable warning about all NOPS that the assembler generates.
2166 (macro): Warn NOPS generated only if warn_nops is not 0.
2167 (md_shortopts): Add `n'.
2168 (md_parse_option): Set warn_nops to 1 for `n'.
2170 2001-06-08 H.J. Lu <hjl@gnu.org>
2172 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
2174 2001-06-08 H.J. Lu <hjl@gnu.org>
2176 * config/tc-mips.c (md_apply_fix): Don't adjust common
2177 extern/weak symbols for ELF.
2178 (md_estimate_size_before_relax): Treat weak like extern for
2180 (mips_fix_adjustable): Don't adjust extern/weak symbols for
2183 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2185 * Makefile.am: 'som' is not wrongly spelled 'some'.
2186 * Makefile.in: Regenerate.
2188 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
2189 S_GET_VALUE by using a temp.
2190 (append_insn): Likewise, and for S_SET_VALUE too.
2191 (mips_emit_delays): Likewise.
2192 (my_getExpression): Likewise.
2193 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
2194 (mips16_extended_frag): Remove code concerned with avoiding
2195 locking in a frag address now that symbols are not finalized until
2196 relaxation is complete. Cater for first relaxation pass having
2197 bogus addresses. Use relax_marker to reliably determine whether a
2198 symbol frag has been reached on the current pass.
2200 2001-06-07 H.J. Lu <hjl@gnu.org>
2202 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
2203 * configure: Regenerate.
2205 2001-06-07 H.J. Lu <hjl@gnu.org>
2207 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
2209 * configure: Regenerate.
2211 2001-06-07 H.J. Lu <hjl@gnu.org>
2213 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
2214 MIPS_STABS_ELF is defined.
2216 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
2218 * as.c (show_usage): Remove L from listing options. It is not a
2221 2001-06-06 Christian Groessler <cpg@aladdin.de>
2223 * config/tc-z8k.c: Removed many warnings by removing unused
2224 variables and tagging unused parameters as such.
2225 (md_begin): Fixed a typo (","instead of ";").
2226 (struct ctrl_table): Add parentheses to initialize array
2228 (struct flag_table): Likewise.
2229 (struct intr_table): Likewise.
2230 (struct table): Likewise.
2231 (check_operand): "#if 0"'ed since it doesn't seem to be used.
2233 2001-06-06 Peter Jakubek <pjak@snafu.de>
2235 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
2236 options to list (e.g. m5206e, m5307, m5407).
2238 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2240 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
2241 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2243 2001-06-06 Alan Modra <amodra@bigpond.net.au>
2245 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
2246 <JumpByte, JumpDword insn output>: Remove dead code.
2248 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
2250 * as.c (parse_args): Correct option name "listing-lhs-width2".
2252 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
2254 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
2257 2001-05-30 Richard Henderson <rth@redhat.com>
2259 * read.c (emit_leb128_expr): Call md_cons_align.
2261 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2263 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
2264 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
2265 (tc_gen_reloc): Likewise.
2266 (sparc_cons_align): Don't clear sparc_no_align_cons.
2267 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
2268 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
2270 2001-05-27 Alan Modra <amodra@one.net.au>
2272 * write.c (relax_segment <rs_space>): Check the section of a
2273 symbol to determine whether it is absolute rather than comparing
2274 its frag against zero_address_frag as listings play tricks with
2277 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
2278 allocated in the same chunk as the fixed part.
2280 2001-05-26 Alan Modra <amodra@one.net.au>
2282 * write.c (relax_segment <rs_space>): Calculate growth using
2283 addresses before stretch. Prevent repeated error messages.
2284 From Peter Jakubek <pjak@snafu.de>
2285 Use as_bad_where and as_warn_where to pinpoint errors.
2287 2001-05-25 Alan Modra <amodra@one.net.au>
2289 * symbols.c (resolve_symbol_value): Always set segment, even when
2290 not finalizing symbol value.
2292 * config/obj-ieee.c (write_object_file): Set finalize_syms.
2293 * config/obj-coff.c (write_object_file): Likewise.
2294 * (size_section): Remove rs_space assert as fr_symbol is no longer
2296 (fill_section): Likewise.
2298 * configure.in: Replace linuxoldld with linux*oldld.
2299 * configure: Regenerate.
2301 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
2302 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
2303 that have been finalized.
2305 * symbols.c (resolve_symbol_value): Clear sy_resolving before
2306 taking exit_dont_set_value.
2308 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
2311 2000-05-24 Tom Rix <trix@redhat.com>
2313 * config/obj-coff.c (add_lineno): xcoff allows negative line
2315 * config/tc-ppc.c (ppc_stabx): fix generated symbol
2317 2001-05-24 Alan Modra <amodra@one.net.au>
2319 * write.c (write_object_file): Set finalize_syms = 1 before
2322 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2324 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2325 architecture, remove erraneous ISA_MIPS32.
2326 (md_show_usage): Add MIPS r12k support.
2327 (mips_cpu_info_table): Add MIPS r12k support.
2329 2001-05-22 Alan Modra <amodra@one.net.au>
2331 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2334 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2335 instead use finalize_syms directly. Don't treat expressions
2336 specially with regard to finalize_syms. Update calls to self.
2337 (resolve_local_symbol): Update call to resolve_symbol_value.
2338 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2340 * symbols.h (resolve_symbol_value): Update prototype.
2341 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2342 to resolve_symbol_value.
2343 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2344 * config/obj-coff.c (do_relocs_for): Likewise.
2345 (yank_symbols): Likewise.
2346 (fixup_segment): Likewise.
2347 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2348 * config/tc-mips.c (md_convert_frag): Likewise.
2349 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2350 (ppc_fix_adjustable): Likewise.
2351 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2352 (dwarf2dbg_convert_frag): Likewise.
2353 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2354 (eh_frame_convert_frag): Likewise.
2355 * expr.c (make_expr_symbol): Likewise.
2356 * write.c (adjust_reloc_syms): Likewise.
2357 (write_object_file): Likewise.
2358 (relax_segment): Likewise.
2359 (fixup_segment): Likewise.
2360 (finalize_syms): Init to zero, and update comment.
2361 (write_object_file): Set finalize_syms to 1 rather than 2.
2362 * doc/internals.texi (sy_value): Mention finalize_syms.
2363 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2365 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2366 as relaxable if embedded system, make weak syms non-relaxable.
2368 (tc_m68k_fix_adjustable): ..so it can be used here.
2369 (md_apply_fix_2): Sign extend without conditional.
2371 * config/tc-v850.c: Update copyright.
2373 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
2375 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2376 howto entry is not found.
2378 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2380 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2381 optimize differences between symbols in code sections to
2383 (mn10300_fix_adjustable): Don't adjust to section+offset
2384 relocations pointing at symbols in code sections.
2386 2001-05-16 Alan Modra <amodra@one.net.au>
2388 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2390 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2391 opcodes are output rather than after. Delete insn_size.
2392 * config/tc-v850.c (md_assemble): Similarly, but delete
2395 2001-05-14 Richard Henderson <rth@redhat.com>
2397 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2400 2001-05-14 Richard Henderson <rth@redhat.com>
2402 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2403 also collect whether to expect an FDE augmentation.
2404 (check_eh_frame): Rewrite as a state machine. Track where in
2405 an FDE we are located, skip any augmentation.
2406 (eh_frame_estimate_size_before_relax): Get code alignment from
2407 the fragment subtype.
2408 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2409 * read.c (emit_leb128_expr): Call check_eh_frame.
2411 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
2413 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2414 before a relaxable insns.
2416 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2418 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2419 between symbols if the base symbol is in the current section;
2420 emit a PC-relative relocation instead.
2422 2001-05-12 Peter Targett <peter.targett@arccores.com>
2424 * config/tc-arc.c: Update copyright and tidy source comments.
2425 (md_pseudo_table): Add directive .cpu back as an alias for
2426 .option. Add .file and .line for dwarf2 support.
2427 (arc_mach_type): Make bfd_mach_arc_6 default.
2428 (md_longopts): Add entry 'pre-v6' representing old command line
2429 option when assembling for 'arc5' core versions.
2430 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2432 (arc_code_symbol): Make symbol value for @h30 fixup expression
2433 equal to O_constant.
2434 (md_assemble): Call dwarf2_emit_insn.
2435 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2436 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2437 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2439 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2441 * config/tc-ia64.c (special_linkonce_name): New.
2442 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2443 .gnu.linkonce.ia64unw{,i}.FOO.
2444 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2445 (dot_endp): Add comment about it.
2447 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2449 * config/tc-arm.c (arm_handle_align): When truncating an aligned
2450 block, ensure that the low order bits of the alignment are
2453 2001-05-10 Alan Modra <amodra@one.net.au>
2455 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2458 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2459 current variable part of frag.
2460 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2461 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2462 * config/tc-m68hc11.c (RELAX_STATE): Define.
2463 (RELAX_LENGTH): Define.
2464 (md_estimate_size_before_relax): Handle non-relaxable cases
2465 separately from relaxable cases for clarity, and return correct
2466 size for multi-pass relaxation.
2467 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2468 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2469 (md_convert_frag): Remove "length_code".
2470 * config/tc-vax.c (RELAX_STATE): Define.
2471 (RELAX_LENGTH): Define.
2472 (md_relax_table): Add missing entry.
2473 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2474 (md_convert_frag): Remove "length_code".
2475 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2476 don't bother setting fr_var. Return correct size for multi-pass
2478 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2479 (md_convert_frag): Don't bother clearing fr_var.
2480 (md_pseudo_table): Correct initialization.
2481 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2482 (md_estimate_size_before_relax): No need to set fr_var.
2483 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2484 (md_estimate_size_before_relax): No need to set fr_var.
2486 2001-05-09 Richard Henderson <rth@redhat.com>
2488 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2489 beginning a function's unwind info block.
2491 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2493 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2495 2001-05-08 Andreas Schwab <schwab@suse.de>
2497 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2498 fx_pcrel_adjust explicitly sign extend when reading it.
2500 2001-05-08 Alan Modra <amodra@one.net.au>
2502 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2503 from md_relax_table, and combine some switch cases.
2505 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
2507 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2508 from offset in non-pcrel operands too.
2510 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2512 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2513 * config/tc-arm.c (arm_handle_align): Do not insert more than
2514 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2515 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2517 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2519 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2521 * Makefile.in: Regenerate.
2522 * configure.in: Remove duplicate mips-*-ecoff* entry.
2523 * configure: Regenerate.
2525 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2526 (n_names): Cast away type mismatch.
2527 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2528 (obj_ecoff_frob_symbol): Likewise.
2529 * ecoff.c: (add_file): Add unused attribute.
2530 (ecoff_directive_begin): Likewise.
2531 (ecoff_directive_bend): Likewise.
2532 (ecoff_directive_def): Likewise.
2533 (ecoff_directive_dim): Likewise.
2534 (ecoff_directive_scl): Likewise.
2535 (ecoff_directive_size): Likewise.
2536 (ecoff_directive_type): Likewise.
2537 (ecoff_directive_tag): Likewise.
2538 (ecoff_directive_val): Likewise.
2539 (ecoff_directive_endef): Likewise.
2540 (ecoff_directive_end): Likewise.
2541 (ecoff_directive_ent): Likewise.
2542 (ecoff_directive_extern): Likewise.
2543 (ecoff_directive_file): Likewise.
2544 (ecoff_directive_fmask): Likewise.
2545 (ecoff_directive_frame): Likewise.
2546 (ecoff_directive_mask): Likewise.
2547 (ecoff_directive_loc): Likewise.
2548 (mark_stabs): Likewise.
2549 (ecoff_stab): Likewise.
2550 (ecoff_frob_symbol): Cast away type mismatch.
2551 (ecoff_padding_adjust): Likewise.
2552 (ecoff_build_symbols): Likewise.
2553 (ecoff_build_procs): Likewise.
2554 (ecoff_build_aux): Likewise.
2555 (ecoff_build_strings): Likewise.
2556 (ecoff_build_fdr): Likewise.
2557 (ecoff_build_debug): Likewise.
2558 * itbl-ops.c (itbl_assemble): Variable initialization.
2560 2001-05-03 Alan Modra <amodra@one.net.au>
2562 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2563 expressions rather than triggering an assert.
2565 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2567 * config/tc-openrisc.c: New file.
2568 * config/tc-openrisc.h: Likewise.
2570 * Makefile.am: Add OpenRISC target.
2571 * Makefile.in: Regenerated.
2573 * configure.in (openrisc-*-*): Add target.
2574 * configure: Regenerated.
2576 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2578 * config/tc-arm.c (arm_frag_align_code): Change error message to
2579 more explanatory version.
2581 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
2583 * config/tc-mips.c (md_parse_option): Also accept
2584 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2586 2001-04-27 David Mosberger <davidm@hpl.hp.com>
2588 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2589 argument passing order: predicate goes last, not first.
2591 2001-04-27 Sean McNeil <sean@mcneil.com>
2593 * configure.in: Add arm-vxworks.
2594 * configure: Regenerate.
2596 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
2598 * config/tc-arm.c (arm_handle_align): New Function: Generate
2599 no-op filled alignment frags.
2600 (arm_frag_align_code): New Function: Create a code alignment frag.
2601 (arm_init_frag): New Function: Initialse the target dependent
2604 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2605 (TC_FRAG_INIT): Define.
2606 (HANDLE_ALIGN): Define.
2607 (md_do_align): Define.
2609 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
2611 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2612 symbol has been initialised before extracting its symbol index.
2614 2001-04-24 H.J. Lu <hjl@gnu.org>
2616 * configure: Regenerated with the right version of autoconf.
2618 2001-04-24 Christian Groessler <cpg@aladdin.de>
2620 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2621 generate R_CALLR and R_REL16 relocations
2623 2000-04-20 Jason Eckhardt <jle@redhat.com>
2625 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2626 since frag_now can change after d10v_cleanup is called.
2628 2001-04-16 David O'Brien <obrien@FreeBSD.org>
2630 * configure.in: Add the em type for FreeBSD targets.
2631 * configure: Regenerate.
2633 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2635 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2636 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2638 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2639 pc-relative relocations not placed at the end of the instruction.
2641 2001-04-13 Jim Wilson <wilson@redhat.com>
2643 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2646 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2648 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2649 handle SHF_MERGE and SHF_STRINGS.
2650 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2651 (obj_elf_section): Allow additional argument specifying entity size.
2652 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2653 in SEC_MERGE sections.
2655 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
2657 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2659 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2661 * expr.c (operand): Pass &c to md_parse_name().
2662 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2664 2001-04-07 Steven J. Hill <sjhill@cotw.com>
2666 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2668 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2669 * Makefile.in: Regenerated.
2671 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2672 * configure: Regenerated.
2674 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
2676 * config/tc-mn10300.c (xr_registers): Added `pc'.
2678 2001-04-05 Alan Modra <alan@linuxcare.com.au>
2680 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2681 * configure: Regenerate.
2683 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2684 cases, and always return size based on current fr_subtype.
2685 (md_begin): Move initialization of md_relax_table..
2686 (md_relax_table): ..to static initializer. Set rlx_length for
2687 UNDEF_WORD_DISP cases.
2688 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2689 (md_begin): Likewise.
2690 (md_relax_table): Likewise.
2691 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2692 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2693 Set rlx_backward and rlx_forward to zero for unused states.
2694 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2695 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2696 (UNCOND12, UNCOND32): Remove duplicate defines.
2698 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
2700 * config/tc-cris.c (md_estimate_size_before_relax) <case
2701 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2702 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2703 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2704 Add cases to cover all relax states.
2705 (cris_insn_first_word_frag): New.
2706 (md_assemble): Call cris_insn_first_word_frag to get the first
2707 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2708 end. Drop variable insn_size.
2709 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2710 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2711 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2713 * write.c (write_object_file): Reset broken word state before
2716 2001-03-31 Alan Modra <alan@linuxcare.com.au>
2718 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2719 for one line if not already enabled.
2720 * cond.c (s_elseif): Correct conditional assembly listing.
2723 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2724 Don't abort on NULL current_cframe.
2726 2001-03-30 Alan Modra <alan@linuxcare.com.au>
2728 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
2729 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2730 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2731 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2732 * config/obj-coff.c (do_relocs_for): Likewise.
2733 (yank_symbols): Likewise.
2734 (fixup_segment): Likewise.
2735 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2736 (ppc_fix_adjustable): Likewise.
2737 * config/tc-mips.c (md_convert_frag): Likewise.
2738 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2739 * ehopt.c (eh_frame_convert_frag): Likewise.
2740 * expr.c (make_expr_symbol): Likewise.
2742 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2744 * symbols.c (resolve_symbol_value): Don't fix expression values
2745 until relaxation is complete.
2746 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2747 (S_GET_VALUE): Likewise, and return unresolved expression value.
2748 * write.c (finalize_syms): New.
2749 (relax_and_size_seg): Split into..
2750 (relax_seg): New function, returns 1 if anything changed..
2751 (size_seg): And the remainder of relax_and_size_seg.
2752 (fixup_segment): Arrange for final resolution of sym values.
2753 (adjust_reloc_syms): Likewise.
2754 (write_object_file): Likewise, and repeatedly call relax_seg until
2755 nothing more changes.
2756 (relax_segment): Return 1 if anything changed. Use correct types
2757 for rs_org `target' and `after'.
2758 * write.h (finalize_syms): Declare.
2759 (relax_segment): Update prototype.
2761 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2762 do-nothing cases to switch to avoid abort on a second relaxation
2763 pass, and tidy code a little.
2764 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2765 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2766 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2767 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2768 (md_relax_table): Remove first four unused entries. Increment
2769 rlx_length by one throughout table, and update comments to suit.
2770 (md_estimate_size_before_relax): Return size of current variable
2771 part of frag to reflect reality when relaxing more than once.
2772 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2773 (COND32, UNCD32): Rename to DISP32 throughout.
2774 (UNDEF_WORD_DISP): Renumber to 3.
2775 (md_estimate_size_before_relax): Add extra do-nothing cases.
2776 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2777 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2778 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2779 handle word and dword branches.
2781 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
2783 * config/tc-cris.h (tc_fix_adjustable): Allow only
2784 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
2785 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2786 example in comment to valid type.
2788 2001-03-28 H.J. Lu <hjl@gnu.org>
2790 * read.c (equals): Set to local for COFF only if it hasn't been
2793 2001-03-28 Alan Modra <alan@linuxcare.com.au>
2795 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2796 (md_begin): Use it when setting default architecture.
2798 2001-03-27 Nick Papadonis <nick@coelacanth.com>
2800 * read.c (equals): (for COFF) default symbols to being local.
2802 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2804 * configure.in (cris-*-*): Change default emulation to criself.
2805 (cris-*-*aout*): New rule.
2806 * configure: Regenerate.
2808 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
2810 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2811 BFD_RELOC_390_GOTENT.
2812 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2813 BFD_RELOC_390_GOTENT.
2815 2001-03-26 Nick Clifton <nickc@redhat.com>
2817 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2818 * config/tc-s390.c (s390_force_relocation): New function: Force
2819 relocations for VTINHERIT relocs.
2821 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2823 * doc/as.texinfo: Put @c man begin to generate the as man page.
2824 When generating man, define all the variables. Re-organize some
2825 options to obtain better indentation of man page.
2826 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2827 (as.1): Build from as.texinfo.
2828 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2830 2001-03-25 Alan Modra <alan@linuxcare.com.au>
2832 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2833 scale factor, and return the end of the expression.
2834 (i386_operand): Modify for above.
2836 2001-03-23 Nick Clifton <nickc@redhat.com>
2838 * doc/as.texinfo: Document --listing-XXX command line switches.
2839 Explain why listings behave differently when -pipe is used.
2841 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
2843 * write.c (fix_new_exp): Print an error if passed a register.
2845 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
2847 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2848 (PIC_SUFFIX_CHAR): New macro.
2849 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2850 (pic): New variable.
2851 (md_longopts): New option --pic.
2852 (OPTION_PIC): Define.
2853 (md_estimate_size_before_relax): Tweak longish comment.
2854 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2855 (md_assemble): Handle a PIC relocation on prefix and normal
2856 instruction operands.
2857 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2858 "complex" operand expressions. Call frag_more outside
2859 gen_cond_branch_32 parameter list.
2860 (cris_process_instruction): Handle PIC relocs on parsed
2861 operand expressions. Validize PIC reloc sizes.
2862 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2863 (gen_bdap): Handle "complex" operand expressions.
2864 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2865 ADD.D offset,PC as jump instruction if generating PIC. Generate
2866 error instead of crashing on complex expressions.
2867 (cris_number_to_imm): Add segT parameter. All callers changed.
2868 Use segT parameter, not now_seg, for segment of fixup. Handle
2869 PCREL relocations but check that they are fully resolved.
2870 (md_parse_option): Handle OPTION_PIC.
2871 (tc_gen_reloc): Handle PIC relocs.
2872 (md_show_usage): Update for --pic.
2873 (md_apply_fix3): Renamed from md_apply_fix.
2874 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2875 (md_cris_force_relocation): Force relocation for PIC relocs.
2877 * config/tc-cris.h: Tweak attribution.
2878 (MD_APPLY_FIX3): Define.
2879 (IS_CRIS_PIC_RELOC): New macro.
2880 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2881 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2883 (tc_frob_symbol): Avoid emitting undefined symbols.
2885 2001-03-20 Alan Modra <alan@linuxcare.com.au>
2887 * frags.h (struct frag): Add relax_marker.
2888 * write.c (is_dnrange): Delete.
2889 (relax_frag): Use correct types for `aim', `target', `address'.
2890 Delete `offset', `was_address'. Test `relax_marker' instead of
2891 using fragile (and slow) address test.
2892 (relax_segment): Init and flip `relax_marker'.
2894 2001-03-19 Alan Modra <alan@linuxcare.com.au>
2896 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2899 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2901 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2902 with 'Motorola specification for assembly language input standard'.
2904 2001-03-17 Richard Henderson <rth@redhat.com>
2906 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2907 (dwarf2_directive_loc): Don't use them.
2908 (dwarf2_directive_file): Reject duplicate file definitions.
2909 (get_filenum): Zero allocated memory.
2910 (out_file_list): Complain about missing file definitions.
2912 2001-03-17 Alan Modra <alan@linuxcare.com.au>
2914 * read.c (do_org): Handle complex expressions.
2915 * cgen.c (gas_cgen_finish_insn): Likewise.
2917 2001-03-15 David Mosberger <davidm@hpl.hp.com>
2919 * config/tc-ia64.c (md): New member keep_pending_output.
2920 (ia64_flush_pending_output): Flush only if md.keep_pending_output
2922 (dot_xdata): Turn on md.keep_pending_output for the duration of
2924 (dot_xfloat_cons): Ditto.
2925 (dot_xstringer): Ditto.
2926 (dot_xdata_ua): Ditto.
2927 (dot_xfloat_cons_ua): Ditto.
2929 2001-03-15 Jim Wilson <wilson@redhat.com>
2931 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
2934 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
2936 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
2938 2001-03-15 DJ Delorie <dj@redhat.com>
2940 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
2941 blindly freeing string if it isn't at the top of the obstack.
2943 2001-03-13 Alan Modra <alan@linuxcare.com.au>
2945 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
2946 (NUM_FLAG_CODE): Define.
2947 (lex_got): New function.
2948 (got_reloc): New global var.
2949 (x86_cons_fix_new): New function.
2950 (x86_cons): New function.
2951 (i386_immediate): Use lex_got here, replacing inline code. Change
2952 "ignoring junk.." error message to "junk.."
2953 (i386_displacement): Likewise.
2954 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
2955 (x86_cons): Declare.
2956 (TC_CONS_FIX_NEW): Define.
2957 (x86_cons_fix_new): Declare.
2959 2001-03-12 Nick Clifton <nickc@redhat.com>
2961 * config/tc-arm.c (md_begin): Always set machine type based on
2964 2001-03-07 Alan Modra <alan@linuxcare.com.au>
2966 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
2967 (md_assemble) <smallest displacement>: Use correct field of i.op[]
2969 <JumpInterSegment output>: Use correct i.disp_reloc[].
2970 <immediate output>: Likewise.
2972 2001-03-06 Nick Clifton <nickc@redhat.com>
2974 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
2977 2001-03-06 Igor Shevlyakov <igor@windriver.com>
2979 * config/tc-m68k.c : Add 5407 to archs[] table.
2980 (HAVE_LONG_BRANCH): Add mcf5407.
2981 (select_control_regs): Recognize 5407.
2983 2001-03-02 Dave Brolley <brolley@redhat.com>
2985 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
2988 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
2990 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
2991 (gen_to_words): Print warnings if NaNs are found and the target CPU
2992 does not support them. Allow largest exponent to be used in normal
2993 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
2995 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
2997 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
2998 anymore since we use bfd_elf_generic_reloc now.
2999 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
3001 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3003 * configure.in (BFD_VERSION): New.
3004 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3005 * configure: Regenerate.
3006 * Makefile.am: Run "make dep-am"
3007 * Makefile.in: Regenerate.
3008 * doc/Makefile.in: Regenerate.
3010 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
3012 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
3013 SEC_NEVER_LOAD when the 'n' flag is used.
3014 Add SEC_NEVER_LOAD to matchflags.
3016 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3018 * symbols.c (decode_local_label_name): Initialize message_format
3019 only when an error is reported (perf pb due to I18N).
3021 2001-02-23 H.J. Lu <hjl@gnu.org>
3023 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
3024 BFD_ASSEMBLER is not defined.
3026 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
3028 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
3029 done if it's against a symbol.
3031 2001-02-22 Timothy Wall <twall@cygnus.com>
3033 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
3034 target formats if applicable.
3035 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
3036 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
3037 * Makefile.in: Regenerated.
3038 * configure.in: Added configuration for ia64-*-aix*.
3039 * configure: Regenerated.
3041 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3043 * config/tc-ia64.c (enum operand_match_result): New type.
3044 (operand_match): Change return type to operand_match_result.
3045 Fix all returns appropriately, adding support for returning the
3046 out-of-range result.
3047 (parse_operands): New locals result, error_pos, out_of_range_pos,
3048 curr_out_of_range_pos. Rewrite operand matching loop to give better
3051 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3053 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
3054 (dot_proc): Clear unwind.prologue_count to zero.
3055 (dot_prologue): Increment unwind.prologue_count.
3056 (dot_restore): If second operand is omitted, use
3057 unwind.prologue_count -1 for "ecount" (# of additional regions to
3058 pop). Decrement unwind.prologue_count by number of regions
3061 2001-02-21 Nick Clifton <nickc@redhat.com>
3063 * doc/as.texinfo (Section): Note that some flags to the COFF
3064 version of .section remove attributes rather than setting them.
3066 2001-02-20 Kazu Hirata <kazu@hxi.com>
3068 * config/tc-pdp11.c: Fix formatting.
3069 * config/tc-pdp11.h: Likewise.
3071 2001-02-20 Bo Thorsen <bo@suse.de>
3073 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
3076 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3078 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
3079 all FreeBSD platforms should look the same at this level.
3080 * configure: Rebuilt.
3081 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
3083 2001-02-18 lars brinkhoff <lars@nocrew.org>
3085 * Makefile.am: Add PDP-11 target.
3086 * configure.in: Likewise.
3087 * config/tc-pdp11.c: New file.
3088 * config/tc-pdp11.h: New file.
3089 * doc/Makefile.am: Add PDP-11 documentation.
3090 * doc/all.texi: Likewise.
3091 * doc/as.texinfo: Likewise.
3092 * doc/c-pdp11.texi: New file.
3094 2001-02-16 matthew green <mrg@redhat.com>
3096 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
3098 2001-02-13 Jim Wilson <wilson@redhat.com>
3100 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
3101 reloc instead of a 0 reloc.
3102 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
3104 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
3106 2001-02-13 Ian Lance Taylor <ian@zembu.com>
3108 * write.c (is_dnrange): Stop as soon as the address becomes
3110 (relax_frag): Add segment parameter. Only call symbol_get_frag
3111 once. Only call is_dnrange if the symbol is in the same segment,
3112 and the symbol address is larger.
3113 (relax_segment): Pass segment to md_relax_frag and relax_frag.
3114 * write.h (relax_frag): Update declaration.
3115 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
3117 * config/tc-m32r.c (m32r_relax_frag): Likewise.
3118 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
3119 (m32r_relax_frag): Update declaration.
3120 * config/tc-mips.h (md_relax_frag): Add segment parameter.
3121 * config/tc-tic54x.h (md_relax_frag): Likewise.
3122 * doc/internals.texi (CPU backend): Update documentation for
3125 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3127 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
3128 Mention effect of < 386 architectures on jump promotion.
3129 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
3131 * config/tc-i386.c (no_cond_jump_promotion): New.
3132 (set_cpu_arch): Parse "jumps" arch modifier.
3133 (insn_size): Modify usage comment.
3134 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
3135 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
3136 (TYPE_FROM_RELAX_STATE): New define.
3137 (UNCOND_JUMP, COND_JUMP): Renumber.
3138 (md_relax_table): Reorder to suit.
3139 (COND_JUMP86): New define.
3140 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
3141 (md_assemble): Create frag var for jumps of max size, encode relax
3142 state for COND_JUMP86.
3143 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
3144 leave conditional jumps small if no_cond_jump_promotion.
3145 (md_convert_frag): Likewise.
3147 * expr.c (operator): Don't bump input_line_pointer for two char
3148 operators. Instead return operator size via new param num_chars.
3149 (expr): Use above to parse multi-char operators correctly.
3151 Mon Feb 12 17:45:50 CET 2001 Jan Hubicka <jh@suse.cz>
3153 * config/tc-i386.c (i386_displacement): Fix handling of
3154 BFD_RELOC_X86_64_GOTPCREL.
3155 (i386_validate_fix): Likewise.
3157 2001-02-12 Philip Blundell <pb@futuretv.com>
3159 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
3160 ldrt/strt instructions.
3162 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3164 * config/tc-mips.c (macro): For M_LA_AB emit a
3165 BFD_RELOC_MIPS_CALL16 relocation or a
3166 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
3167 BFD_RELOC_MIPS_GOT16 and
3168 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
3169 loading the jump register when generating SVR4_PIC code.
3171 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3173 * configure.in: Make 'mipself' and 'mipsecoff' emulations
3174 map to MIPS-specific files, as they used to do before the
3175 change on 2000-05-21.
3176 * configure: Regerate.
3178 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3180 * config/tc-mips.c (md_parse_option): Don't try to compile
3181 ELF-only option code if not ELF.
3183 2001-02-08 David Mosberger <davidm@hpl.hp.com>
3185 * config/tc-ia64.h (md_elf_section_type): New macro.
3186 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
3187 (they're now handled via ia64_elf_section_type.
3189 * config/tc-ia64.c (unwind): New members saved_text_seg,
3190 saved_text_subseg, and force_unwind_entry.
3191 (optimize_unw_records): New function to optimize away unnecessary
3193 (ia64_elf_section_type): New function.
3194 (output_unw_records): Generate unwind info only if the size is
3195 non-zero or if it's forced for some other reason (e.g.,
3196 handlerdata or a personality routine).
3197 (generate_unwind_image): Don't switch back to previous
3198 section---stay inside the unwind info section instead so that
3199 handlerdata that may follow goes into the right place.
3200 (dot_handlerdata): Force generation of unwind entry and save the
3201 current active text segment before generating unwind image.
3202 (dot_unwentry): Force generation of unwind entry.
3203 (dot_personality): Ditto.
3204 (dot_endp): Generate unwind table entry only if there is
3205 some unwind info or the unwind entry was forced.
3207 * config/tc-ia64.c (make_unw_section_name): New macro to form
3208 unwind section name.
3209 (generate_unwind_image): Add "text_name" argument. Use it to
3210 form unwind section name.
3211 (dot_handlerdata): Determine current segment (section) name and
3212 pass it to generate_unwind_image().
3213 (dot_endp): Determine current segment (section) name and use
3214 it to determine the appropriate unwind section name.
3215 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
3216 n, fill, and max arguments.
3218 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
3220 * Makefile.am: Add linux target for S/390.
3221 * configure.in: Likewise.
3222 * config/tc-s390.c: New file.
3223 * config/tc-s390.h: New file.
3225 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
3227 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
3228 2byte, 4byte and 8byte.
3230 2001-02-08 Alan Modra <alan@linuxcare.com.au>
3232 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
3233 md_number_to_chars with size > sizeof (valueT).
3235 2001-02-06 H.J. Lu <hjl@gnu.org>
3237 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
3238 there is no relocation.
3240 2001-02-06 H.J. Lu <hjl@gnu.org>
3242 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
3244 * config/tc-ia64.c (md_parse_option): Only accept the valid
3245 ia64 options on "-axxx".
3247 2001-02-05 Jim Wilson <wilson@redhat.com>
3249 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
3250 aborting for invalid operands.
3252 2001-02-06 Alan Modra <alan@linuxcare.com.au>
3254 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
3255 than via pointer. Update all callers.
3256 (UNWIND_LOW32): Define.
3257 (UNWIND_HIGH32): Define.
3258 (pa_build_unwind_subspace): Use the above macros instead of dumping
3259 bitfields directly. Call frag_more once rather than multiple times.
3260 (md_assemble): Use UNWIND_LOW32.
3261 (pa_entry): Likewise
3262 (pa_procend): Likewise.
3263 (process_exit): Use UNWIND_HIGH32.
3265 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3267 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
3268 function to select the header according to the cpu.
3269 (md_after_pass_hook, md_do_align): Remove.
3270 (md_cleanup, m68hc11_cleanup): Remove.
3271 (md_pcrel_from_section): Declare.
3272 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
3273 (build_jump_insn, build_insn): Likewise.
3274 (m68hc11_listing_header): New function.
3275 (m68hc11_cleanup): Remove.
3277 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3279 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
3280 symbols because there is no support for shared libraries and these
3281 symbols can't be overridden (unless they are weak).
3283 2001-02-01 Momchil Velikov <velco@fadata.bg>
3285 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
3286 for the compilation unit with a zero byte.
3288 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3290 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
3291 destinations. Correct range check for 17 and 22 bit branches.
3293 2001-01-25 Nick Clifton <nickc@redhat.com>
3295 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
3296 still set. Issue an error message instead.
3297 (md_estimate_size_before_relax): Delete unused variable
3298 'buffer_address'. Fixup parentheses around if statement.
3300 2001-01-23 Kazu Hirata <kazu@hxi.com>
3302 * as.c: Fix formatting.
3303 * ehopt.c: Likewise.
3304 * messages.c: Likewise.
3305 * stabs.c: Likewise.
3306 * symbols.c: Likewise.
3308 2001-01-23 Ben Elliston <bje@redhat.com>
3310 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
3312 2001-01-22 Kazu Hirata <kazu@hxi.com>
3314 * config/tc-alpha.c: Fix formatting.
3316 2001-01-19 Kazu Hirata <kazu@hxi.com>
3318 * config/tc-alpha.c: Fix formatting.
3320 2001-01-18 Kazu Hirata <kazu@hxi.com>
3322 * config/tc-alpha.c: Fix formatting.
3324 2001-01-18 Nick Clifton <nickc@redhat.com>
3326 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3328 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3330 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
3332 * configure.in (cpu_type, arch): Match i386 too.
3333 * configure: Rebuilt.
3335 2001-01-16 Kazu Hirata <kazu@hxi.com>
3337 * config/tc-i386.c: Fix formatting.
3339 2001-01-16 Alan Modra <alan@linuxcare.com.au>
3341 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3342 relocs for .PARISC.unwind section.
3344 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3345 depending on section flags, not just for .text.
3347 2001-01-15 Jim Wilson <wilson@redhat.com>
3349 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3350 not immediately followed by an instruction.
3352 2001-01-15 Kazu Hirata <kazu@hxi.com>
3354 * config/tc-m68hc11.c: Fix formatting.
3356 2001-01-15 Nick Clifton <nickc@redhat.com>
3358 * symbols.c (colon): Change 'already defined symbol' from a
3359 fatal error to an ordinary error. There is no reason why this
3360 error should be fatal.
3362 * message.c (as_fatal): Delete output file, if one has been
3365 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3367 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3369 2001-01-14 Kazu Hirata <kazu@hxi.com>
3371 * config/tc-alpha.c: Fix formatting.
3372 * config/tc-arc.c: Likewise.
3373 * config/tc-arc.h: Likewise.
3374 * config/tc-d10v.c: Likewise.
3375 * config/tc-i370.c: Likewise.
3376 * config/tc-i386.c: Likewise.
3377 * config/tc-i960.c: Likewise.
3378 * config/tc-m68k.c: Likewise.
3379 * config/tc-ppc.c: Likewise.
3380 * config/tc-sparc.c: Likewise.
3381 * config/tc-tahoe.c: Likewise.
3382 * config/tc-vax.c: Likewise.
3384 * config/tc-arc.c: Fix formatting.
3386 * config/tc-arc.c: Fix formatting.
3388 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3390 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3391 both 32 and 64 bit ELF.
3393 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3394 and don't bother storing `m' for "ce" completer. Tidy handling of
3395 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3397 Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
3399 * config/tc-i386.h (TARGET_MACH): New macro.
3400 (i386_mach): Declare.
3401 * config/tc-i386.c (i386_mach): New function.
3403 2001-01-13 Philip Blundell <philb@gnu.org>
3405 * doc/as.texinfo: Fix spelling and cross-references.
3407 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3408 character for all systems, not just GNU/Linux. Make it explicit
3409 that `-k' doesn't affect code generation, just ELF flags.
3411 Sat Jan 13 01:47:35 MET 2001 Jan Hubicka <jh@suse.cz>
3413 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3416 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
3418 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3420 2001-01-12 Nick Clifton <nickc@redhat.com>
3422 * as.c (print_args): Update copyright date to 2001.
3424 2001-01-12 Peter Targett <peter.targett@arccores.com>
3426 * doc/c-arc.texi: New file.
3427 Some sections to be expanded.
3429 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3431 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3432 (md_parse_option): Always accept "--32".
3434 2001-01-11 Peter Targett <peter.targett@arccores.com>
3436 * as.h (TC_ARC): Ensure struc-symbol.h included.
3437 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3439 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3440 (TARGET_SYMBOL_FIELDS) added.
3442 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3443 * doc/c-arc.texi: New file.
3444 Some sections to be expanded.
3445 * doc/as.texinfo: Update command-line options.
3446 Removed outdated text for ARC dependant features, instead include
3447 text from above file.
3449 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3450 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3451 (targ-cpu.h) header.
3453 * config/tc-arc.c: New updated configuration for
3454 ARC, including selection of core variants, and extensibility of
3455 instructions, registers etc. through directives.
3457 * config/tc-arc.c (arc_extinst): Minor corrections for
3459 (arc_common) Likewise. Make alignment argument optional for local
3460 symbols also, with default of zero.
3462 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3464 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3465 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3466 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3467 and fix_new_exp() instead.
3468 (md_convert_frag): For indexed post byte use the symbol value
3469 rather than the displacement.
3470 (md_relax_table): Fix indexed offset relax.
3472 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3474 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3476 (relaxable_symbol): New function.
3478 2001-01-11 Andreas Jaeger <aj@suse.de>
3480 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3483 2001-01-10 Nick Clifton <nickc@redhat.com>
3485 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3486 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3488 2001-01-10 Nick Clifton <nickc@redhat.com>
3490 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3491 character used to dollar local symbols.
3492 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3493 local label symbols.
3494 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3495 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3497 Use LOCAL_LABEL_CHAR.
3498 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3499 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3500 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3502 2001-01-08 Bo Thorsen <bo@suse.de>
3504 * config/tc-i386.c (i386_immediate, i386_displacement):
3507 2001-01-07 Ian Lance Taylor <ian@zembu.com>
3509 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3512 2001-01-07 Philip Blundell <philb@gnu.org>
3514 * doc/as.texinfo (Bug Reporting): Update email address for
3518 Sat Jan 6 13:33:10 MET 2001 Jan Hubicka <jh@suse.cz>
3520 * configure.in: Define DEFAULT_ARCH for i386.
3521 * config/tc-i386.c (md_assemble): Return after the error message;
3522 move testing for 64bit operands to proper place.
3524 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
3526 * doc/as.texinfo: Document '#' as comment character for i386 and
3527 x86_64. Add AMD x86-64 into menu of machine dependent information.
3529 * doc/c-i386.texi: Document x86_64 extensions.
3531 Fri Jan 5 13:26:42 MET 2001 Jan Hubicka <jh@suse.cz>
3533 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
3535 Thu Jan 4 22:25:26 MET 2001 Jan Hubicka <jh@suse.cz>
3537 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
3538 * NEWS: Add note about Pentium4 support.
3540 Wed Jan 3 17:26:32 MET 2001 Jan Hubicka <jh@suse.cz>
3542 * config/tc-i387.c (pi, pte, pt): Update.
3543 (type_names): Add new types.
3545 Wed Jan 3 16:26:52 MET 2001 Jan Hubicka <jh@suse.cz>
3547 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
3548 CpuUnknown): Renumber
3549 (CpuP4, CpuSSE2): New.
3550 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3552 2001-01-03 Philip Blundell <pb@futuretv.com>
3554 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3556 (alpha_fix_adjustable): Likewise.
3557 (md_apply_fix): Likewise.
3559 2000-12-31 H.J. Lu <hjl@gnu.org>
3561 * listing.c (listing_message): Allocate string only if it is
3564 * configure: Rebuild.
3566 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
3568 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3569 Point out caveats with generating fixups for the opcode in a frag.
3571 Sat Dec 30 19:02:48 MET 2000 Jan Hubicka <jh@suse.cz>
3573 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3576 2000-12-29 H.J. Lu <hjl@gnu.org>
3578 * listing.c (calc_hex): Print the variable part only if the
3579 fragment type is rs_fill.
3581 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3583 * doc/internals.texi (tc_conditional_pseudoop,
3584 TC_LINKRELAX_FIXUP): Fix typos.
3586 2000-12-28 Richard Henderson <rth@redhat.com>
3588 * write.c (subsegs_finish): Fix thinko last change -- don't
3589 "optimize" the alignment == 0 case.
3591 2000-12-28 Richard Henderson <rth@redhat.com>
3593 * as.h (rs_align_test): New.
3594 * frags.c (NOP_OPCODE): Move default from read.c.
3595 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3596 (frag_align_code): New.
3597 * frags.h (frag_align_code): Declare.
3598 * read.c (NOP_OPCODE): Remove.
3599 (do_align): Use frag_align_code.
3600 * write.c (NOP_OPCODE): Remove.
3601 (get_recorded_alignment): New.
3602 (cvt_frag_to_fill): Handle rs_align_test.
3603 (relax_segment): Likewise.
3604 (subsegs_finish): Align last subseg in section to the
3605 section alignment. Use frag_align_code.
3606 * write.h (get_recorded_alignment): Declare.
3607 * config/obj-coff.c (size_section): Handle rs_align_test.
3608 (fill_section, fixup_mdeps): Likewise.
3609 (write_object_file): Use frag_align_code.
3611 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3612 (alpha_handle_align): New.
3613 * config/tc-alpha.h (HANDLE_ALIGN): New.
3614 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3616 * config/tc-i386.h (md_do_align): Use frag_align_code.
3617 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3619 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3620 (ia64_handle_align): New.
3621 * config/tc-ia64.h (HANDLE_ALIGN): New.
3622 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3624 * config/tc-m32r.c (m32r_do_align): Remove.
3625 (m32r_handle_align): New.
3626 (fill_insn): Use frag_align_code.
3627 * config/tc-m32r.h (md_do_align): Remove.
3628 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3629 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3630 * config/tc-mips.c, config/tc-mips.h: Similarly.
3632 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3633 (sh_handle_align): Likewise. Handle rs_align_code.
3634 (sh_do_align): Remove.
3635 * config/tc-sh.h (md_do_align): Remove.
3636 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3638 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3639 (sparc_handle_align): Likewise. Handle rs_align_code.
3640 * config/tc-sparc.h (md_do_align): Remove.
3641 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3643 2000-12-22 DJ Delorie <dj@redhat.com>
3645 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3646 when we assemble the first half of a pair.
3648 2000-12-22 H.J. Lu <hjl@gnu.org>
3650 * config/tc-i386.c (reloc): Update the macro for non-bfd
3652 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3654 2000-12-22 H.J. Lu <hjl@gnu.org>
3656 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3658 Wed Dec 20 14:21:22 MET 2000 Jan Hubicka <jh@suse.cz>
3660 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3661 (QWORD_MNEM_SUFFIX): New macro.
3662 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3664 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3665 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3667 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3668 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3669 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3670 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3671 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3673 (Reg, WordReg): Add Reg64.
3674 (Imm): Add Imm32S and Imm64.
3676 (Disp): Add Disp64 and Disp32S.
3677 (AnyMem): Add Disp32S.
3678 (RegRex, RegRex64): New macros.
3679 (rex_byte): New type.
3680 * config/tc-i386.c (set_16bit_code_flag): Kill.
3681 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3682 (reloc): New parameter "signed"; support x86_64.
3683 (set_code_flag): New.
3684 (DEFAULT_ARCH): New macro; default to "i386".
3685 (default_arch): New static variable.
3686 (struct _i386_insn): New fields Operand_PCrel; rex.
3687 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3688 (flag_code): New enum and static variable.
3689 (use_rela_relocations): New static variable.
3690 (flag_code_names): New static variable.
3691 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3692 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3694 (i386_align_code): Return plain "nop" for x86_64.
3695 (mode_from_disp_size): Support Disp32S.
3696 (smallest_imm_type): Support Imm32S and Imm64.
3697 (offset_in_range): Support size of 8.
3698 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3699 (md_pseudo_table): Add "code64"; use set_code_flat.
3700 (md_begin): Emit sane error message on hash failure.
3701 (tc_i386_fix_adjustable): Support x86_64 relocations.
3702 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3703 instructions supported on particular arch just partially,
3704 output of 64bit immediates, handling of Imm32S and Disp32S type.
3705 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3706 (i386_displacement): Likewise.
3707 (i386_index_check): Cleanup; support 64bit addresses.
3708 (md_apply_fix3): Support x86_64 relocation and rela.
3709 (md_longopts): Add "32" and "64".
3710 (md_parse_option): Add OPTION_32 and OPTION_64.
3711 (i386_target_format): Call even for ELFs; choose between
3712 elf64-x86-64 and elf32-i386.
3713 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3714 (tc_gen_reloc): Support rela relocations and x86_64.
3715 (intel_e09_1): Support QWORD.
3717 2000-12-15 Diego Novillo <dnovillo@redhat.com>
3719 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
3720 it's not an offset expression.
3721 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3722 keep the braces '[' and ']' in the output string.
3723 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3724 != FLAT. There is no such op_modifier.
3726 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3728 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3731 2000-12-13 Kazu Hirata <kazu@hxi.com>
3733 * as.h: Fix formatting.
3735 * dwarf2dbg.c: Likewise.
3736 * input-scrub.c: Likewise.
3739 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
3741 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3742 configure: Regenerate.
3744 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3746 * dwarf2dbg.c: #include <limits.h> only if it exists.
3748 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
3750 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3751 (md_apply_fix): Here too.
3753 2000-12-12 Jim Wilson <wilson@redhat.com>
3755 * config/tc-ia64.h (ia64_init): Add prototype.
3757 2000-12-12 H.J. Lu <hjl@gnu.org>
3759 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3761 * read.h (outputting_stabs_line_debug): Change it to int.
3762 * stabs.c (outputting_stabs_line_debug): Likewise.
3764 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3766 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3767 the address of a function result.
3769 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3771 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3772 (md_assemble): Call dwarf2_emit_insn.
3773 (shlib): Fix typo SHILB -> SHLIB.
3774 (md_parse_option): Likewise.
3775 (ppc_elf_validate_fix): Likewise:
3776 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3778 2000-12-12 Nick Clifton <nickc@redhat.com>
3780 * cgen.h: Fix formatting.
3781 * input-scrub.c: Fix formatting.
3782 * macro.c: Fix formatting.
3783 * config/tc-mips.c: Fix formatting.
3784 * doc/c-mips.texi: Fix formatting.
3786 Mon Dec 11 14:35:42 MET 2000 Jan hubicka <jh@suse.cz>
3788 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
3789 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3791 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3793 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
3796 * i386.h (*_Suf): Remove No_dSuf.
3797 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3799 (i386_optab): Remove 'd' in the suffixes.
3801 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3803 * config/tc-i386.c (T_SHORT): Undefine before defining.
3805 2000-12-05 Kazu Hirata <kazu@hxi.com>
3807 * config/tc-mips.c: Fix formatting.
3809 2000-12-04 Matthew Hiller <hiller@redhat.com>
3811 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3812 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3813 (md_show_usage): Ditto.
3814 (md_parse_option): Ditto.
3815 (d10v_cleanup): Writes pending instruction only if
3816 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
3817 Fix compile time warning messages.
3819 * doc/c-d10v.texi: Documents new options.
3821 2000-12-04 Matthew Hiller <hiller@redhat.com>
3823 * stabs.c (outputting_stabs_line_debug): New variable.
3824 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3825 function entry and unset at function exit.
3827 * read.h (outputting_stabs_line_debug): New extern declaration.
3829 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3831 * dwarf2dbg.c: Fix compile time warning messages.
3833 2000-12-03 Kazu Hirata <kazu@hxi.com>
3835 * config/tc-a29k.c: Fix formatting.
3836 * config/tc-alpha.c: Likewise.
3837 * config/tc-arm.c: Likewise.
3838 * config/tc-cris.c: Likewise.
3839 * config/tc-hppa.c: Likewise.
3840 * config/tc-i370.c: Likewise.
3841 * config/tc-i386.c: Likewise.
3842 * config/tc-i860.c: Likewise.
3843 * config/tc-i960.c: Likewise.
3844 * config/tc-ia64.c: Likewise.
3845 * config/tc-m68hc11.c: Likewise.
3846 * config/tc-m68k.c: Likewise.
3847 * config/tc-m88k.c: Likewise.
3848 * config/tc-pj.c: Likewise.
3849 * config/tc-ppc.c: Likewise.
3850 * config/tc-sh.c: Likewise.
3851 * config/tc-sparc.c: Likewise.
3852 * config/tc-tahoe.c: Likewise.
3853 * config/tc-vax.c: Likewise.
3855 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3857 * config/tc-mips.c (mips_ip): When calculating offsets,
3858 don't accept as constant the difference between the
3859 addresses of symbols in two different sections.
3861 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3863 (validate_mips_insn): Likewise. Also, update 'B' operand
3864 specifier to use OP_*_CODE20 constants and delete 'm' operand
3866 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3867 operand specifiers. Change warning generated by 'B' operand
3868 specifier to reflect its new multi-purpose usage.
3870 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3871 -1, and update comment.
3872 (file_mips_isa): Likewise.
3873 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3874 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3875 ISA_* constants rather than hard-coded numbers.
3876 (mips_cpu_info): New structure.
3877 (mips_cpu_info_table): New table describing CPU and ISA names
3879 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3880 mips_cpu_info_from_cpu): New functions.
3881 (mips_isa_to_str): New function to get string for ISA name.
3882 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3883 return const char *.
3884 (md_begin): Redo CPU and ISA selection logic, using
3885 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3886 than hard-coded numbers.
3887 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3888 ISA_* constants rather than hard-coded numbers.
3889 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3890 (md_longopts): Delete OPTION_NO_MIPS32.
3891 (md_parse_option): Convert to use ISA_* constants rather than
3892 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3893 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3894 to use strcasecmp to recognize "default" and to use
3895 mips_cpu_info_from_name to get CPU numbers from argument.
3896 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3897 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3899 (s_mipsset): Accept ISA value 32.
3900 * doc/as.texinfo: Clean up MIPS options summary slightly,
3901 remove -no-mips32. Add note about -mips4 and -mips32
3902 specifying those ISA levels. Delete -mips32 and -no-mips32
3903 cpu flag descriptions.
3904 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3905 up the supported CPU switch list, and replace 4Kc, 4Km, and
3906 4Kp entries with a single mips32-4k entry. Note that you can
3909 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
3911 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3913 (md_parse_option): Add cases for OPTION_MIPS5 and
3915 (md_show_usage): Mention -mips5 and -mips64 arguments.
3916 (s_mipsset): Add cases for MIPS5 and MIPS64.
3917 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
3919 * doc/as.texinfo: Mention -mips5 and -mips64 options
3921 * doc/c-mips.texi: Likewise. Also update introduction
3922 and ".set" usage information.
3924 * config/tc-mips.c (md_show_usage): Add "sb1" to the
3926 (mips_cpu_info_table): Add SB-1 entries.
3927 * doc/c-mips.texi: Add "sb1" to the list of CPUs
3928 known to the -mcpu option.
3930 * doc/as.texinfo: Correct description of MIPS -mcpu
3931 option, by copying some of the text from doc/c-mips.texi.
3933 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3935 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3937 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3938 (sparc*-*-rtems*): Switched from a.out to ELF.
3939 * configure: Regenerate.
3940 * config.in: Regenerate.
3941 * Makefile.in: Regenerate.
3942 * aclocal.m4: Regenerate.
3943 * po/gas.pot: Regenerate.
3945 2000-11-30 Philip Blundell <pb@futuretv.com>
3947 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
3948 even in non BFD_ASSEMBLER case.
3950 2000-11-30 Diego Novillo <dnovillo@redhat.com>
3952 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
3955 2000-11-29 Richard Henderson <rth@redhat.com>
3957 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
3958 until dwarf2_finish; use relaxation to get cross-fragment offsets;
3959 thread multiple subsegments properly; handle multiple code
3960 sections properly; emit proper compilation unit info for assembler
3961 generated debugging.
3963 * as.h (enum _relax_state): Add rs_dwarf2dbg.
3964 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
3965 (dwarf2dbg_estimate_size_before_relax): Declare.
3966 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
3967 * write.c: Include dwarf2dbg.h.
3968 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
3969 (relax_segment): Likewise.
3971 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
3973 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
3974 jump>: Use as_bad_where instead of as_bad. Tweak error message
3975 accordingly. Stabilize frag by updating fix part and resetting
3977 <undefined symbol, unconditional jump>: Ditto.
3978 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
3979 indexing is_end_of_line[].
3980 (md_assemble): Initialize size to 0.
3981 (md_section_align): Mark parameter seg as unused.
3982 (parse_reg): Parse names case-insensitively.
3984 2000-11-28 Kazu Hirata <kazu@hxi.com>
3986 * config/obj-aout.h: Fix formatting.
3987 * config/obj-bout.h: Likewise.
3988 * config/obj-coff.c: Likewise.
3989 * config/obj-coff.h: Likewise.
3990 * config/obj-elf.h: Likewise.
3991 * config/obj-som.h: Likewise.
3992 * config/obj-vms.c: Likewise.
3993 * config/obj-vms.h: Likewise.
3994 * config/tc-h8300.h: Likewise.
3995 * config/tc-ns32k.h: Likewise.
3996 * config/tc-sparc.h: Likewise.
3997 * config/tc-tic54x.h: Likewise.
3998 * config/tc-z8k.h: Likewise.
4000 2000-11-28 Nick Clifton <nickc@redhat.com>
4002 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
4003 License is present in the sources, but not the output, and
4004 also available from the GNU website.
4005 (GNU Free Documentation License): Comment out this section.
4007 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
4009 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
4010 targets. Remove i860 from valid a.out targets.
4011 * Makefile.in: Regenerate.
4013 * config/tc-cris.c: Include dwarf2dbg.h.
4014 (md_pseudo_table): Add .file and .loc.
4015 (md_assemble): Call dwarf2_emit_insn if generating ELF.
4016 (s_cris_file, s_cris_loc): New.
4017 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4018 * Makefile.am: Regenerate dependencies.
4019 * Makefile.in: Regenerate.
4021 2000-11-28 Alan Modra <alan@linuxcare.com.au>
4023 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
4024 (MRI_MUL_PRECEDENCE): Likewise.
4025 (op_rank): Fix a comment typo.
4027 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4029 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
4031 (get_operand): Fix analysis for movw/movb instructions.
4033 2000-11-24 Nick Clifton <nickc@redhat.com>
4035 * configure.in (xscale-elf): Add target.
4036 (xscale-coff): Add target.
4037 * configure: Regenerate.
4039 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
4041 (ARM_EXT_XSCALE): New ARM architecture extension.
4042 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
4043 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
4044 (ARM_THUMB): Rename to ARM_EXT_THUMB.
4045 (ARM_ARCH_V4): Remove processor from architecture.
4046 (ARM_ARCH_3M): New architecutre definition.
4047 (ARM_ARCH_V5TE): New architecutre definition.
4048 (ARM_ARCH_XSCALE): New architecutre definition.
4049 (CPU_DEFAULT): Allow to be defaulted to XScale.
4050 (atpcs): New boolean variable.
4051 (ldr_flags): Support 'd' flag for double word loads.
4052 (str_flags): Support 'd' flag for double word stored.
4053 (do_mia): New function.
4054 (do_mar): New function.
4055 (do_mra): New function.
4056 (do_pld): New function.
4057 (do_ldrd): New function.
4058 (do_blx): New function.
4059 (do_bkpt): New function.
4060 (do_clz): New function.
4061 (do_lstc2): New function.
4062 (do_cdp2): New function.
4063 (do_t_blx): New function.
4064 (do_t_bkpt): New function.
4065 (do_smla): New function.
4066 (do_smlal): New function.
4067 (do_smul): New function.
4068 (do_qadd): New function.
4069 (do_co_reg2c): New function.
4070 (LONGEST_INSN): Redefine to 7.
4072 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
4073 command line switches.
4075 2000-11-22 Jim Wilson <wilson@redhat.com>
4077 * config/tc-ia64.c (pseudo_func): Add missing initializers.
4078 (struct rsrc): Make line unsigned.
4079 (gr_values): Add missing initializer.
4080 (SLOT_NUM_NOT_SET): Add unsigned cast.
4081 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
4082 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
4083 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
4084 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
4085 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
4086 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
4087 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
4088 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
4089 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
4090 Add ATTRIBUTE_UNUSED to unused parameters.
4091 (convert_expr_to_ab_reg): Add parens.
4092 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
4093 (dot_prologue): Initialize grsave when declared.
4094 (md_pseudo_table): Add missing initializers.
4095 (operand_match): Add casts to bfd_vma.
4096 (emit_one_bundle): Delete unused local prev. Make required_template
4098 (specify_resource): Cast i to unsigned.
4099 (note_register_values): Use fprintf_vma.
4100 (print_dependency): Likewise.
4102 2000-11-21 Jim Wilson <wilson@redhat.com>
4104 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
4105 for unwind info section.
4106 (dot_endp): Likewise for unwind section.
4108 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
4111 2000-11-21 Jakub Jelinek <jakub@redhat.com>
4113 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
4114 (output_insn): Call dwarf2_emit_insn.
4115 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4117 2000-11-17 Richard Henderson <rth@redhat.com>
4119 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
4120 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
4121 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
4123 2000-11-17 Nick Clifton <nickc@redhat.com>
4125 * config/tc-arm.c (md_pseudo_table): Add support for .line and
4128 2000-11-17 Richard Henderson <rth@redhat.com>
4130 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
4132 2000-11-17 Richard Henderson <rth@redhat.com>
4134 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
4135 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
4136 tri-state definition of alpha_flag_mdebug.
4137 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
4138 (s_alpha_file): Store first .file directive.
4139 (s_alpha_stab): New.
4140 (md_pseudo_table): Add stabs and stabn.
4142 2000-11-17 Richard Henderson <rth@redhat.com>
4144 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
4146 2000-11-17 Richard Henderson <rth@redhat.com>
4148 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
4149 (main): Call dwarf2_finish.
4150 * as.h (debug_type): Clarify documentation of the meaning
4152 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
4153 (print_stats): Fix parenthesis problem.
4154 (now_subseg_size): New.
4155 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
4156 (dwarf2_directive_file): Don't set debug_type.
4157 (dwarf2_where): Honor DEBUG_DWARF2 first.
4158 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
4159 do nothing if not emitting dwarf2 debug info, or no work.
4160 * dwarf2dbg.h (dwarf2_emit_insn): Update.
4161 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
4162 (ecoff_new_file): Likewise.
4163 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
4164 commentary wrt dwarf2.
4166 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
4167 ATTRIBUTE_UNUSED as needed.
4168 (emit_insn): Call dwarf2_emit_insn.
4169 (s_alpha_file): New.
4171 (s_alpha_coff_wrapper): Don't handle them.
4172 (md_pseudo_table): Update for .file and .loc.
4173 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4175 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
4176 don't protect with debug_type.
4177 * config/tc-hppa.c (md_assemble): Likewise.
4178 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
4179 * config/tc-mn10300.c (md_assemble): Likewise.
4180 * config/tc-sh.c (md_assemble): Likewise.
4181 * config/tc-v850.c (md_assemble): Likewise.
4183 * config/tc-arm.c (arm_end_of_source): Remove.
4184 * config/tc-hppa.c (pa_end_of_source): Remove.
4185 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
4186 * config/tc-mn10300.c (mn10300_finalize): Remove.
4187 * config/tc-sh.c (sh_finalize): Remove.
4188 * config/tc-v850.c (sh_finalize): Remove.
4190 * config/tc-arm.h (md_end): Remove.
4191 * config/tc-hppa.h (md_end): Remove.
4192 (DWARF2_LINE_MIN_INSN_LENGTH): New.
4193 * config/tc-m68hc11.h (md_end): Remove.
4194 * config/tc-mn10300.h (md_end): Remove.
4195 * config/tc-sh.h (md_end): Remove.
4196 * config/tc-v850.h (md_end): Remove.
4198 * config/tc-ia64.c (emit_one_bundle): Don't protect
4199 dwarf2 bits with debug_type.
4200 (md_assemble): Likewise.
4201 (ia64_end_of_source): Don't call dwarf2_finish.
4203 2000-11-16 Jim Wilson <wilson@redhat.com>
4205 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
4206 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
4209 2000-11-16 H.J. Lu <hjl@gnu.org>
4211 * config/obj-elf.c (obj_elf_symver): Don't check the missing
4214 2000-11-15 Kazu Hirata <kazu@hxi.com>
4216 * config/tc-tic30.c: Fix formatting.
4217 * config/tc-tic80.c: Likewise.
4218 * config/tc-v850.c: Likewise.
4219 * config/tc-vax.c: Likewise.
4220 * config/tc-w65.c: Likewise.
4221 * config/tc-z8k.c: Likewise.
4223 2000-11-14 DJ Delorie <dj@redhat.com>
4225 * config/tc-v850.c: Support dwarf2.
4226 * config/tc-v850.h: Ditto.
4228 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
4229 parse_cons_expression_v850 to initialize hold_cons_reloc.
4231 2000-11-15 Bernd Schmidt <bernds@redhat.com>
4233 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
4234 (errata_nops_necessary_p): New function.
4235 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
4238 2000-11-14 Jim Wilson <wilson@redhat.com>
4240 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
4241 return little endian bfd formats.
4243 2000-11-14 Kazu Hirata <kazu@hxi.com>
4245 * config/aout_gnu.h: Fix formatting.
4246 * config/atof-vax.c: Likewise.
4247 * config/m68k-parse.h: Likewise.
4248 * config/m88k-opcode.h: Likewise.
4249 * config/obj-elf.c: Likewise.
4250 * config/tc-arm.c: Likewise.
4251 * config/tc-cris.c: Likewise.
4252 * config/tc-i386.c: Likewise.
4253 * config/tc-ia64.c: Likewise.
4254 * config/tc-mn10300.c: Likewise.
4255 * config/te-386bsd.h: Likewise.
4256 * config/te-hppa.h: Likewise.
4257 * config/te-nbsd.h: Likewise.
4258 * config/te-ppcnw.h: Likewise.
4259 * config/te-sparcaout.h: Likewise.
4260 * config/te-tmips.h: Likewise.
4261 * config/vax-inst.h: Likewise.
4262 * config/vms-conf.h: Likewise.
4264 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4266 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
4268 2000-11-13 H.J. Lu <hjl@gnu.org>
4270 * config/obj-elf.c (elf_frob_symbol): Support
4271 ".symver name,name2@@@nodename".
4272 (elf_frob_file_before_adjust): Likewise.
4274 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
4275 and ".symver name,name2@@@nodename".
4278 2000-11-12 H.J. Lu (hjl@gnu.org)
4280 * config/obj-elf.c (obj_elf_symver): Check missing version
4283 2000-11-12 H.J. Lu (hjl@gnu.org)
4285 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
4286 instead of bfd_vma for non-bfd assemblers.
4288 2000-11-09 Kazu Hirata <kazu@hxi.com>
4290 * itbl-ops.c: Fix comment typos.
4292 2000-11-08 Jim Wilson <wilson@redhat.com>
4294 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
4295 (struct unwind): Add next_slot_frag field.
4296 (slot_index): New parameters slot_frag and first_frag. Add code
4297 to add in frag sizes when different. Add comments.
4298 (fixup_unw_records): New locals first_frag and last_frag. Pass new
4299 arguments to slot_index.
4300 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
4301 loop end. Set next_slot_frag field.
4303 2000-11-07 H.J. Lu <hjl@gnu.org>
4305 * doc/as.texinfo (.symver): Updated for versioned symbol
4308 * obj.h (format_ops): Add the frob_file_before_adjust field.
4310 * config/obj-aout.c (aout_format_ops): Set the
4311 frob_file_before_adjust field to 0.
4312 * config/obj-coff.c (coff_format_ops): Likewise.
4313 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
4315 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
4317 (elf_frob_file_before_adjust): New function to remove unneeded
4318 versioned symbols from the symbol table.
4319 (elf_format_ops): Set the frob_file_before_adjust field to
4320 elf_frob_file_before_adjust.
4322 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4325 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4327 2000-11-07 Peter Targett <peter.targett@arccores.com>
4329 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4331 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4332 Fix compile time warning messages.
4334 2000-11-07 Nick Clifton <nickc@redhat.com>
4336 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4337 buffer in order to avoid buffer overflows.
4339 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4341 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4342 Change M to m for -milp32 or -mlp64 to match gcc.
4343 (dot_endp): Use bytes_per_address instead of 8.
4344 (emit_one_bundle): Use number_to_chars_littleendian instead of
4346 (fix_insn): Likewise.
4347 (ia64_init): New function.
4348 (ia64_target_format): New function.
4349 (md_begin): Set endianness, arch, and machine as appropriate.
4350 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4351 Make these macros depend on TE_HPUX macro.
4352 (TARGET_FORMAT): Define.
4353 (HOST_SPECIAL_INIT): Define.
4354 * config/te-hpux.h: New file.
4355 * configure.in: Add "ia64-*-hpux*" target to configure.
4356 * configure: Regenerate.
4358 2000-11-06 Kazu Hirata <kazu@hxi.com>
4360 * as.c: Fix formatting.
4361 * dwarf2dbg.c: Likewise.
4362 * input-file.c: Likewise.
4363 * input-file.h: Likewise.
4364 * input-scrub.c: Likewise.
4365 * itbl-ops.c: Likewise.
4366 * listing.c: Likewise.
4367 * macro.h: Likewise.
4368 * messages.c: Likewise.
4370 * subsegs.c: Likewise.
4371 * subsegs.h: Likewise.
4372 * write.c: Likewise.
4374 2000-11-06 Nick Clifton <nickc@redhat.com>
4376 * doc/as.texinfo: Add GNU Free Documentation License.
4377 * doc/gasp.texi: Add GNU Free Documentation License.
4378 * doc/as.1: Add GNU Free Documentation License.
4380 2000-11-05 Nick Clifton <nickc@redhat.com>
4382 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4384 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4386 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4387 * configure: Regenerate.
4389 2000-11-01 Nick Clifton <nickc@redhat.com>
4391 * read.c (original_case_string): New global variable.
4392 (read_a_source_file): Copy opcode string into
4393 original_case_string if clobbering the case of the opcode.
4394 * read.h: Export the definition of original_case_string.
4395 * config/tc-arm.c (md_assembler): When parsing a .req
4396 directive use the original opcode string, not the case
4399 2000-11-02 Nick Clifton <nickc@redhat.com>
4401 * config/tc-mn10300.c (debug_line): Remove this static
4403 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4404 dwarf2_where and dwarf2_gen_line_info.
4406 2000-11-02 Theo Honohan <th@futuretv.com>
4408 * config/tc-arm.c (do_msr): Improve error message.
4410 2000-10-31 Eric Christopher <echristo@redhat.com>
4412 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4413 or pc-relative, else use fx_offset.
4415 2000-10-31 Jim Wilson <wilson@redhat.com>
4417 * config/tc-ia64.c (struct md): New field tag_fixups.
4418 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4419 qualifying predicate.
4420 (emit_one_bundle): Delete spurious multiplication by one. Handle
4422 (ia64_start_line): Error if dangling qualifying predicate.
4423 (defining_tag): New static variable.
4424 (ia64_unrecognized_line, case '['): Parse tags.
4425 (ia64_frob_label): Create tag_fixups.
4426 (md_assemble): Reset md.qp.X_op after using it.
4428 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4430 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4432 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
4434 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
4436 2000-10-30 Kazu Hirata <kazu@hxi.com>
4438 * expr.c: Fix formatting.
4439 * flonum-copy.c: Likewise.
4440 * flonum.h: Likewise.
4444 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
4446 * as.h (OPTION_MD_BASE): Bump to 190.
4447 * as.c (parse_args) <std_longopts>: Add comment about the need to
4448 check OPTION_MD_BASE in as.h.
4450 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4453 2000-10-27 Nick Clifton <nickc@redhat.com>
4455 * configure.in (emulations): Add m68hc12.
4456 * configure: Regenerate.
4457 * po/gas.pot: Regenerate.
4459 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
4461 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4463 (arm_psr_parse): Handle lowercase CPSR and SPSR.
4465 2000-10-25 Nick Clifton <nickc@redhat.com>
4467 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4468 a DWARF2 line number information sequence.
4470 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4472 * read.c (generate_lineno_debug): Update comment describing why
4473 DWARF2 line number debug information is not generated
4474 automatically by this function.
4476 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4479 * config/tc-arm.h (md_end): Define.
4480 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4482 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4483 if generating DWARF2 line numbers.
4484 (arm_end_of_source): New function. Call dwarf2_finish if
4487 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4488 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4489 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
4491 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
4493 * config/tc-i386.c: Fix prototype declarations for functions taking no
4496 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
4498 * config/tc-i386.c (i386_operand_modifier): Remove.
4499 (build_displacement_string): Remove.
4500 (i386_parse_seg): Remove.
4501 (i386_intel_memory_operand): Remove.
4502 (i386_intel_operand): Re-write using recursive descent parser based
4503 on MASM documentation.
4504 (struct intel_parser_s): New structure.
4505 (intel_parser): New static variable.
4506 (struct intel_token): New structure.
4507 (cur_token, prev_token): New static variables.
4520 (intel_match_token): New function.
4521 (intel_get_token): New function.
4522 (intel_putback_token): New function.
4523 (intel_expr): New function.
4524 (intel_e05): New function.
4525 (intel_e05_1): New function.
4526 (intel_e06): New function.
4527 (intel_e06_1): New function.
4528 (intel_e09): New function.
4529 (intel_e09_1): New function.
4530 (intel_e10): New function.
4531 (intel_e10_1): New function.
4532 (intel_e11): New function.
4534 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4536 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4537 instructions to loose any special insn->architecture mask.
4539 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4540 (sparc_md_end, sparc_arch_types, sparc_arch,
4541 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4542 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4543 request v9b architecture if they are used).
4545 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4547 * config/tc-m68k.c: Fix the previous misapplied patch.
4549 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4551 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4552 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4553 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4556 2000-10-17 Kazu Hirata <kazu@hxi.com>
4558 * debug.c: Fix formatting.
4559 * depend.c: Likewise.
4560 * dwarf2dbg.c: Likewise.
4561 * dwarf2dbg.h: Likewise.
4562 * ecoff.c: Likewise.
4565 * flonum-konst.c: Likewise.
4566 * frags.h: Likewise.
4568 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4570 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4572 * doc/as.texinfo: Added notes about this new option.
4574 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
4576 * config/tc-sh.c (JREG): Remove.
4577 (md_convert_frag): Remove #if 0:d code using JREG.
4579 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
4581 * config/tc-i386.c (i386_operand_modifier): Only match
4582 modifiers SHORT and FLAT if they are followed by a space.
4583 (parse_register): When `allow_naked_reg' is set, do not confuse
4584 identifiers that start with a register name with a register.
4586 2000-10-12 Kazu Hirata <kazu@hxi.com>
4588 * app.c: Fix formatting.
4591 * bit_fix.h: Likewise.
4596 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4598 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4600 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4602 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4603 Re-arrange function a little and improve error message.
4605 * write.c (write_relocs): Fix a comment.
4607 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4610 2000-10-05 Jim Wilson <wilson@cygnus.com>
4612 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4614 2000-10-05 Alan Modra <alan@linuxcare.com.au>
4616 * config/tc-i386.c: Delete some useless comments, reformat others.
4618 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4619 non-global syms in linkonce sections.
4621 2000-10-04 Ralf Baechle <ralf@gnu.org>
4623 * config/tc-ia64.c (operand_match): Don't use // style comments.
4624 * config/tc-i370.c: Likewise.
4626 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4628 Changes to handle varying register prefix and user symbol prefix.
4629 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4630 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4631 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4632 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4633 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4634 (demand_register_prefix): New variable.
4635 (md_pseudo_table): New pseudo ".syntax".
4636 (md_longopts): New options --no-underscore and --underscore.
4637 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4638 on symbols_have_leading_underscore.
4639 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4640 (get_spec_reg): Ditto.
4641 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4643 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4645 <case OPTION_NO_US, case OPTION_US>: New.
4646 (md_show_usage): Be brief and reformat to match continuation of
4648 * po/gas.pot: Regenerate.
4650 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4652 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4653 force relocs for 12 bit branches.
4654 (md_apply_fix): Similarly, adjust logic here.
4656 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4658 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4659 adjust for external and weak syms as we will use a reloc. Allow
4660 for +8 offset when calculating limits of branches.
4661 (hppa_fix_adjustable): Undo 2000-09-23 change.
4662 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4663 Correct distance calculation.
4664 (tc_gen_reloc): Print the file name and line number if we can't
4667 From John David Anglin <dave@hiauly1.hia.nrc.ca>
4668 * config/tc-hppa.c (nonzero_dibits): Define.
4669 (arg_reloc_stub_needed): Check each arg and return value
4670 separately for zero case.
4671 (pa_align): Declare argument `bytes'.
4673 2000-09-25 Kazu Hirata <kazu@hxi.com>
4675 * config/tc-cris.c: Fix formatting.
4676 * config/tc-d10v.h: Likewise.
4677 * config/tc-d30v.c: Likewise.
4678 * config/tc-d30v.h: Likewise.
4679 * config/tc-fr30.c: Likewise.
4680 * config/tc-fr30.h: Likewise.
4681 * config/tc-m68k.c: Likewise.
4682 * config/tc-m68k.h: Likewise.
4683 * config/tc-pj.h: Likewise.
4684 * config/tc-ppc.c: Likewise.
4685 * config/tc-ppc.h: Likewise.
4686 * config/tc-sh.c: Likewise.
4687 * config/tc-sh.h: Likewise.
4688 * config/tc-sparc.c: Likewise.
4689 * config/tc-v850.h: Likewise.
4690 * config/tc-vax.h: Likewise.
4691 * config/tc-w65.h: Likewise.
4692 * config/tc-z8k.h: Likewise.
4694 2000-09-23 Alan Modra <alan@linuxcare.com.au>
4696 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4697 checks only for ELF.
4698 (hppa_force_relocation): Likewise.
4700 2000-09-22 Jim Wilson <wilson@cygnus.com>
4702 * config/tc-ia64.c (dv_sem): Add "stop".
4703 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4704 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4705 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4707 (mark_resources): Check IA64_RS_PRr.
4709 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4711 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
4712 md_estimate_size_before_relax): Redesign and clean up the
4713 relaxation mechanism.
4715 2000-09-21 Kazu Hirata <kazu@hxi.com>
4717 * config/tc-ns32k.c: Fix formatting.
4718 * config/tc-ns32k.h: Likewise.
4720 2000-09-20 Kazu Hirata <kazu@hxi.com>
4722 * config/tc-m32r.c: Fix formatting.
4723 * config/tc-m32r.h: Likewise.
4724 * config/tc-m68851.h: Likewise.
4725 * config/tc-m68hc11.c: Likewise.
4726 * config/tc-m68hc11.h: Likewise.
4727 * config/tc-m88k.c: Likewise.
4728 * config/tc-mcore.c: Likewise.
4729 * config/tc-mcore.h: Likewise.
4730 * config/tc-mips.c: Likewise.
4731 * config/tc-mips.h: Likewise.
4732 * config/tc-mn10200.h: Likewise.
4733 * config/tc-mn10300.h: Likewise.
4734 * config/tc-tahoe.c: Likewise.
4735 * config/tc-tahoe.h: Likewise.
4737 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4739 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4740 Likewise in relaxation description comments.
4742 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4744 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4745 subtraction of two syms without emitting a relocation.
4747 From David Huggins-Daines <dhd@linuxcare.com>
4748 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4749 global or weak symbols.
4751 2000-09-15 Kazu Hirata <kazu@hxi.com>
4753 * config/tc-h8300.h: Fix formatting.
4754 * config/tc-h8500.c: Likewise.
4755 * config/tc-h8500.h: Likewise.
4756 * config/tc-hppa.h: Likewise.
4757 * config/tc-i370.h: Likewise.
4758 * config/tc-i386.h: Likewise.
4759 * config/tc-i860.c: Likewise.
4760 * config/tc-i860.h: Likewise.
4761 * config/tc-i960.h: Likewise.
4762 * config/tc-ia64.c: Likewise.
4763 * config/tc-ia64.h: Likewise.
4765 2000-09-14 Kazu Hirata <kazu@hxi.com>
4767 * config/tc-a29k.c: Fix formatting.
4768 * config/tc-alpha.c: Likewise.
4769 * config/tc-arc.c: Likewise.
4770 * config/tc-arc.h: Likewise.
4771 * config/tc-arm.c: Likewise.
4772 * config/tc-arm.h: Likewise.
4773 * config/tc-avr.c: Likewise.
4774 * config/tc-avr.h: Likewise.
4775 * config/tc-tic30.c: Likewise.
4776 * config/tc-tic30.h: Likewise.
4777 * config/tc-tic54x.c: Likewise.
4778 * config/tc-tic54x.h: Likewise.
4779 * config/tc-tic80.c: Likewise.
4780 * config/tc-tic80.h: Likewise.
4782 2000-09-14 Timothy Wall <twall@cygnus.com>
4784 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4785 parallel comparisons for later use.
4786 (struct rsrc): Add parallel comparison type.
4787 (resources_match): Skip special cases of PR usage (non-conflicting
4790 2000-09-13 Kazu Hirata <kazu@hxi.com>
4792 * config/obj-ecoff.c: Fix formatting.
4793 * config/obj-elf.c: Likewise.
4794 * config/obj-elf.h: Likewise.
4795 * config/obj-evax.h: Likewise.
4796 * config/obj-generic.h: Likewise.
4797 * config/obj-hp300.c: Likewise.
4798 * config/obj-hp300.h: Likewise.
4799 * config/obj-ieee.h: Likewise.
4800 * config/obj-vms.c: Likewise.
4801 * config/obj-vms.h: Likewise.
4803 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4805 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4806 (md_parse_option): Ditto.
4807 (md_longopts): Add -mips32 option.
4808 (md_show_usage): Document new options.
4809 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4810 (mips_ip): Assemble mfc0 with a sub-selection code.
4811 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
4812 (mips_cpu_to_str): New function.
4813 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4814 Use CPU_* defines instead of hardcoded numbers.
4816 * doc/as.texinfo: Document new options.
4817 * doc/c-mips.texi: Ditto.
4819 2000-09-12 Kazu Hirata <kazu@hxi.com>
4821 * as.h: Fix formatting.
4822 * asintl.h: Likewise.
4823 * bit_fix.h: Likewise.
4824 * config/obj-aout.c: Likewise.
4825 * config/obj-aout.h: Likewise.
4826 * config/obj-bout.c: Likewise.
4827 * config/obj-bout.h: Likewise.
4828 * config/obj-coff.c: Likewise.
4829 * config/obj-coff.h: Likewise.
4830 * dwarf2dbg.h: Likewise.
4832 * flonum.h: Likewise.
4833 * frags.h: Likewise.
4834 * itbl-ops.h: Likewise.
4835 * macro.h: Likewise.
4838 * struc-symbol.h: Likewise.
4839 * subsegs.h: Likewise.
4840 * symbols.h: Likewise.
4842 * write.h: Likewise.
4844 2000-09-11 Kazu Hirata <kazu@hxi.com>
4846 * bignum-copy.c: Fix formatting.
4847 * config/tc-i370.c: Likewise.
4848 * config/tc-i960.c: Likewise.
4849 * config/tc-m68k.c: Likewise.
4850 * ehopt.c: Likewise.
4851 * flonum-copy.c: Likewise.
4852 * flonum-konst.c: Likewise.
4853 * flonum-mult.c: Likewise.
4854 * literal.c: Likewise.
4857 * stabs.c: Likewise.
4858 * subsegs.c: Likewise.
4860 2000-09-09 Philip Blundell <philb@gnu.org>
4862 * configure.in (arm*-*-uclinux*): New target.
4863 * configure: Regenerate.
4865 2000-09-09 Kazu Hirata <kazu@hxi.com>
4867 * input-file.c: Fix formatting.
4868 * itbl-ops.c: Likewise.
4869 * messages.c: Likewise.
4871 2000-09-08 Philip Blundell <philb@gnu.org>
4873 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4876 2000-09-07 H.J. Lu <hjl@gnu.org>
4878 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4879 * configure: Rebuild.
4881 2000-09-07 Kazu Hirata <kazu@hxi.com>
4883 * atof-generic.c: Fix formatting.
4884 * config/tc-mips.c: Likewise.
4885 * config/tc-vax.c: Likewise.
4886 * input-scrub.c: Likewise.
4888 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4890 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4891 * configure.in (sh-*-linux*): Added.
4892 * configure: Rebuilt.
4894 2000-09-06 Kazu Hirata <kazu@hxi.com>
4896 * config/tc-hppa.c: Fix formatting.
4898 * ecoff.c: Fix formatting.
4900 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4902 * configure: Rebuilt with new libtool.m4.
4904 2000-09-05 Kazu Hirata <kazu@hxi.com>
4906 * cgen.c: Fix formatting.
4907 * config/tc-ia64.c: Likewise.
4909 2000-09-05 Nick Clifton <nickc@redhat.com>
4911 * aclocal.m4: Regenerate.
4912 * config.in: Regenerate.
4913 * configure: Regenerate.
4914 * po/gas.pot: Regenerate.
4916 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
4918 * config/tc-cris.c: Correct comment typos.
4920 2000-09-05 Eric Christopher <echristo@cygnus.com>
4922 * config/tc-mn10300.c: Cleanup.
4923 (md_pcrel_from): Enable.
4925 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4927 * expr.c (operand): Fix a comment typo.
4928 * write.c (write_relocs): Fix a signed/unsigned warning.
4930 * config/tc-hppa.c (fudge_reg_expressions): New
4931 (hppa_force_reg_syms_absolute): New.
4932 (pa_equ): Allow reg_section expressions.
4933 * config/tc-hppa.c (md_optimize_expr): Define.
4934 (hppa_force_reg_syms_absolute): Prototype.
4936 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
4937 (pa_parse_number): Pass in arg to select fp reg parsing.
4938 Return 1 to indicate format checks pass. If strict, then only
4939 accept a register or register symbol. Return value in...
4940 (pa_number): New static for pa_parse_number.
4941 (FP_REG_BASE): Define.
4942 (FP_REG_RSEL): Define.
4943 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
4944 appropriate. White space changes.
4945 (need_pa11_opcode): Don't bother passing any params, get them from
4947 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
4948 Remove extraneous check in case 'Q'.
4949 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
4950 reg, set section of resulting symbol to reg_section.
4951 (pa_parse_space_stmt): Modify call to pa_parse_number.
4952 (pa_space): Likewise.
4954 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
4955 (hppa_force_relocation): Handle vtable relocs.
4956 (pa_vtable_entry): New.
4957 (pa_vtable_inherit): New.
4958 (md_pseudo_table): Add entries for vtable pseudos.
4959 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
4960 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
4962 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
4963 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
4964 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
4966 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
4967 specify a symbol type.
4969 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
4970 dependent things together.
4971 (md_elf_symbol_type): Define.
4973 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
4975 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
4977 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
4978 (obj_elf_vtable_entry): Declare.
4980 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
4981 and export function.
4982 (obj_elf_vtable_entry): Similarly.
4983 (elf_pseudo_table): Fix the damage with a cast.
4985 2000-09-03 Richard Henderson <rth@cygnus.com>
4987 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
4988 for template selection when a label is needed.
4990 2000-09-02 Kazu Hirata <kazu@hxi.com>
4992 * config/tc-ia64.c: Fix formatting.
4994 2000-09-02 Nick Clifton <nickc@redhat.com>
4996 * configure.in: Increase version number to 2.10.91.
4997 * configure: Regenerate.
4998 * aclocal.m4: Regenerate.
4999 * config.in: Regenerate.
5000 * po/gas.pot: Regenerate.
5001 * Makefile.in: Regenerate.
5003 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
5005 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
5006 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
5007 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
5009 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
5012 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5014 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
5015 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
5016 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
5017 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
5018 (GOT_symbol): New variable.
5019 (md_undefined_symbol): Set it.
5021 2000-09-01 Richard Henderson <rth@cygnus.com>
5023 * config/tc-ia64.c (match): Don't inline.
5024 (extra_goodness): New.
5025 (md_begin): Prefer nop.f and nop.b for best_template.
5027 2000-08-31 Kazu Hirata <kazu@hxi.com>
5029 * as.c: Fix formatting.
5031 * frags.c: Likewise.
5032 * macro.c: Likewise.
5034 2000-08-31 Eric Christopher <echristo@cygnus.com>
5036 * config/tc-mn10300.c: Cleanup and fix warnings.
5037 (md_pseudo_table): Add initializers.
5038 (md_show_usage): Cleanup.
5039 (md_parse_option): Fix warnings.
5040 (md_undefined_symbol): Fix warnings.
5041 (md_conver_frag): Fix warnings.
5042 (tc_gen_reloc): Fix warnings.
5043 (md_apply_fix3): Fix warnings.
5044 (check_operand): Fix warnings.
5046 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5048 * acinclude.m4: Include libtool and gettext macros from the
5050 * aclocal.m4, configure: Rebuilt.
5052 2000-08-30 Mark Hatle <mhatle@mvista.com>
5054 * config/tc-ppc.c (md_parse_option): Recognize -m405.
5056 2000-08-31 Kazu Hirata <kazu@hxi.com>
5058 * listing.c: Fix formatting.
5060 2000-08-29 Kazu Hirata <kazu@hxi.com>
5062 * app.c: Fix a comment typo. Fix formatting.
5064 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5066 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
5067 offset of the target destination for jmp instructions.
5068 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
5070 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5072 * NEWS: Mention support for CRIS.
5074 Thu Aug 24 20:41:05 2000 Denis Chertykov <denisc@overta.ru>
5076 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
5077 Sets `.lcomm' alignment to zero.
5079 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5081 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
5082 TC_FIX_ADJUSTABLE): Define.
5084 2000-08-23 Jim Wilson <wilson@cygnus.com>
5086 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
5087 unwind.personality_routine is set.
5089 2000-08-23 H.J. Lu <hjl@gnu.org>
5091 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
5093 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5095 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
5098 2000-08-22 H.J. Lu <hjl@gnu.org>
5100 * config.in (STRICTCOFF): New for strict COFF.
5102 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
5103 i386-*-go32* and i386-go32-rtems*.
5104 * configure: Rebuilt.
5106 * config/obj-coff.c (obj_coff_endef): Follow the historical
5107 behavior if STRICTCOFF is not defined.
5109 * doc/internals.texi: Document STRICTCOFF.
5111 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5113 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
5114 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
5115 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5116 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
5117 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5118 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
5119 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
5122 2000-08-22 Eric Christopher <echristo@cygnus.com>
5124 * config/tc-mn10300.c: (md_apply_fix): New function.
5125 (mn10300_force_relocation): New function.
5126 (mn10300_fix_adjustable): New function.
5128 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
5129 (TC_HANDLES_FX_DONE): Define.
5130 (obj_fix_adjustable): Define.
5131 (MD_APPLY_FIX3): Define.
5132 (TC_LINKRELAX_FIXUP): Define.
5134 * write.c: (TC_LINKRELAX_FIXUP): Define if not
5136 (fixup_segment): Use TC_LINKRELAX_FIXUP.
5138 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
5140 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5142 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
5143 if the fixup resulted in a relocation.
5145 2000-08-18 Nick Clifton <nickc@redhat.com>
5147 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
5148 Make reference to first element of shift_names explicit.
5150 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
5152 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
5153 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
5154 add a symbol's address. Removed all target-specific #ifdefs that
5155 used to accomplished the same.
5156 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5157 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5158 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5159 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5160 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5162 2000-08-17 Kazu Hirata <kazu@hxi.com>
5164 * dwarf2dbg.c: Fix formatting.
5166 2000-08-17 Nick Clifton <nickc@redhat.com>
5168 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
5169 to be recoded as logical shift lefts by zero.
5171 2000-08-16 Jim Wilson <wilson@cygnus.com>
5173 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
5174 postincrement modified registers. Handle IA64_OPND_R3_2 addl
5176 (note_register_values): Handle IA64_OPND_R3_2 operands.
5178 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5180 * config/tc-i860.c (md_operand): Silly typo fixed.
5182 2000-08-16 Nick Clifton <nickc@redhat.com>
5184 * config/tc-arm.c (struct asm_shift): Delete.
5186 (enum asm_shift_index): New.
5187 (struct asm_shift_properties): New.
5188 (struct asm_shift_name): New.
5189 (shift_properties[]); New.
5190 (shift_names[]); New.
5192 (decode_shift): Use new structures.
5193 Issue a warning is "ROR #0" is used.
5194 Issue a warning if "ASR #0" or "LSR #0" is used.
5196 (md_begin): Initialise arm_shift_hsh table from new
5197 asm_shift_name array.
5199 2000-08-16 Jakub Jelinek <jakub@redhat.com>
5201 * config/tc-sparc.c: Kill all warnings.
5202 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
5204 (md_show_usage): Update usage text.
5206 2000-08-16 Nick Clifton <nickc@redhat.com>
5208 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
5211 2000-08-15 Will Cohen <wcohen@redhat.com>
5213 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
5215 * config/tc-sh.c (md_assemble): Changed so debug_type
5216 test performed for ppi_assemble
5217 * config/tc-sh.c: Included dwarf2dbg.h.
5218 (debug_line): Defined.
5219 (md_assemble): Generates dwarf2 line info.
5220 (sh_finalize): New function. Finalize dwarf2 info.
5221 (assemble_ppi): Returns size of code generated.
5222 (build_Mytes): Returns size of code generated.
5223 (md_pseudo_table): Added "file" and "loc" psuedo ops.
5224 * config/tc-sh.h (md_end): Defined.
5225 (sh_finalize): Declared.
5227 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
5229 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
5232 2000-08-14 Nick Clifton <nickc@redhat.com>
5234 * config/tc-arm.c (do_bx): Allow "bx pc".
5236 2000-08-14 Jim Wilson <wilson@cygnus.com>
5238 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
5239 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
5240 (md_begin): Change assignment to md.flag to OR in the new bit.
5242 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
5244 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
5245 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
5248 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5250 * NEWS: Mention i860 support.
5252 Mon Aug 14 11:49:12 2000 Jeffrey A Law (law@cygnus.com)
5254 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5256 2000-08-14 Andreas Schwab <schwab@suse.de>
5258 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
5260 2000-08-11 Andreas Schwab <schwab@suse.de>
5262 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
5265 2000-08-11 Kazu Hirata <kazu@hxi.com>
5267 * expr.c: Fix formatting.
5268 * config/obj-bout.c: Likewise.
5270 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5272 * doc/c-i860.texi: Flesh out the i860 section more.
5274 2000-08-10 Kazu Hirata <kazu@hxi.com>
5276 * symbols.c: Fix formatting.
5279 Wed Aug 9 16:28:21 EDT 2000 Diego Novillo <dnovillo@cygnus.com>
5281 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
5282 modifier has the IgnoreSize bit set.
5284 2000-08-09 Alan Modra <alan@linuxcare.com.au>
5286 From Rodney Brown <RodneyBrown@mynd.com>
5287 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
5288 * configure: Regenerate.
5290 2000-08-09 Kazu Hirata <kazu@hxi.com>
5292 * hash.c: Fix formatting.
5295 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5297 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
5298 (i860_fix_info): New enum.
5299 (MD_APPLY_FIX3): Define.
5300 (WORKING_DOT_WORD): Define.
5301 (TC_HANDLES_FX_DONE): Define.
5302 (DIFF_EXPR_OK): Define.
5303 (LISTING_HEADER): Define.
5304 (TARGET_FORMAT): Select target format based on endian flag.
5305 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
5306 (target_big_endian): Add external declaration.
5308 * config/tc-i860.c: All existing code reworked completely. Other
5309 new code shown below.
5310 (SYNTAX_SVR4): Define.
5311 (target_warn_expand): New variable.
5312 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
5313 (md_longopts): Declare and define with new options (-EL, -EB,
5315 (md_show_usage): New function.
5316 (md_operand): New function.
5317 (obtain_reloc_for_imm16): New function.
5318 (md_apply_fix3): New function.
5319 (tc_gen_reloc): New function.
5321 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5323 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5324 2 bytes of the jump address are in the same frag.
5325 (find): Accept 68hc12 register indirect modes.
5327 * NEWS: Mention 68HC11 & 68HC12 support.
5329 2000-08-07 Richard Henderson <rth@cygnus.com>
5331 * config/tc-ia64.c (unwind): Add prologue_mask member.
5332 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5333 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5334 (dot_body): Clear unwind.prologue_mask.
5335 (dot_prologue): Set it. Accept a register second argument.
5337 2000-08-07 Kazu Hirata <kazu@hxi.com>
5339 * config/atof-ieee.c: Fix formatting.
5340 * config/atof-tahoe.c: Likewise.
5342 2000-08-06 Nick Clifton <nickc@cygnus.com>
5344 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5347 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5348 of .popsection, .previous, .pushsection, .subsection,
5349 .version, .vtable_entry, .vtable_inherit and .weak.
5351 2000-08-05 Kazu Hirata <kazu@hxi.com>
5353 * config/tc-cris.c: Fix formatting.
5354 * config/tc-i386.c: Likewise.
5355 * config/tc-sparc.c (sparc_ip): Simplify the code.
5357 2000-08-04 Kazu Hirata <kazu@hxi.com>
5359 * config/tc-cris.c: Rearrange code for readability.
5360 * config/tc-d10v.c: Fix formatting.
5361 * config/tc-m32r.c: Likewise.
5362 * config/tc-sparc.c: Likewise.
5364 2000-08-02 Jim Wilson <wilson@cygnus.com>
5366 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5367 before ia64_find_opcode.
5368 (md_assemble): Likewise.
5370 2000-08-01 Nick Clifton <nickc@cygnus.com>
5372 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
5373 Undo some formatting fixes.
5375 2000-08-01 Kazu Hirata <kazu@hxi.com>
5377 * config/obj-som.c: Fix formatting.
5378 * config/obj-ieee.c: Likewise.
5379 * config/tc-arm.c: Likewise.
5380 * config/tc-v850.c: Likewise.
5382 2000-08-01 Nick Clifton <nickc@redhat.com>
5384 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5385 index by command line option.
5387 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5389 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5390 (@node M68K-Branch): Rewrite to match the reality.
5392 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5394 * doc/c-i860.texi: New file.
5395 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5396 * doc/Makefile.in: Regenerate.
5397 * doc/all.texi: Add I860 as relevant architecture.
5398 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5400 2000-07-31 Kazu Hirata <kazu@hxi.com>
5402 * config/tc-d30v.c: Fix formatting.
5404 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5406 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5407 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5408 long emit a long branch if available instead of an absolute jump, never
5409 emit absolute jumps for anything with --pcrel.
5411 * doc/c-m68k.texi: Document new command line option.
5413 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
5415 * config/tc-avr.c: Use PARAMS macro in function declarations.
5416 Don't declare md_pcrel_from_section (already in tc-avr.h).
5417 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5418 (avr_operand): Don't set (unsigned) op_mask to -1.
5420 2000-07-28 Jason Eckhardt <jle@cygnus.com>
5422 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5423 * configure: Regenerated.
5424 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5425 of operand to the .type directive (.e.g, "type").
5427 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5429 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5430 * app.c (do_scrub_chars): Record where first comment found.
5431 * read.c (read_a_source_file): Init found_comment on entry, and
5432 notify whether comments found on exit.
5433 * config/tc-hppa.c (md_shortopts): Add "c".
5434 (md_longopts): Add warn-comment.
5435 (md_parse_option): Handle it.
5436 (md_show_usage): Show available options.
5437 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5439 Thu Jul 27 11:25:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
5441 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5442 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
5444 (md_estimate_size_before_relax): Don't fall off end of function.
5446 2000-07-27 Kazu Hirata <kazu@hxi.com>
5448 * config/tc-avr.c: Fix formatting.
5449 * config/tc-ns32k.c: Likewise.
5451 2000-07-27 Alan Modra <alan@linuxcare.com.au>
5453 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5455 2000-07-27 Kazu Hirata <kazu@hxi.com>
5457 * config/tc-d10v.c: Fix formatting.
5458 * config/tc-z8k.c: Likewise.
5459 * config/tc-sparc.c: Likewise.
5461 2000-07-26 Dave Brolley <brolley@redhat.com>
5463 * cgen.c (queue_fixup): Declare opinfo.
5464 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5465 (gas_cgen_md_operand): Ditto.
5466 (gas_cgen_md_apply_fix3): Ditto.
5468 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
5470 * config/obj-coff.c (obj_frob_symbol): Don't merge
5471 labels. Don't merge if the symbol isn't constant. Return
5472 immediately if a symbol is merged.
5474 2000-07-22 Alan Modra <alan@linuxcare.com.au>
5476 * frags.c (frag_align): Correct absolute section alignment.
5478 2000-07-20 DJ Delorie <dj@redhat.com>
5480 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5481 it breaks linking against DLLs.
5483 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5485 * configure.in: Add CRIS support.
5486 * configure: Regenerate.
5487 * Makefile.am: (CPU_TYPES): Add cris.
5488 (CPU_OBJ_VALID) [aout]: Add cris.
5489 (MULTI_CPU_TYPES): Add cris.
5490 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
5491 [coff]: Only i386 and mips are valid.
5492 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5493 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5494 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5495 Regenerate dependencies.
5496 * Makefile.in: Regenerate.
5497 * aclocal.m4: Regenerate.
5498 * as.c: Declare crisaout, criself.
5499 * config/tc-cris.h, config/tc-cris.c: New.
5500 * config/e-criself.c, config/e-crisaout.c: New.
5501 * po/POTFILES.in, po/gas.pot: Regenerate.
5503 2000-07-20 Kazu Hirata <kazu@hxi.com>
5505 * read.c: Fix formatting.
5506 * write.c: Fix formatting.
5508 2000-07-19 H.J. Lu <hjl@gnu.org>
5510 * sb.c: Include <stdlib.h> if exists for abort ().
5512 2000-07-19 Alan Modra <alan@linuxcare.com.au>
5514 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5515 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5516 (pa_type_args): Same here.
5518 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
5520 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5521 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5522 the storage class is already set.
5524 2000-07-17 Kazu Hirata <kazu@hxi.com>
5526 * config/tc-m68hc11.c: Fix formatting.
5527 * config/tc-mn10200.c: Likewise.
5528 * config/tc-mn10300.c: Likewise.
5529 * config/tc-pj.c: Likewise.
5530 * config/tc-tic80.c: Likewise.
5531 * config/tc-w65.c: Likewise.
5533 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
5535 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5538 2000-07-15 Ian Lance Taylor <ian@zembu.com>
5540 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5543 2000-07-15 Alan Modra <alan@linuxcare.com.au>
5545 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5546 ELF as are used for SOM (except the 32-bit reloc one) to decide
5547 whether a symbol can be reduced to a section symbol. Expand on
5548 the comment for symbols involved in LR% and RR% expressions.
5550 2000-07-14 Nick Clifton <nickc@cygnus.com>
5552 * config/tc-mips.c (mips_disable_float_construction): New
5553 static variable. Set to true if doubles should not be
5554 constructed by loading two single width fp registers with
5555 halves of the value.
5556 (mips_ip): Test mips_disable_float_construction.
5557 (md_longopts): Add command line switches --construct-floats
5558 and --no-construct-floats.
5559 (md_parse_option): Parse new command line options.
5560 (md_show_usage): Describe new command line options.
5562 * doc/c-mips.texi: Document new command line options.
5564 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
5566 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5567 * configure: Regenerate.
5569 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
5571 * configure.in (DEFAULT_EMULATION setting): Revert part of
5572 2000-07-01 change that set te_multi=multi unless set to tmips.
5573 * configure: Regenerate.
5575 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5577 * config/obj-coff.c (coff_frob_section): Add padding to the last
5578 section when aligning it increases its size.
5580 2000-07-11 Kazu Hirata <kazu@hxi.com>
5582 * config/tc-tic54x.c: Fix formatting.
5584 2000-07-10 Kazu Hirata <kazu@hxi.com>
5586 * config/tc-h8500.c: Fix formatting.
5587 * config/tc-tic54x.c: Fix formatting.
5589 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5591 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5592 displacements correctly.
5594 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5596 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
5598 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5602 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5604 From David Huggins-Daines <dhd@linuxcare.com>
5605 * config/te-hppalinux64.h: Add a new emulation.
5606 * configure.in (emulations): Add configure bits to support the
5607 64-bit Linux/parisc target.
5608 * configure: Regenerate.
5610 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5611 (md_shortopts): Add `V' for ELF.
5613 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5614 when SOM or ELF_ARG_RELOC are defined.
5615 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5616 ELF_ARG_RELOC are defined.
5617 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5618 (pa_stringer): ..Do it here instead. Fix comment typos.
5619 (hppa_force_relocation): Cast enums to int before comparing with
5622 From Ryan Bradetich <rbradetich@uswest.net>
5623 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5624 redifinition warning.
5625 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5626 (hppa_force_relocation): ditto
5627 (md_apply_fix): Added cast to buf to fix warnings.
5629 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5630 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5632 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5633 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5634 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5635 reloc_type** to avoid warnings in switch.
5636 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5637 little earlier instead.
5639 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5641 (pa_type_args): Use symbol_arg_reloc_info.
5642 (struct pa_it): Make arg_reloc unsigned int.
5643 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5644 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5645 (pa_code): Delete. pa_text duplicates this function.
5646 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5647 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5649 (cons_fix_new_hppa): Actually change selector to e_fsel when
5650 warning about assuming so.
5651 (tc_gen_reloc): More example elf arg reloc code.
5652 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5653 (hppa_force_relocation): Likewise.
5655 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5657 (pa_end_of_source): Prototype.
5658 (hppa_fix_adjustable): Prototype.
5659 (LABELS_WITHOUT_COLONS): Move it..
5660 * config/te-hppa.h: To here.
5662 * config/te-hppa64.h: New file.
5664 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5666 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5667 format -10, -16, 16 relocs.
5668 (hppa_elf_mark_end_of_function): Test for null
5669 last_call_info->start_symbol
5671 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5672 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5673 re_assesmble_* functions. Delete extraneous statements. Fix
5675 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5676 insn to re_assemble_*.
5678 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
5680 * doc/internals.texi (Expressions): Fix typo.
5682 2000-07-08 Kazu Hirata <kazu@hxi.com>
5684 * config/tc-sh.c: Fix formatting.
5685 * config/tc-tic54x.c: Fix formatting.
5686 * depend.c: Fix formatting.
5687 * flonum-konst.c: Likewise.
5688 * flonum-mult.c: Likewise.
5690 2000-07-07 Kazu Hirata <kazu@hxi.com>
5692 * config/tc-sh.c: Fix comments.
5693 * config/obj-vms.c: Fix comments.
5694 * config/tc-a29k.c: Likewise.
5695 * config/tc-alpha.c: Likewise.
5696 * config/tc-h8300.c: Likewise.
5697 * config/tc-h8500.c: Likewise.
5698 * config/tc-i370.c: Likewise.
5699 * config/tc-ia64.c: Likewise.
5700 * config/tc-m68hc11.c: Likewise.
5701 * config/tc-m68k.c: Likewise.
5702 * config/tc-mips.c: Likewise.
5703 * config/tc-ns32k.c: Likewise.
5704 * config/tc-ppc.c: Likewise.
5705 * config/tc-z8k.c: Likewise.
5707 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
5709 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5710 Default to '(SEC_LOAD | SEC_DATA)'.
5711 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5713 * doc/internals.texi (CPU Backend): Describe
5714 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5716 Thu Jul 6 17:20:58 2000 Andrew Cagney <cagney@b1.cygnus.com>
5718 * as.c (parse_args): NULL terminate the long option list.
5720 Tue Jul 4 14:08:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
5722 * config/tc-d30v.h: Include "write.h" for fixS.
5723 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
5725 2000-07-05 Nick Clifton <nickc@cygnus.com>
5727 * config/tc-d30v.c (write_2_short): Further changes to warning
5728 messages produced when combining EITHER_BUT_PREFER_MU attributed
5731 2000-07-05 DJ Delorie <dj@redhat.com>
5735 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5737 * config/tc-arm.c (psrs): Accept combinations of flags.
5739 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5741 * config/tc-avr.c: Change _ () to _() around all strings marked
5742 for translation (exception from the usual coding style).
5743 (avr_opt): New struct variable, how the new switches are set.
5744 (OPTION_MMCU): Define as 'm' and actually use.
5745 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5746 (show_mcu_list): New function, display the list of known MCUs.
5747 (md_show_usage): Document the new switches. Call show_mcu_list.
5748 (avr_set_arch): Change 'm' to OPTION_MMCU.
5749 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5750 Handle the new switches.
5751 (avr_operands): Disable warnings for undefined combinations of
5752 operands if -mall-opcodes. Disable warnings for skipping two-word
5753 instructions if enhanced core or -mno-skip-bug.
5754 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5755 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5756 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5757 (avr_ldi_expression): Warn about implicit lo8().
5758 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5760 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5762 * configure.in: Add entry for mips-*-sysv4*MP*
5763 * configure: Rebuild
5764 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5765 elf32-tradlittlemips for traditional mips targets.
5766 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5767 test for Link Once sections as in adjust_reloc_syms.
5768 * config/te-tmips.h: New file for traditional mips targets. Define
5771 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5773 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5774 flags argument is not present, don't change an existing section's
5775 section's attributes. If the flags argument is present, warn if the
5776 attributes don't match the section's current attributes. When
5777 long section names are supported, set SEC_LINK_ONCE and
5778 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5780 Thu Jun 29 21:30:00 2000 Hans-Peter Nilsson <hp@axis.com>
5782 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5783 symbols; create them.
5785 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5787 * write.c (set_segment_vma): New: Set vma and lma for a segment.
5788 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
5790 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
5792 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
5793 expressions. Ignore the problem when handling 16 bit signed
5794 immediates, because the assembler will take care of the relocation
5797 2000-06-27 Nick Clifton <nickc@cygnus.com>
5799 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
5800 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
5801 sequential order, and emit warning messages if the input source
5802 code contains constructs like that, or parallel constructs
5803 containing such opcodes.
5805 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5807 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5808 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5809 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5810 (md_show_usage): Update usage message.
5811 (md_parse_option): Allow redefinition of MCU type within the
5812 same avr[1-5] bfd machine type. Show both old and new MCU type
5813 in the error message.
5814 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5815 Simplify 8K wrap code.
5817 2000-06-25 Kazu Hirata <kazu@hxi.com>
5819 * config/obj-aout.c: Remove all uses of DEFUN.
5820 * config/obj-ieee.c: Likewise.
5821 * config/tc-sh.c: Fix comment typos.
5822 * config/tc-tahoe.c: Likewise.
5823 * config/tc-vax.c: Likewise.
5824 * config/tc-w65.c: Likewise.
5825 * config/tc-z8k.c: Likewise.
5826 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5828 2000-06-24 DJ Delorie <dj@cygnus.com>
5830 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5831 more changes from Sept 1999
5832 (tc_i386_fix_adjustable): ditto
5833 (md_apply_fix3): ditto
5835 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
5837 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5838 (gas_cgen_parse_operand): Set it around expression() call.
5839 (gas_cgen_md_operand): Test for it before longjmp().
5841 2000-06-24 Kazu Hirata <kazu@hxi.com>
5843 * config/tc-h8500.c: Remove all uses of DEFUN.
5844 * config/tc-sh.c: Likewise.
5845 * config/tc-w65.c: Likewise.
5846 * config/tc-z8k.c: Likewise.
5848 * config/tc-h8500.c: Fix typos in comments.
5850 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
5852 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5855 2000-06-23 matthew green <mrg@redhat.com>
5857 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
5858 defined. Fix error message for `[' grouping.
5860 2000-06-22 Kazu Hirata <kazu@hxi.com>
5862 * config/tc-h8300.c: Fix formatting and comment typos.
5864 2000-06-22 Timothy Wall <twall@cygnus.com>
5866 * config/tc-ia64.c (note_register_values): Move premature QP
5867 notation clearing into the appropriate place.
5869 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5871 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5872 first before anything else. Add bin-bugs.h, emul.h and progress.h
5873 Sort list of files as for $(OBJS) in Makefile.am.
5875 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5876 find one. Remake dependencies.
5877 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5878 * Makefile.in: Regenerate.
5879 * doc/Makefile.in: Regenerate.
5881 * config/tc-i386.c (i386_displacement): Don't assume a constant
5882 displacement is necessarily 16 bits when in 16 bit code mode.
5883 (md_assemble): Instead size the displacement here after we know
5884 for sure that a .code16gcc operand hasn't automatically added
5885 operand size prefixes.
5887 2000-06-21 H.J. Lu <hjl@gnu.org>
5889 * Makefile.am: Rebuild dependency.
5890 * Makefile.in: Rebuild.
5892 2000-06-21 Kazu Hirata <kazu@hxi.com>
5894 * config/tc-h8300.c (parse_reg): Make the function static.
5895 (parse_exp): Likewise.
5897 2000-06-20 DJ Delorie <dj@cygnus.com>
5899 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5900 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5901 for cygwin import libraries to work properly.
5903 2000-06-20 H.J. Lu <hjl@gnu.org>
5905 * Makefile.am: Rebuild dependency.
5906 * Makefile.in: Rebuild.
5907 * configure: Likewise.
5908 * doc/Makefile.in: Likewise.
5910 2000-06-20 Timothy Wall <twall@cygnus.com>
5912 * doc/internals.texi (CPU backend): Add @itemx for
5913 TC_START_LABEL_WITHOUT_COLON.
5914 * doc/c-tic54x.texi: New.
5915 * doc/as.texinfo: Add tic54x features and include primary tic54x
5917 * doc/all.texi: Add C54X.
5918 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
5919 * doc/Makefile.in: Regenerate.
5920 * configure.in: Add tic54x and define LIBM for tic54x.
5921 * configure: Regenrate.
5922 * config/tc-tic54x.[ch]: New.
5923 * config/obj-coff.h: Add tic54x.
5924 * Makefile.am: (CPU_TYPES): Add tic54x.
5925 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
5926 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
5927 (as_new_LDADD): Add $(LIBM).
5928 * Makefile.in: Regenerate.
5930 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5932 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
5933 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
5934 * doc/as.texinfo: Likewise.
5936 * configure, Makefile.in: Regenerate.
5937 * configure.in (emulations): Recognize m6811 and m6812.
5938 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
5939 Added files for 68hc11 and 68hc12 assembler.
5940 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
5941 * config/tc-m68hc11.h: Header definition for that assembler.
5943 2000-06-18 Nick Clifton <nickc@redhat.com>
5945 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
5946 instead of OCTETS_PER_BYTE.
5948 * config/tc-v850.c: Fix compile time warnings.
5949 * config/tc-ppc.c: Fix compile time warnings.
5951 2000-06-18 H.J. Lu <hjl@gnu.org>
5953 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
5954 * configure: Rebuild.
5956 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
5958 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
5961 2000-06-16 Nick Clifton <nickc@cygnus.com>
5963 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
5964 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
5966 * doc/c-mips.texi: Document newly accepted cpu variants.
5968 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5970 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
5972 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
5974 * macro.c (getstring): Make it possible to escape the quote
5977 Tue Jun 13 20:58:28 2000 Catherine Moore <clm@redhat.com>
5979 * config/tc-hppa.c (pa_export): Weak symbols can be global.
5981 2000-06-13 H.J. Lu <hjl@gnu.org>
5983 * configure: Regenerate.
5985 2000-06-09 Alan Modra <alan@linuxcare.com.au>
5987 * app.c (do_scrub_begin): Don't default lex[';'] as a line
5989 * doc/internals.texi (line_separator_chars): Semicolon is no
5990 longer a default. Mention null and newline as defaults.
5992 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
5994 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
5995 * config/tc-i860.h (line_separator_chars): Likewise.
5996 * config/tc-h8300.c (line_separator_chars): Likewise.
5997 * config/tc-i960.c (line_separator_chars): Likewise.
5998 * config/tc-m68k.c (line_separator_chars): Likewise.
5999 * config/tc-mips.c (line_separator_chars): Likewise.
6000 * config/tc-ns32k.c (line_separator_chars): Likewise.
6001 * config/tc-sparc.c (line_separator_chars): Likewise.
6002 * config/tc-vax.c (line_separator_chars): Likewise.
6004 * config/tc-h8300.c (comment_chars): Use string initialiser.
6005 * config/tc-i960.c (line_comment_chars): Likewise.
6006 * config/tc-z8k.c (comment_chars, line_comment_chars,
6007 line_separator_chars): Likewise.
6009 * config/tc-arm.c (line_separator_chars): Always use `;', not just
6012 2000-06-08 Nick Clifton <nickc@cygnus.com>
6014 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
6017 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6019 * configure.in (VERSION): Update to show this is the CVS mainline.
6021 2000-06-08 Matthew Jacob <mjacob@feral.com>
6023 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
6024 $at is the integer register $r28, vs. both $r28 and the floating
6025 point register $f28.
6027 2000-06-08 James E. Wilson <wilson@cygnus.com>
6029 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
6030 (dot_endp): Don't call ia64_flush_insns.
6031 (emit_one_bundle): Don't delete prologue/body records from
6032 unwind_record list in first loop. Rewrite second loop to account for
6035 2000-06-07 David Mosberger <davidm@hpl.hp.com>
6037 * config/tc-ia64.c: Add missing prototypes.
6038 (generate_unwind_image): Cast argument to output_unw_records call.
6040 Wed Jun 7 22:44:14 2000 Denis Chertykov <denisc@overta.ru>
6042 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
6044 Wed Jun 7 21:26:15 2000 Denis Chertykov <denisc@overta.ru>
6046 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
6047 (REGISTER_P): likewise.
6048 (avr_opcodes): uses include/opcode/avr.h
6049 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
6051 2000-06-04 Alan Modra <alan@linuxcare.com.au>
6053 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
6056 2000-06-03 H.J. Lu <hjl@gnu.org>
6058 * read.c (is_end_of_line): Put back `;'.
6060 2000-06-03 Alan Modra <alan@linuxcare.com.au>
6062 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
6064 2000-06-01 Alan Modra <alan@linuxcare.com.au>
6066 * expr.c (operand): Test is_end_of_line outside switch to catch
6067 line separator chars that are also operators.
6068 (operator): Return O_illegal for line separator chars.
6070 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
6071 entry (or `!' entry for TC_HPPA).
6073 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
6074 before indexing is_end_of_line. Remove redundant check for '\0'.
6076 * config/tc-h8500.c (md_assemble): Likewise.
6077 * config/tc-mcore.c (md_assemble): Likewise.
6078 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6081 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
6083 * config/tc-mcore.c (mcore_cons): Likewise.
6084 (mcore_float_cons): Likewise.
6085 (mcore_stringer): Likewise.
6086 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6088 2000-06-01 Scott Bambrough <scottb@netwinder.org>
6090 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
6092 2000-05-29 Nick Clifton <nickc@cygnus.com>
6094 * config/tc-sh.c: Fix compile time warning messages.
6096 * config/tc-mips.c: Fix compile time warning messages.
6098 2000-05-29 Philip Blundell <philb@gnu.org>
6100 * doc/as.texinfo: Update copyright dates.
6101 (Local Labels): Delete misplaced mention of ARM.
6102 * NEWS: Mention ARM ELF support.
6104 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
6106 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
6107 it is modified, and use the real_size to compute the frag address
6108 for dwarf2 line info.
6110 2000-05-27 Alan Modra <alan@linuxcare.com.au>
6112 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
6113 line-matching scheme to cope with automake moving variables around.
6114 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
6115 * Makefile.in: Regenerate.
6117 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6119 * config/tc-sparc.c (sparc_relax): New.
6120 (md_longopts): Add -relax and -no-relax options.
6121 (md_parse_options, md_show_usage): Likewise.
6122 (md_apply_fix3): Optimize tail call into branch always if possible.
6124 Thu May 4 15:27:07 2000 Donald Lindsay <dlindsay@cygnus.com>
6126 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
6127 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
6128 rules, with warning when a GAS statement specifies a packing that
6129 will result in an instruction being squashed.
6130 Added typdef packing_type and enumerals, changed various integer
6131 literals to use the enumerals.
6133 2000-05-24 David Mosberger <davidm@hpl.hp.com>
6135 * config/tc-ia64.c (dot_restorereg_p): New function.
6136 (md_pseudo_table): Add restorereg.p.
6137 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
6138 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
6140 * config/tc-ia64.h (unw_record_type): Add unwabi.
6141 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
6142 called MASK with members for imask, and the masks produced by
6143 fr_mem, gr_mem, br_mem, and frgr_mem.
6144 (unw_p_record): Add members ABI and CONTEXT.
6145 (unw_x_record): Add member AB.
6146 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
6147 as pseudo-register for use during unwind info generation.
6148 (AR_PFS, AR_LC): New macros.
6149 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
6150 whose names start with an at sign (as in "@priunat").
6151 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
6153 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
6154 proc_end, unwind_info, personality_routine): Consolidate into
6155 "unwind" structure to reduce offset-table use. Add member
6156 NEXT_SLOT_NUMBER to track the slot number for the next instruction
6158 (output_R1_format, output_R3_format, output_P3_format,
6159 output_P6_format): Initialize R with zero to reduce compiler warnings.
6160 (output_P7_format): Ditto. Add `default' branch to switch
6161 statement to reduce compiler warnings.
6162 (output_P8_format, output_B1_format, output_B4_format): Ditto.
6163 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
6164 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
6165 into single argument.
6166 (output_X1_format, output_X3_format): Initialize R with zero to reduce
6167 compiler warnings. Merge A and B args into single argument.
6168 (output_X2_format, output_X4_format): Remove unused variable R. Merge
6169 A and B args into single argument.
6170 (free_record): Removed (wasn't used).
6171 (free_list_records): Also free imasks in prologue records.
6172 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
6173 (output_spill_mask): Remove.
6174 (output_unwabi): New function.
6175 (output_epilogue, output_label_state, output_copy_state): Call
6177 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
6178 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
6180 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
6181 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
6182 as part of handling the prologue records. Emit region's imask if
6183 we have one. Handle unwabi, epilogue, label_state, copy_state,
6184 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
6185 spill_sprel_p, and spill_reg_p records.
6186 (set_imask, count_bits, slot_index): New function.
6187 (fixup_unw_records): Fix region size computation. Handle
6188 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
6189 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
6190 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
6191 set_imask accordingly. Update imask for gr_gr, and br_gr records.
6192 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
6193 (dot_save): Use manifest constants for applicaton registers.
6194 Handle REG_PR and REG_PRIUNAT.
6195 (dot_restore): Don't just ignore it.
6196 (dot_restorereg): New function..
6197 (generate_unwind_image): Ensure unwind info is a multiple of eight
6198 bytes, not just four bytes.
6199 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
6200 (dot_altrp): Don't just ignore it.
6201 (dot_savemem): New function. Replaces dot_savesp() and
6202 dot_savepsp(). Use manifest constants for applicaton registers.
6203 Handle REG_PR and REG_PRIUNAT.
6204 (dot_savef): Simplify.
6205 (dot_saveb): Support generation of br_gr.
6206 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
6207 dot_label_state, dot_copy_state): New function.
6208 (dot_unwabi): Don't just ignore it.
6209 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
6210 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
6211 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
6212 (emit_one_bundle): Set slot number for prologue/body records
6213 *before* emitting the first insn.
6214 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
6215 (md_begin): Declare "psp" pseudo-register.
6216 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
6217 so we don't get segfault.
6218 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
6219 counts as required per SW Conventions manual
6220 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
6221 output_preds_psprel, output_preds_sprel, output_spill_base,
6222 output_unat_psprel, output_unat_sprel, output_lc_psprel,
6223 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
6224 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
6225 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
6226 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
6227 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
6228 (dot_vframe): Implement.
6229 (dot_vframesp, dot_vframepsp): New function.
6231 Tue May 23 00:57:05 2000 Hans-Peter Nilsson <hp@axis.com>
6233 * configure.in (i386-*-freebsd a.out entry): Quote properly.
6234 * configure: Regenerate.
6236 2000-05-23 Alan Modra <alan@linuxcare.com.au>
6238 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
6239 (md_estimate_size_before_relax): so we can use it here instead of
6240 old kludges. Localise vars to blocks. Comment.
6242 * frags.c (frag_new): Update fr_var comments.
6243 * frags.h (struct frag): Ditto.
6245 2000-05-22 Richard Henderson <rth@cygnus.com>
6247 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
6248 (pseudo_func): Add pcrel.
6249 (operand_match): Handle IA64_OPND_TGT64.
6250 (build_insn): Likewise.
6251 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
6252 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
6253 (fix_insn): Handle all three 64-bit relocation types.
6255 Mon May 22 22:43:32 2000 Hans-Peter Nilsson <hp@axis.com>
6257 * obj.h (struct format_ops): New members begin, app_file,
6258 s_set_other, s_set_desc, s_get_type, s_set_type,
6259 separate_stab_sections, init_stab_section.
6261 * config/obj-multi.h: Update GPL notice to v2.
6263 (obj_app_file): New.
6264 (S_SET_SIZE): Test s_set_size for NULL before calling.
6265 (S_SET_ALIGN): Similar for s_set_align.
6270 (SEPARATE_STAB_SECTIONS): New.
6271 (INIT_STAB_SECTION): New.
6272 (EMIT_SECTION_SYMBOLS): New.
6273 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
6275 * config/obj-elf.h: Update GPL notice to v2.
6276 Mention that this file is included from obj-multi.h.
6277 (obj_begin): Wrap definition in ifndef.
6278 (elf_file_symbol): Constify declaration.
6279 (obj_app_file): Ditto.
6280 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
6281 Wrap in ifndef SEPARATE_STAB_SECTIONS.
6283 * config/obj-elf.c (elf_s_set_other): New.
6284 (elf_file_symbol): Constify argument.
6285 (elf_separate_stab_sections): New.
6286 (elf_init_stab_section): New.
6287 (elf_format_ops): Add new members. Remove comma at end.
6289 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
6290 (ecoff_format_ops): Add new fields. Remove comma at end.
6291 Mention inconsistency for emit_section_symbols.
6293 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
6295 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
6296 (coff_separate_stab_sections): New.
6297 (coff_format_ops): Add new members.
6299 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
6300 (obj_aout_s_set_other): New.
6301 (obj_aout_s_set_desc): New.
6302 (obj_aout_s_get_type): New.
6303 (obj_aout_s_set_type): New.
6304 (obj_aout_separate_stab_sections): New.
6305 (aout_format_ops): New members added. Use obj_aout_process_stab,
6306 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
6307 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
6309 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
6311 2000-05-22 Alan Modra <alan@linuxcare.com.au>
6313 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
6314 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
6315 (md_estimate_size_before_relax): Ensure jumps to weak and
6316 externally visible symbols are relocatable.
6318 Sat May 20 16:41:55 2000 Hans-Peter Nilsson <hp@axis.com>
6320 * stabs.c (aout_process_stab): Make global.
6321 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
6322 * read.h (aout_process_stab): Declare.
6324 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6325 Generalize to *aout, *coff *elf.
6326 * configure: Regenerated.
6328 * doc/internals.texi (Object format backend): Say
6329 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
6331 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6332 * Makefile.in: Regenerated.
6334 2000-05-19 Catherine Moore <clm@cygnus.com>
6336 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6338 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6340 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6341 instruction to reflect change in re_assemble_*.
6343 Thu May 18 10:52:14 2000 Jeffrey A Law (law@cygnus.com)
6345 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6346 build PA64 ELF tools.
6347 * configure: Rebuilt.
6349 2000-05-17 Alan Modra <alan@linuxcare.com.au>
6351 * Makefile.am: Regenerate dependencies.
6352 * Makefile.in: Regenerate.
6354 2000-05-15 Nick Clifton <nickc@cygnus.com>
6356 * config/tc-arm.c (struct asm_psr): Add boolean field
6357 distinguishing between CSPR and SPSR. Rename 'number' field
6359 (psrs): Rearrange contents to match new asm_psr structure.
6360 (arm_psr_parse): Move next to psr_required_here. Make it
6361 return an asm_psr structure.
6362 (psr_required_here): Use asm_psr structure returned by
6364 (do_msr): Reorganise to allow psr_required_here to be called
6366 (md_undefined_name): Mark 'name' parameter as unused, since
6367 the COFF target does not use it.
6369 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6371 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6373 * config/te-aux.h: Likewise.
6374 * config/te-dpx2.h: Likewise.
6375 * config/te-go32.h: Likewise.
6376 * config/te-hp300.h: Likewise.
6377 * config/te-hppa.h: Likewise.
6378 * config/te-i386aix.h: Likewise.
6379 * config/te-ic960.h: Likewise.
6380 * config/te-interix.h: Likewise.
6381 * config/te-nbsd532.h: Likewise.
6382 * config/te-pc532mach.h: Likewise.
6383 * config/te-ppcnw.h: Likewise.
6384 * config/te-psos.h: Likewise.
6385 * config/te-sparcaout.h: Likewise.
6386 * config/te-sun3.h: Likewise.
6387 * config/te-sysv32.h: Likewise.
6389 2000-05-14 Alan Modra <alan@linuxcare.com.au>
6391 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6392 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6393 and sign extend without an if statement.
6394 (build_bytes): Likewise.
6396 2000-05-14 Kazu Hirata <kazu@hxi.com>
6398 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6399 X_add_symbol L_32 case.
6401 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6403 * config/te-freebsd.h: New file.
6405 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6407 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6408 bindtextdomain): Replace defines with those from intl/libgettext.h
6409 to quieten gcc warnings.
6411 * NEWS: Mention x86 .arch and -q.
6413 * config/tc-i386.c (quiet_warnings): New.
6414 (md_assemble): Use quiet_warnings.
6415 (md_parse_option): Set quiet_warnings from -q.
6416 (md_show_usage): Mention -q, delete -m.
6417 (flag_do_long_jump): Delete.
6418 (md_parse_option): Remove -m.
6419 (md_show_usage): Remove -m.
6420 (md_create_long_jump): Remove useless flag_do_long_jump code.
6422 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6423 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6425 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6426 Alexander Sokolov <robocop@netlink.ru>
6428 * doc/c-i386.texi (i386-Arch): New section.
6429 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6431 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6432 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6433 architecture has been given and is not 486.
6434 (set_cpu_arch): New.
6435 (md_pseudo_table): Add .arch.
6436 (md_assemble): Warn if cpu architecture has been given and an
6437 unsupported instruction.
6439 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6440 Move operand_types bit defines after relevant template field.
6441 (template): Add cpu_flags.
6445 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6447 * config/tc-mn10300.h (md_end): Define.
6448 (mn10300_finalize): Declare.
6449 * config/tc-mn10300.c: Include dwarf2dbg.h.
6450 (debug_line): Define.
6451 (md_assemble): Generate dwarf2 line info.
6452 (mn10300_finalize): New function. Finalize dwarf2 info.
6454 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
6456 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6457 external version of the relocation for weak symbols.
6459 2000-05-08 David Mosberger <davidm@hpl.hp.com>
6461 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6462 frame size in units of 16 bytes, as required per SW Conventions manual.
6463 (output_unw_records): Output info-block header as a dword to get
6466 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6468 * as.h: #include "file", not <file> on files from ../include.
6469 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6470 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6471 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6472 (tc_coff_symbol_emit_hook): Ditto.
6473 (OPTCOUNT): Cast to int to avoid compiler warning.
6474 (md_begin): Fix signed/unsigned warnings.
6476 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6478 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6479 ABRANCH LONG case for a conditional branch on a 68000.
6480 (md_estimate_size_before_relax): Likewise. Also handle
6481 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6482 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6483 PC-relative on all CPUs.
6484 (md_estimate_size_before_relax): Likewise.
6486 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6488 * as.c (parse_args): Just mention current year in printed
6491 2000-05-03 J.T. Conklin <jtc@redback.com>
6493 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
6495 (md_parse_option): Recognize -m7400.
6497 2000-05-03 Ian Lance Taylor <ian@zembu.com>
6499 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6500 don't permit lp to become less than the words array.
6502 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
6504 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6505 Fix little-endian case.
6507 2000-05-03 David O'Brien <obrien@NUXI.com>
6509 * as.c (parse_args): Update copyright.
6511 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6513 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
6514 for the .bss section too.
6516 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6518 * configure.in: Set em=linux for hppa-*-linux.
6519 * configure: Regenerate.
6520 * doc/Makefile.in: Regenerate with correct automake.
6522 * frags.c (frag_grow): Sanity check chunk_size.
6524 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6525 * config/obj-som.h: Likewise.
6526 * config/obj-ieee.h: Likewise.
6528 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6530 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6531 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6532 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6533 (pa_ip): low_sign_unext now returns via function value. Use
6534 re_assemble_* instead of dis_assemble_* and
6535 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6537 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6538 (md_section_align, md_parse_option, md_show_usage,
6539 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6540 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6541 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6542 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6543 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6545 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6546 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6547 outside of switch. Correct mask and shifting errors in case 10
6548 and case -11. In case 21, compare against signed range to suit
6549 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6550 case 17 and case 22, use offsetT variable to properly check range.
6551 Use re_assemble_* here too.
6552 (evaluate_absolute): Change type of value to offsetT. Call
6553 hppa_field_adjust to do the work for us.
6554 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6555 (pa_parse_cmpib_64_cmpltr): Ditto.
6556 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6557 of i to unsigned int.
6558 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6559 (pa_end_of_source): Return type is void.
6561 Mon May 1 08:54:23 2000 Catherine Moore <clm@cygnus.com>
6563 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6565 Mon May 1 14:19:39 2000 Denis Chertykov <denisc@overta.ru>
6567 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6568 More comments added.
6569 (md_begin): Removed "construct symbols for each register name".
6570 Because register names conflicts with GCC generated function
6572 (avr_operand): Now constant numbers can be used as a register
6573 identifiers (0 as r0, 31 as r31).
6574 (md_assemble): use skip_space () before parsing instruction
6577 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6579 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6580 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6581 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6582 * configure: Regenerate.
6584 2000-04-29 Andreas Jaeger <aj@suse.de>
6586 * as.h: Correctly check GCC version.
6588 2000-04-26 David O'Brien <obrien@FreeBSD.org>
6590 * doc/as.1: Fix unbalanced brackets.
6592 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6594 (line_comment_chars): Set to '/' if TE_FreeBSD.
6596 Tue Apr 25 11:02:02 2000 Jeffrey A Law (law@cygnus.com)
6598 * configure.in: Configury support for PA64 (currently disabled).
6599 * configure: Rebuilt.
6601 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
6603 * config/tc-mips.c (s_change_sec): Use record_alignment, not
6604 bfd_set_section_alignment.
6606 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6608 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6611 2000-04-24 Nick Clifton <nickc@cygnus.com>
6613 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6614 * doc/as.texinfo (Align): Include arm and strongarm in list of
6615 targets that have the second form of the behaviour of the .align
6618 2000-04-24 Mark Klein <mklein@dis.com>
6620 * config/obj-som.c: Terminate obj_pseudo_table.
6622 Mon Apr 24 15:21:11 2000 Clinton Popetz <cpopetz@cygnus.com>
6624 * as.c (parse_args): Allow md_parse_option to override -a listing
6626 * config/obj-coff.c (add_lineno): Change type of offset parameter
6627 from "int" to "bfd_vma."
6628 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6629 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6630 (ppc_change_csect): Align correctly for XCOFF64.
6631 (ppc_machine): New function, which discards "ppc_machine" line.
6632 (ppc_tc): Cons for 8 when code is 64 bit.
6633 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6635 (md_parse_option): Handle -a64 and -a32.
6637 * config/tc-ppc.h (TARGET_MACH): Define.
6638 (TARGET_FORMAT): Move to function.
6639 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6641 Sun Apr 23 16:45:45 2000 Denis Chertykov <denisc@overta.ru>
6643 * config/tc-avr.c: New AVR_ISA_ defined.
6644 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6645 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6646 for `fmul', `movw' and `lpm R,Z' instructions.
6647 (avr_operands): Warn if current opcode is a two-word instruction
6648 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6649 (avr_opcodes): New commands added.
6650 (REGISTER_P): Check 'a' and 'v' constraint letters.
6651 (mcu_types): New MCU added.
6653 2000-04-22 Timothy Wall <twall@cygnus.com>
6655 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6657 (operand_match): Conditionally insert default bit values for IMMU9.
6659 2000-04-14 Matthew Green <mrg@cygnus.com>
6661 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6662 * configure: Rebuilt.
6664 Fri Apr 21 14:29:43 2000 Jeffrey A Law (law@cygnus.com)
6665 Jason Eckhardt <jle@cygnus.com>
6667 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
6669 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6670 Added handling of new operand types l,y,&,fe,fE,fx.
6672 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6673 David Mosberger <davidm@hpl.hp.com>
6674 Timothy Wall <twall@cygnus.com>
6675 Andrew MacLeod <amacleod@cygnus.com>
6676 Jim Wilson <wilson@cygnus.com>
6678 * Makefile.am (CPU_TYPES): Add ia64.
6679 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
6680 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6681 * Makefile.in: Rebuild.
6682 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6683 * configure: Rebuild.
6684 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6685 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6686 * expr.c (expr): Handle md_optimize_expr.
6687 * read.c (LEX_HASH): Add comment.
6688 * config/tc-ia64.c, config/tc-ia64.h: New files.
6690 2000-04-21 Richard Henderson <rth@cygnus.com>
6692 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6693 bundling a non-delayed branch type instruction.
6695 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
6697 * config/tc-mn10300.c (HAVE_AM30): Define.
6698 (md_assemble): Use it.
6700 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6702 * config/obj-elf.c (obj_elf_change_section): Check for changed
6705 * Makefile.am: (CPU_MULTI_VALID): Remove.
6706 (MULTI_CPU_TYPES): Define.
6707 (MULTI_CPU_OBJ_VALID): Define.
6708 (DEPTC): Use the above.
6709 (DEPOBJ): Same here.
6711 Regenerate dependencies.
6712 * Makefile.in: Regenerate.
6714 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6716 * Makefile.am (YACC, LEX): Get them from configure.
6718 2000-04-18 H.J. Lu (hjl@gnu.org)
6720 * config/tc-i386.c (offset_in_range): Use addressT instead of
6721 bfd_vma for non-bfd assemblers.
6723 2000-04-17 Alan Modra <alan@linuxcare.com.au>
6725 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6726 doesn't give spurious errors.
6728 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6730 * as.h (SEEK_SET): Define if undefined.
6732 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6734 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6735 constants, and don't assume offsetT is 32 bits.
6737 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
6739 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6740 (md_pcrel_from_section): Add prototype.
6741 (d10v_fix_adjustable): Add prototype.
6742 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6744 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6746 2000-04-12 Nick Clifton <nickc@cygnus.com>
6748 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6749 symbol in frag chain.
6751 2000-04-10 Alan Modra <alan@linuxcare.com.au>
6753 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6754 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6755 (fits_in_signed_word, smallest_imm_type): Ditto.
6756 (md_assemble): Use an offsetT var to hold offsetT values, not a
6758 (offset_in_range): New.
6759 (md_assemble): Use it.
6760 (md_convert_frag): Change type of target_address, opcode_address,
6761 and displacement_from_opcode_start to offsetT.
6762 (md_create_short_jump): Change type of offset to offsetT.
6763 (md_create_long_jump): Ditto.
6764 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6765 (md_chars_to_number): Remove.
6766 (output_invalid): Remove duplicate prototype.
6768 2000-04-09 Nick Clifton <nickc@cygnus.com>
6770 * Makefile.am (CPU_TYPES): Add 'avr'.
6771 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6772 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6774 * Makefile.in: Regenerate.
6776 * doc/as.texinfo: Add M32R documentation.
6778 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6780 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6781 --enable-build-warnings option.
6782 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6783 * Makefile.in, configure: Re-generate.
6785 2000-04-07 Nick Clifton <nickc@cygnus.com>
6787 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6788 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6789 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6790 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6791 (arm_force_relocation): Force relocations for
6792 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6794 Wed Apr 5 22:26:32 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6796 * config/tc-sh.c (get_operands): There's no third operand if the
6797 first operand is an immediate.
6799 Wed Apr 5 22:07:19 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6801 * config/tc-sh.c (immediate): Delete.
6802 (sh_operand_info): Add immediate member.
6803 (parse_reg): Use A_PC for pc.
6804 (parse_exp): Add second argument 'op'. All callers changed.
6805 (parse_at): Expect pc to be coded as A_PC.
6806 Use immediate field in *op.
6807 (insert): Add fourth argument 'op'. All callers changed.
6808 (build_relax): Add second argument 'op'. All callers changed.
6809 (insert_loop_bounds): New function.
6810 (build_Mytes): Remove DISP_4.
6811 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6812 (assemble_ppi): Use immediate field in *operand.
6813 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6814 (md_apply_fix): Likewise.
6815 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6817 Wed Apr 5 06:35:45 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6819 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6821 Tue Apr 4 19:27:50 2000 Hans-Peter Nilsson <hp@axis.com>
6823 * internals.texi (CPU backend): Document
6824 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6826 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6828 * po/gas.pot: Regenerate.
6830 * as.c (show_usage): Restore translated part of bug string.
6831 * gasp.c (show_usage): Likewise.
6833 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6834 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6835 than move-if-change.
6836 (DEP1): Modify for "gcc -MM".
6840 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6841 Update dependencies.
6842 * Makefile.in: Regenerate.
6844 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
6846 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6847 (md_begin): Likewise.
6848 (HAVE_AM33): New macro.
6849 (md_assemble): Use it. Match r_regs and xr_regs only if
6852 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6854 * as.h: #include "bin-bugs.h"
6855 * as.c (show_usage): Use REPORT_BUGS_TO.
6856 * gasp.c: #include "bin-bugs.h"
6857 (show_usage): Use REPORT_BUGS_TO.
6859 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6861 Mon Apr 3 13:56:03 2000 Hans-Peter Nilsson <hp@axis.com>
6863 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6864 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6867 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6869 * config/tc-i386.c (i386_immediate): Don't assume a constant
6870 immediate is necessarily 16 bits when in 16 bit code mode.
6871 (md_assemble): Instead set guess_suffix here after we have checked
6874 2000-04-02 Richard Henderson <rth@cygnus.com>
6876 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6877 quantities. Correct right shift sign extension.
6878 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6879 32-bit value when shifting into place.
6881 2000-04-01 Ian Lance Taylor <ian@zembu.com>
6883 * app.c: Add ATTRIBUTE_UNUSED as needed.
6884 * config/tc-ppc.c: Likewise.
6885 (ppc_size): Make unsigned long.
6886 (ppc_insert_operand): Add casts to avoid warnings.
6888 2000-03-31 Nick Clifton <nickc@cygnus.com>
6890 * config/tc-d10v.h (md_flush_pending_output): Define.
6892 2000-03-29 Nick Clifton <nickc@cygnus.com>
6894 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6895 segment. Works for both BFD_ASSEMBLER and others.
6896 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6898 2000-03-29 Nick Clifton <nickc@cygnus.com
6900 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6902 2000-03-28 Alan Modra <alan@linuxcare.com.au>
6904 * listing.c (LISTING_LHS_WIDTH): Default depends on
6906 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6908 2000-03-27 Ian Lance Taylor <ian@zembu.com>
6910 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6913 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6915 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6917 * config/tc-avr.c (mcu_types): Add missing initialiser.
6918 (md_pcrel_from_section): Add prototype.
6919 (avr_operand): Remove redundant test of unsigned < 0.
6920 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
6922 2000-03-27 Denis Chertykov <denisc@overta.ru>
6924 * config/tc-avr.c: New file for AVR support.
6925 * config/tc-avr.h: Likewise.
6926 * configure.in: Add AVR support.
6927 * configure: Regenerate.
6929 2000-03-26 Timothy Wall <twall@cygnus.com>
6931 * gasp.c (macro_op): Add new argument to check_macro call.
6932 Macro structure definitions moved to macro.h
6933 * sb.h: Add argument to prototype for input_scrub_include_sb.
6934 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
6935 nesting checks with an additional flag.
6936 (struct input_save): Add flag to indicate whether current sb
6937 should be checked for proper macro/conditional nesting.
6938 (input_scrub_push/pop): Save/restore nest check flag.
6939 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
6941 * macro.c (check_macro): Allow caller to retrieve parsed macro
6942 information if a pointer is provided. This information may be
6943 used by the new macro hooks.
6944 * macro.h: Update prototype for check_macro. Macro struct
6945 definitions moved here from macro.c/gasp.c.
6946 * read.c (read_a_source_file): Add parameter to check_macro call,
6947 and pass macro info to the macro hook, if defined.
6948 (input_scrub_insert_line): New. Allow insertion of a line of
6949 characters into the input stream.
6950 (input_scrub_insert_file): New. Allow insertion of an arbitrary
6951 file into the input stream.
6952 (s_include): Use input_scrub_insert_file.
6953 * internals.texi: Document new macro hooks.
6954 * as.h: New prototypes added.
6956 2000-03-26 Alan Modra <alan@linuxcare.com.au>
6958 * config/tc-i386.c: Don't start any as_bad or as_warn message with
6959 an initial capital letter.
6960 (i386_index_check): Reindent.
6962 2000-03-19 Nick Clifton <nickc@cygnus.com>
6964 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
6967 2000-03-17 Thomas de Lellis <tdel@windriver.com>
6969 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
6970 instruction operand bad if Rd > 7 when generating
6971 thumb instructions. Prevents for example,
6972 "adr r12,label" from silently failing and generating
6973 the wrong instruction.
6975 2000-03-17 Nick Clifton <nickc@cygnus.com>
6977 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
6978 that have a destingation >= 0x400000.
6979 Fix compile time warning messages.
6981 Thu Mar 16 23:45:16 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6983 * config/tc-sh.c (md_begin): When encountering insn that are
6984 not supported by the current arch, only change the name if
6985 its contents are the same as prev_name.
6986 (get_specific): If the the architecture doesn't match, fail.
6988 Thu Mar 16 21:18:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6990 * config/tc-sh.c (IDENT_CHAR): Define.
6991 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
6992 matching back where it came from.
6994 Thu Mar 16 20:58:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6996 * config/tc-sh.c (md_show_usage): Add description of -dsp.
6998 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
7000 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
7003 2000-03-15 Kazu Hirata <kazu@hxi.com>
7005 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
7007 Mon Mar 13 22:02:59 2000 Hans-Peter Nilsson <hp@axis.se>
7009 * expr.c (operand) [case 'f']: When testing if '0f' can start a
7010 floating-point-number, make sure 'f' is in FLT_CHARS.
7012 Sat Mar 11 00:01:39 2000 Hans-Peter Nilsson <hp@axis.se>
7014 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
7015 (s_lcomm_internal): Use it.
7016 * doc/internals.texi (CPU backend): Document it.
7017 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
7020 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7022 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
7025 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
7026 implementation doesn't have special handling for switch
7028 (macro_build): Allow for code in sections other than .text.
7030 (mips_ip): Likewise.
7031 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
7032 Don't perform relocs if we will be outputting them.
7033 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
7034 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
7037 2000-03-09 Catherine Moore <clm@cygnus.com>
7039 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
7040 relocation type based on the entry in the fixup structure.
7041 Put S_IS_EXTERN processing back in.
7043 2000-03-08 H.J. Lu (hjl@gnu.org)
7045 * Makefile.am (install-exec-tooldir): Depend on
7046 install-exec-bindir for parallel make.
7047 * Makefile.in: Regenerated.
7049 2000-03-06 Nick Clifton <nickc@cygnus.com>
7051 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
7053 (md_parse_option): Parse -m32r command line switch - disable m32rx
7055 (md_show_usage): Document new option.
7057 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
7058 * doc/Makefile.in: Regenerate.
7059 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
7061 2000-03-02 Michael Meissner <meissner@redhat.com>
7063 * config/tc-d30v.c (check_range): Remove code that incorrectly
7064 sign extended values where bits < 32.
7066 2000-03-02 H.J. Lu (hjl@gnu.org)
7068 * configure.in: Support --enable-targets=all on ia32.
7069 * configure: Regenerated.
7071 2000-03-01 Nick Clifton <nickc@cygnus.com>
7073 * gasp.c (do_align): Remove bogus check of alignment value.
7075 2000-02-27 Thomas de Lellis <tdel@windriver.com>
7077 * config/obj-elf.c (elf_frob_symbol): Remove code which when
7078 TC_PPC was defined forced the type of a symbol with no other type
7081 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
7083 * doc/internals.texi (CPU backend): Mention that
7084 line_separator_chars do not break up comments. Fix typos for
7085 LEX_AT and LEX_NAME descriptions. Document operands for
7086 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
7087 description of md_create_short_jump usage. Document argument for
7088 md_undefined_symbol.
7090 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7092 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
7093 (md_parse_option): Handle it.
7094 (md_show_usage): Document it.
7096 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7098 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
7099 opcode, for the instruction `pal19'. From Andrea Arcangeli
7102 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
7104 * config/tc-i386.c (i386_immediate): Move constant operand sizing
7106 (md_assemble): To here, before template operands are matched.
7107 Also ensure a constant immediate is sign extended when we know the
7108 size is at most 16 bits. This is to catch cases like "add
7109 $0xffc0,%ax" where we don't know the size, and thus that the
7110 immediate can be represented as Imm8S until after parsing the
7112 (i386_displacement): Similarly sign extend 16 bit constant
7114 (md_assemble): Relax 16-bit jump constant range check to suit sign
7115 extended displacements.
7117 2000-02-26 Andreas Jaeger <aj@suse.de>
7119 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
7121 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7123 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
7124 call operands when intel_syntax.
7125 (intel_float_operand): Return 2 for "fi...".
7126 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
7127 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
7128 earlier "SHORT" change.
7129 (md_assemble): When determining suffix from Regs, exclude
7132 2000-02-24 Nick Clifton <nickc@cygnus.com>
7134 * configure: Add arm-wince, mips-pe and sh-pe targets.
7135 * configure: Regenerate.
7137 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
7139 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
7140 "pe-mips" for the mips-pe target.
7142 * config/tc-arm.c (insns): Change displacement encoded in BL
7143 and B instructions if the target port is arm-wince.
7144 (do_ldst): Do not bias the relocation offset if the target
7146 (md_pcrel_from): Add in missing relocation offset bias if the
7147 target os arm-wince.
7149 * config/tc-mips.c (mips_target_format): Support COFF flavour.
7150 (md_begin): Disable -G support for mips-pe target.
7151 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
7152 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
7155 * config/tc-sh.c (md_begin): sh-pe target is little endian.
7156 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
7157 assembler, just set the alignment to 4.
7159 * config/te-wince-pe.h: New file for WinCE targets. Define
7162 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7164 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
7165 string instructions.
7166 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
7167 (i386_intel_memory_operand): After finding a segment override,
7168 check again for no `[' before looking for a displacement. Bomb if
7169 more than one displacement rather than silently discarding the
7170 second and subsequent ones. Free strings malloc'd by
7171 build_displacement_string.
7173 2000-02-24 Catherine Moore <clm@cygnus.com>
7175 * config/obj-som.c (obj_pseudo_table): Add "weak".
7176 (obj_som_weak): New routine.
7178 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
7180 * config/tc-i386.c (union i386_op): New.
7181 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
7182 Throughout file replace occurences of disps[n], imms[n], regs[n]
7183 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
7184 intel mode operand swapping. Add assert in regKludge and
7185 fake_zero_displacement code. Test i.types[n] when outputting
7186 displacements and immediates. Combine output of Disp16 with
7188 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
7189 when in intel mode by (not) reversing fsub and fdiv operands
7190 before the template search. This fails for single operand
7191 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
7192 undefined. Instead fix the base_opcode after we've found the
7193 template. Move base_opcode xor with found_reverse_match from
7194 opcode output code to before this fix so we test for the correct
7196 (md_assemble): Don't use strcmp when deciding to ignore the suffix
7197 check in intel mode. Instead compare opcodes.
7199 * config/tc-i386.h (TC_RELOC): Delete.
7200 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
7201 with equivalent call to reloc.
7203 * as.h (flag_m68k_mri): Move declaration after target include, and
7204 only declare when TC_M68K defined. Define as zero otherwise.
7205 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
7206 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
7207 Define as zero otherwise.
7208 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
7209 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
7210 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
7211 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
7212 testing whether defined.
7213 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
7214 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
7215 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
7216 rather than testing whether defined.
7217 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
7218 (parse_mri_cons): Declare and use only when TC_M68K.
7219 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
7220 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
7221 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
7223 * NEWS: Mention IBM 370 support.
7225 2000-02-23 Richard Henderson <rth@cygnus.com>
7227 * config/tc-i386.c (md_assemble): When swapping operands for
7228 intel_syntax, assume everything that's not Imm or Disp is a
7231 2000-02-23 Linas Vepstas <linas@linas.org>
7233 * config/tc-i370.c, config/tc-i370.h: New files.
7234 * Makefile.am: Add support for Linux/IBM 370.
7235 * configure.in: Likewise.
7236 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
7237 * config/obj-elf.c: Include elf/i370.h
7238 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
7240 * Makefile.in: Regenerate.
7241 * configure: Regenerate.
7243 * doc/c-i370.texi: New file.
7244 * doc/all.texi: Include it.
7245 * doc/as.texinfo: And here.
7246 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
7247 * doc/Makefile.in: Regenerate.
7249 2000-02-19 Michael Meissner <meissner@redhat.com>
7251 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
7252 determine if an instruction can be used in parallel with an ADDppp
7253 or SUBppp instruction.
7255 2000-02-22 Andrew Haley <aph@cygnus.com>
7257 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
7259 2000-02-22 Andrew Haley <aph@cygnus.com>
7261 * config/tc-mips.c (mips_gp32): New variable.
7262 (macro_build) Use mips_gp32.
7264 (md_longopts): Add "-mgp32" and "-mgp64".
7265 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
7267 (OPTION_M7900): Change offset
7268 (OPTION_NO_M7900): Ditto.
7270 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7272 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
7273 warning, and bump it to 1.
7275 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7277 From Brad Lucier <lucier@math.purdue.edu>:
7278 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
7281 2000-02-21 Catherine Moore <clm@cygnus.com>
7283 * config/tc-mips.c (MF_HILO_INSN): Define.
7284 (mips_7000_hilo_fix): Declare.
7285 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
7286 (md_parse_option): Check for 7000_HILO_FIX options.
7287 (OPTION_M7000_HILO_FIX): Define.
7288 (OPTION_NO_M7000_HILO_FIX): Define.
7289 * doc/c-mips.texi (-mfix7000): Describe.
7291 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7293 * listing.c (print_lines): Remove unused variable `end'.
7295 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
7296 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
7297 reloc_type when BFD_ASSEMBLER.
7298 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
7299 reloc_type when BFD_ASSEMBLER. Move common code out of switch
7300 statement and quell signed vs. unsigned comparison warning.
7302 2000-02-18 Nick Clifton <nickc@cygnus.com>
7304 * config/tc-d10v.c (find_opcode): Add a symbol's value to
7305 the computed frag offset, rather than overwriting it.
7307 Thu Feb 17 00:11:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7309 * config/tc-sh.c ("elf/sh.h"): Include.
7310 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
7311 (md.begin): Initialize target_arch.
7312 Only include opcodes in has table that match selected architecture.
7313 (parse_reg): Recognize register names for sh-dsp.
7314 (parse_at): Recognize post-modify addressing.
7315 (get_operands): The leading space is now optional.
7316 (get_specific): Remove FDREG_N support. Add support for sh-dsp
7317 arguments. Update valid_arch.
7318 (build_Mytes): Add support for SDT_REG_N.
7319 (find_cooked_opcode): New function, broken out of md_assemble.
7320 (assemble_ppi, sh_elf_final_processing): New functions.
7321 (md_assemble): Use find_cooked_opcode and assemble_ppi.
7322 (md_longopts, md_parse_option): New option: -dsp.
7323 * config/tc-sh.h (elf_tc_final_processing): Define.
7324 (sh_elf_final_processing): Declare.
7326 Fri Feb 11 14:21:51 2000 Jeffrey A Law (law@cygnus.com)
7328 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7329 the unwinder subspace. Save the current seg/subseg before creating
7332 2000-02-10 Nick Clifton <nickc@cygnus.com>
7334 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
7335 little endian targets.
7336 (INST_BYTE1): Redefine to handle big and little endian
7338 (cpu_type): New type: Select between M340 and M210.
7339 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
7340 instructions of the M340.
7341 (md_assemble): Add support for the MULSH and OPSR classes of
7343 (md_atof): Add support for little endian targets.
7344 (md_parse_option): Add support for -EL, -EB and -mcpu command
7346 (md_convert_frag): Add support for little endian targets.
7347 (md_apply_fix3): Add support for little endian targets.
7348 (md_number_to_chars): Add support for little endian targets.
7350 2000-02-10 Timothy Wall <twall@redhat.com>
7352 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7353 defined, use it to verify the symbol just read should be a label.
7355 2000-02-10 Timothy Wall <twall@redhat.com>
7357 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7358 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7359 around colons when KEEP_WHITE_AROUND_COLON is defined.
7360 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7361 and KEEP_WHITE_AROUND_COLON.
7363 2000-02-08 Timothy Wall <twall@redhat.com>
7365 * read.c (s_rept): Call do_repeat, which abstracts the repeat
7367 (do_repeat): New. Abstract repeat logic so that a "break" can be
7369 (end_repeat): New. Provide support for a "break" out of the
7371 * read.h: Add prototypes for new functions.
7373 2000-02-08 Timothy Wall <twall@redhat.com>
7375 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7376 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7377 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
7380 2000-02-08 Timothy Wall <twall@redhat.com>
7382 * read.c: Added elseif to directives table.
7383 * read.h: Added prototype for s_elseif.
7384 * doc/as.texinfo: Added description for elseif.
7385 * cond.c (s_elseif): New function
7387 2000-02-04 Timothy Wall <twall@redhat.com>
7389 * listing.c (print_lines): Remove conditionals causing bug in
7392 2000-02-03 Timothy Wall <twall@cygnus.com>
7394 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7396 * frags.c (frag_new): Calculate fr_fix in octets
7397 (frag_now_fix) Return offset as target address offset (bytes).
7398 (frag_now_fix_octets) New - Return offset in octets (8-bit
7400 * frags.h: Added prototype for frag_now_fix_octets().
7401 Distinguish between octets and bytes in field descriptions.
7402 * listing.c (calc_hex): Account for octets vs bytes when
7403 printing addresses/offsets.
7404 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7405 target is little-endian, print the octets in a word in big-endian
7406 order so that the display looks like a proper hexadecimal number,
7407 instead of having the octets reversed.
7408 * read.c (do_align): When recording alignment, alignment power
7409 should be in terms of target bytes (minimum addressible unit)
7411 (do_org) Convert ORG target address (byte) argument into an
7412 octet offset when generating a variable fragment.
7413 * symbols.c (resolve_symbol_value): Symbol final value
7414 converted to a target address offset (bytes) from its octet offset.
7415 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7416 offset (bytes) is adjusted by the frag offset (octets) converted
7418 (coff_frob_section) Section alignment power is in terms of bytes;
7419 convert it to an octet alignment power when calculating size (and
7420 size mask) in octets. Don't modify the section size in order to
7421 "align" it for TI COFF, since that format has a different method
7422 for storing alignment information.
7424 2000-02-01 Timothy Wall <twall@cygnus.com>
7426 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7427 entries, matching the way GCC generates them. If not escaped, the
7428 filename is encoded incorrectly.
7430 2000-01-31 Nick Clifton <nickc@cygnus.com>
7432 * config/tc-arm.c (reg_table): Add support for ATPCS register
7435 2000-01-31 Geoff Keating <geoffk@cygnus.com>
7437 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7439 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
7441 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7442 of a symbol when we really care about its value.
7444 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
7446 * config/tc-mcore.c (md_assemble): Give warning message if
7447 operands passes to instruction are more than the spec.
7449 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7451 * config/tc-arm.c (armadjust_symtab): If the assembler is in
7452 Thumb mode but the label seen was not declared as '.thumb_func'
7453 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
7454 correct disassembly of Thumb code bounded by non function labels.
7456 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7458 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7459 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7461 * Makefile.in: Same here.
7464 * configure.in: Set bfd_gas for i386-aout when primary target
7465 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7466 we may need the primary te_file. Remove incorrect comment.
7468 * configure: Regenerate.
7470 * config/e-i386aout.c: New file.
7472 * as.c (USE_EMULATIONS): Move to before print_version_id.
7473 (struct emulation): Add i386aout.
7474 (show_usage): Split text strings. Reformat -a text. Add --em
7478 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7479 (aout_format_ops): New.
7482 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7483 preprocessor conditional and add aout USE_EMULATIONS tests.
7484 (read_a_source_file): Don't pass error strings to printf as
7488 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7490 (do_data): Same here.
7491 (process_file): And here.
7494 * symbols.c (colon): Rewrite "already defined" fatal message
7495 code for aout with USE_EMULATIONS.
7498 * config/obj-aout.c (OBJ_HEADER): Define.
7499 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
7501 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7502 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7504 (obj_aout_type): Expand S_SET_OTHER here too.
7505 (obj_read_begin_hook): Remove.
7506 (aout_pop_insert): New.
7507 (obj_aout_s_get_other): New.
7508 (obj_aout_s_get_desc): New.
7509 (aout_format_ops): New.
7512 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7513 gets aout_pseudo_table.
7514 (aout_pseudo_table): Declare.
7515 (obj_read_begin_hook): Define.
7518 * config/obj-coff.c (obj_pseudo_table): Rename to
7520 (coff_pop_insert): Use coff_pseudo_table.
7521 (coff_sec_sym_ok_for_reloc): Remove.
7522 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7523 and comment all zero entries and remove #if 0 code.
7526 * config/obj-coff.h (obj_pop_insert): Define.
7527 (coff_pseudo_table): Declare.
7530 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7531 s_get_size, s_set_size. Comment all zero entries.
7534 * config/obj-elf.c (elf_s_get_other): New function.
7535 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7536 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7537 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7539 (obj_elf_parse_section_letters): Don't pass error strings to
7540 printf as format arg.
7543 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7545 (elf_s_get_other): Declare.
7546 (S_GET_OTHER) Define as elf_s_get_other if not already
7548 (S_SET_OTHER): Only define when not already defined.
7549 (elf_obj_read_begin_hook): Declare.
7550 (obj_read_begin_hook): Define.
7551 (elf_obj_symbol_new_hook): Declare.
7552 (obj_symbol_new_hook): Define.
7555 * config/obj-multi.h: Add copyright header and protect against
7556 multiple inclusion. Add * to all function pointers.
7557 (OBJ_HEADER): If defined, include it rather than other defines
7559 (obj_frob_file_after_relocs): Test for NULL.
7560 (obj_symbol_new_hook): Here too.
7561 (obj_sec_sym_ok_for_reloc): And here.
7562 (S_GET_OTHER): Define.
7563 (S_GET_DESC): Define.
7564 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7565 (OBJ_MAYBE_ELF): Update comment.
7567 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7568 OBJ_AOUT preprocessor conditional and handle emulation by
7569 testing OUTPUT_FLAVOR.
7570 (i386_displacement): Here too.
7571 (md_section_align): Similarly here.
7572 (i386_target_format): Conditionally compile when more than one
7573 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7574 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7575 (i386_displacement): Here too.
7578 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7579 Define TARGET_FORMAT for aout only when not multi.
7582 * config/te-multi.h: Delete file as it's identical to te-generic.h
7584 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
7586 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7587 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7590 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7592 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7595 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
7597 * config/tc-mips.c (mips_do_align): New function.
7598 * config/tc-mips.h (md_do_align): Define.
7600 2000-01-10 Philip Blundell <philb@gnu.org>
7602 * doc/c-arm.texi (ARM Options): Fix typo.
7603 (ARM-Chars): Correct description of `#'. Mention that `;' is a
7604 line separator for Linux.
7605 * doc/as.texinfo (Comments): Mention the ARM.
7607 2000-01-10 Philip Blundell <pb@futuretv.com>
7609 * configure.in (arm*-*-conix*): New target.
7610 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7612 * configure: Regenerate.
7614 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7616 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7617 (obj_elf_visibility): New function.
7619 * doc/as.texinfo (Visibility): New node: document visibility
7622 For older changes see ChangeLog-9899