1 2001-12-31 Richard Henderson <rth@redhat.com>
3 * config/tc-ia64.c (errata_nop_necessary_p): Prototype.
4 (make_unw_section_name): Constify local variables.
6 Mon Dec 31 16:48:07 2001 Jeffrey A Law (law@redhat.com)
8 * config/tc-hppa.c (pa_ip): Handle new 'c' mode completers,
11 2001-12-21 Jakub Jelinek <jakub@redhat.com>
13 * config/tc-sparc.h (TC_PARSE_CONS_EXPRESSION): Define.
14 (sparc_cons): Provide prototype.
15 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_*_PCREL and
16 BFD_RELOC_SPARC_PLT{32,64}. Enumerate for which relocs
17 reloc->addend = fixp->fx_addnumber shouldn't be done instead of
18 enumarating for which pc relative ones it should be done.
19 (sparc_cons_special_reloc): New variable.
20 (sparc_cons): New function.
21 (cons_fix_new_sparc): Use sparc_cons_special_reloc.
22 * testsuite/gas/sparc/pcrel.s: New test.
23 * testsuite/gas/sparc/pcrel.d: Expected output.
24 * testsuite/gas/sparc/pcrel64.s: New test.
25 * testsuite/gas/sparc/pcrel64.d: Expected output.
26 * testsuite/gas/sparc/plt.s: New test.
27 * testsuite/gas/sparc/plt.d: Expected output.
28 * testsuite/gas/sparc/plt64.s: New test.
29 * testsuite/gas/sparc/plt64.d: Expected output.
30 * testsuite/gas/sparc/sparc.exp: Add pcrel, pcrel64, plt and plt64
33 2001-12-20 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
34 Daniel Jacobowitz <drow@mvista.com>
36 * config/tc-mips.c (file_mips_gp32): Initialize to invalid value.
37 (file_mips_fp32): Likewise.
38 (md_begin): Compatibility handling for -mipsN option.
40 2001-12-20 Alexandre Oliva <aoliva@redhat.com>
42 * config/tc-sh.c (parse_at): Reject @(r0) and @(r0,).
44 2001-12-20 matthew green <mrg@redhat.com>
46 * config/tc-ppc.c (md_parse_option): Make -maltivec default
47 to generating PowerPC instructions.
49 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
51 * configure.in (mips-dec-netbsd*): Delete.
52 * configure: Regenerate.
54 * configure.in (arm-*-netbsdelf*): Add target.
55 * configure: Regenerate.
57 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
59 * config/tc-mips.h (TC_HANDLE_FX_DONE): Remove redundant
62 2001-12-18 Niibe Yutaka <gniibe@m17n.org>
64 * configure.in (assign object format): Bug fix for setting
66 * configure: Regenerate.
68 2001-12-18 matthew green <mrg@eterna.com.au>
70 * configure.in (m68k-*-netbsdelf*): New target.
71 (m68k-*-netbsd*): Also include ELF support.
72 (m68k-*-netbsdaout*): New alias for m68*-*-netbsd*.
73 * configure: Regenerate.
75 2001-12-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
77 * gasp.c (main): Protoype.
79 2001-12-17 Richard Henderson <rth@redhat.com>
81 * config/tc-alpha.c (alpha_handle_align): Encode unop with RB as $sp.
83 2001-12-17 Nick Clifton <nickc@cambridge.redhat.com>
85 * cgen.c: Add prototype for queue_fixup.
86 (gas_cgen_parse_operand): Move initilisastion of errmsg to avoid
87 possible longjmp corruption.
88 * cgen.h: Add prototype for gas_cgen_md_operand.
90 2001-12-15 Alan Modra <amodra@bigpond.net.au>
92 * config/obj-elf.c (obj_elf_init_stab_section): References are
93 kept to section name strings. Don't alloca them!
95 2001-12-12 Alexandre Oliva <aoliva@redhat.com>
97 * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
98 OPERAND_ATSIGN as O_absent.
100 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
101 Richard Henderson <rth@redhat.com>
103 * configure.in: Add support for xstormy16.
104 * configure: Regenerated.
105 * Makefile.am: Add support for xstormy16.
106 * Makefile.in: Regenerated.
107 * config/tc-xstormy16.c: New file.
108 * config/tc-xstormy16.h: New file.
110 2001-12-06 Richard Earnshaw (rearnsha@arm.com)
112 * tc-arm.c (do_arit, do_cmp, do_mov, do_ldst, do_ldstt, do_ldmstm)
113 (do_branch, do_swi, do_adr, do_adrl, do_empty, do_mul, do_mla)
114 (do_swap, do_msr, do_mrs, do_mull, do_ldstv4, do_bx, do_blx)
115 (do_bkpt, do_clz, do_lstc2, do_cdp2, do_co_reg2, do_smla, do_smlal)
116 (do_smul, do_qadd, do_pld, do_ldrd, do_co_reg2c, do_cdp, do_lstc)
117 (do_co_reg, do_fpa_ctrl, do_fpa_ldst, do_fpa_ldmstm, do_fpa_monadic)
118 (do_fpa_dyadic, do_fpa_cmp, do_fpa_from_reg, do_fpa_to_reg, do_mia)
119 (do_mar, do_mra, do_c_binops, do_c_binops_1, do_c_binops_2)
120 (do_c_binops_3, do_c_triple, do_c_triple_4, do_c_triple_5, do_c_quad)
121 (do_c_quad_6, do_c_dspsc, do_c_dspsc_1, do_c_dspsc_2, do_c_shift)
122 (do_c_shift_1, do_c_shift_2, do_c_ldst, do_c_ldst_1, do_c_ldst_2)
123 (do_c_ldst_3, do_c_ldst_4, do_branch25): Delete redundant argument,
125 (struct asm_opcode): Adjust parms field accordingly.
126 (md_assemble): Don't pass dummy second argument when calling worker
128 (build_arm_ops_hsh): Add prototype
131 2001-12-05 Richard Earnshaw <rearnsha@arm.com>
133 * tc-arm.c (struct asm_opcode): Delete comp_suffix and flags. Add
134 cond_offset. Rename variants->variant.
135 (insns): Adjust for new format. Explicitly code each variant that
136 takes flags. Remove temporary instructions.
137 (struct arm_it): Remove redundant field suffix.
138 (s_flag, ldr_flags, str_flags, byte_flag, cmp_flags, ldm_flags)
139 (stm_flags, lfm_flags, sfm_flags, round_flags, fix_flags, except_flag)
141 (struct asm_flg): Delete.
142 (LONGEST_INST): Delete.
143 (V4_STR_BIT): Define.
144 (struct thumb_opcode): Rename variants->variant.
145 (do_empty): Renamed from do_nop.
146 (ldst_extend): Delete argument hwse. Split code for half-word and
147 signed byte instructions to ...
148 (ldst_extend_v4): ... here.
149 (ld_mode_required_here): Use ldst_extend_v4.
150 (do_ldrd): Simplify now that this is only called for ldrd. No
151 need to test for XScale, which was wrong anyway. Don't reject r12
152 as a target register. Add test that ldrd doesn't update an index
154 (do_pld): Don't allow post-indexed or write-back addressing modes.
155 Adjust call to ldst_extend.
156 (do_adr): Split code for adrl to ...
158 (do_cmp): No need to fold in COND_BIT.
159 (do_ldst): Simplify. Split code for ldrt/strt into do_ldstt. Split
160 code to handle half-word and signed byte instructions to ...
161 (do_ldstv4): ... here.
162 (do_ldstt): New function. Handle load/store with translate.
163 (do_ldmstm): Write feature modification bits directly into
165 (do_fpa_ldst): Remove suffix handling code.
166 (do_fpa_dyadic, do_fpa_monadic, do_fpa_from_reg): Likewise.
167 (do_fpa_ldmstm): Type of access is now held in inst.instruction.
168 (build_arm_ops_hsh): New function.
169 (md_begin): Call it. Don't build the ARM opcode directly.
170 (md_assemble): Simplify ARM instruction handling.
172 2001-12-05 Arati Dikey <aratid@kpit.com>
174 * tc-sh.c (parse_at): Corrected incorrect op->type selection due
177 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
179 * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so
180 that we can tell which operand refers to the insn put in the L
181 container and mark it as such, so that the relocation type can be
184 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
186 * config/tc-mips.c (mips_cpreturn_offset): Better comment.
187 (load_register): Better error message. Cast away signedness
188 mismatches. Add casts needed for varargs.
189 (load_address): Replace checks of HAVE_64BIT_ADDRESS with dbl.
190 Remove superfluous casts.
191 (macro): Cast away signedness mismatches. Remove superfluous casts.
192 (s_cpload): Fix wrong comment.
193 (s_mips_weakext): Standardize output message.
194 (get_number): Likewise.
196 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
198 * config/tc-mips.c (append_insn): Add jump address range overflow
201 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
203 * config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
205 (show): Document -mabi option.
207 2001-12-03 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
209 * config/tc-arm.c (md_parse_option): Only clear cpu part when
210 specifying 'xscale' cpu (don't change the fpu part).
212 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
214 * config/tc-d10v.c (find_opcode): Reject SP operand if
215 OPERAND_NOSP flag is present.
217 2001-12-03 Eric Christopher <echristo@redhat.com>
219 * config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
221 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
223 * config/tc-mips.c (macro_build): Replace BFD_RELOC_MIPS_GPREL
224 by BFD_RELOC_GPREL16.
225 (load_address): Likewise.
227 (md_apply_fix): Likewise. Replace BFD_RELOC_MIPS_GPREL32 by
229 (s_gpword): Replace BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
230 (tc_gen_reloc): Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
231 *config/tc-mips.h: Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
233 2001-11-29 Alexandre Oliva <aoliva@redhat.com>
235 * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
238 * config/tc-d10v.c (find_opcode): Reject non-SP operand if
241 2001-11-29 Arati Dikey <aratid@kpit.com>
243 * tc-sh.c (parse_at): Removed case-sensitivity of index register
246 2001-11-28 Jakub Jelinek <jakub@redhat.com>
248 * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
249 in reloc if it has non-zero addend.
250 * config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
251 * config/tc-sparc.c (md_apply_fix3): Likewise.
253 2001-11-28 Andreas Schwab <schwab@suse.de>
255 * as.c (parse_args): Call md_after_parse_args if defined.
256 * config/tc-ia64.h (md_after_parse_args): Define.
257 * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs.
258 * doc/internals.texi (CPU backend): Document md_after_parse_args.
260 2001-11-23 Jakub Jelinek <jakub@redhat.com>
262 * config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
263 * write.c (adjust_reloc_syms): Don't handle relocs against
264 SEC_MERGE section symbols specially.
265 (fixup_segment): Likewise.
267 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
269 * config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
270 (md_apply_fix3): ...here. Don't prevent the symbol value being
271 subtracted twice from GPREL addends.
272 (tc_gen_reloc): Add the symbol value to a GPREL addend if it was
273 subtracted by the previous function.
275 2001-11-20 Nick Clifton <nickc@cambridge.redhat.com>
277 * config/tc-avr.c (md_apply_fix3): Fix typo introduced by
278 md_apply_fix3 change.
280 2001-11-20 Ben Elliston <bje@redhat.com>
282 * config/tc-m88k.c (md_apply_fix3): Match local variable `val' to
283 usage after md_apply_fix3 cleanups.
285 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com>
287 * doc/c-mmix.texi: Use texinfo 4 features.
288 (MMIX-mmixal): Fix typo.
290 2001-11-17 Hans-Peter Nilsson <hp@axis.com>
292 * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
295 2001-11-16 Michael Snyder <msnyder@redhat.com>
297 * stabs.c (stabs_generate_asm_lineno): Remember file and line number
298 from one call to the next, and eliminate consecutive duplicates
299 (thereby emitting only one line symbol per source line).
300 * dwarf2dbg.c (dwarf2_gen_line_info): Ditto.
302 2001-11-16 Alan Modra <amodra@bigpond.net.au>
304 * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
306 2001-11-15 H.J. Lu <hjl@gnu.org>
308 * config/tc-hppa.c (md_apply_fix3): Fix a typo.
310 2001-11-15 H.J. Lu <hjl@gnu.org>
312 * config/tc-alpha.c (md_apply_fix3): Fix a typo.
314 2001-11-15 Nick Clifton <nickc@cambridge.redhat.com>
316 * write.c (fixup_segment): Remove references to md_apply_fix and
318 * cgen.c, config/obj-coff.c, config/tc-*.c: Update all occurances
319 of md_apply_fix to md_apply_fix3.
320 Make all md_apply_fix3 functions void.
321 * cgen.h, config/obj-coff.h, tc-*.h: Remove all definitions of
322 MD_APPLY_FIX3 and TC_HANDLE_FX_DONE.
323 * doc/internals.texi: Update references to md_apply_fix3.
324 * tc.h: Update prototype for md_apply_fix3.
326 2001-11-15 Alan Modra <amodra@bigpond.net.au>
328 * config/tc-i386.h (md_end): Define.
329 (i386_elf_emit_arch_note): Declare.
330 (CpuUnknown): Delete.
331 * config/tc-i386.c (default_arch): Constify.
332 (smallest_imm_type): Remove CpuUnknown test.
333 (md_assemble): Don't bother checking cpu_arch_flags non-zero.
334 (i386_elf_emit_arch_note): New function.
336 * po/POTFILES.in: Regenerate.
338 2001-11-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
340 * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
342 2001-11-15 Alan Modra <amodra@bigpond.net.au>
344 * frags.c (frag_grow): Revert last change.
346 * dwarf2dbg.c (get_frag_fix): Align last frag size.
348 * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
350 (md_assemble): Likewise.
352 2001-11-12 Nick Clifton <nickc@cambridge.redhat.com>
354 * frags.c (frag_grow): Use frag_make_room() to grow the
357 2001-11-14 Nick Clifton <nickc@cambridge.redhat.com>
359 * config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
360 value from the addend for fixups against local symbols in
361 SEC_MERGE sections - it was not added in, in the first place.
363 2001-11-11 Timothy Wall <twall@alum.mit.edu>
365 * write.c (relax_segment): Convert symbol address into an octet
366 offset prior to adding to the frag address, which is an octet
367 offset. Add comments to that effect.
368 * config/tc-tic54x.c: Fix bugs causing tests to fail.
369 * config/tc-tic54x.h: Ditch PARAMS macro.
371 2001-11-13 Alan Modra <amodra@bigpond.net.au>
373 * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
374 put in note section. Use sizeof instead of hard-coded constants.
376 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
378 * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
379 (md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
380 OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
381 Sort options a bit more logical.
382 (md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
383 OPTION_MABI only for elf targets.
385 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
387 * config/tc-mips.c (set_at): Add cast needed for varargs.
388 (load_register): Likewise.
389 (macro): Likewise. Some code reformatting.
390 (macro2): Add cast needed for varargs.
391 (mips16_macro): Likewise.
393 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
395 * config/tc-mips.c (md_assemble): Remove superflous casts.
396 (append_insn): Likewise.
397 (mips16_macro_build): Likewise.
399 (mips16_ip): Likewise.
400 (s_cpload): Likewise.
401 (mips_relax_frag): Likewise.
403 2001-11-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
405 * config/tc-mips.c (mips_abi_level): Move in front of
407 (mips_set_options): Add members gp32, fp32, abi.
408 (file_mips_gp32): New flag.
409 (file_mips_fp32): New flag.
410 (mips_opts): Initialize the new members.
413 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
414 (HAVE_32BIT_FPRS): Likewise.
415 (HAVE_NEWABI): Likewise.
416 (HAVE_64BIT_OBJECTS): Likewise.
417 (md_begin): Likewise. Save default (file) values.
418 (md_parse_option): Use the new values from mips_opts.
419 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
420 possible. Let .set mipsN work together with .set push/pop.
421 Enhance error messages.
422 (mips_elf_final_processing): Use file_mips_* for header processing.
424 2001-11-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
426 * config/tc-avr.c (mcu_types): Update for new devices.
428 2001-11-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
430 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
432 * doc/Makefile.in: Rebuild.
433 * doc/as.texinfo: Do not put man SEEALSO in document;
434 Use @command for commands, @option for options; Reorganize usage
435 to clearly identify target specific options.
437 2001-11-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
439 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
441 2001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
443 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
445 2001-11-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
447 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
448 that need the global offset table.
449 (md_apply_fix3): Add code to undo opertions done in fixup_segment
450 triggered by TC_FORCE_RELOCATION.
451 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
452 a call to function tc_s390_force_relocation.
453 (TC_FIX_ADJUSTABLE): Define.
455 2001-11-04 Chris Demetriou <cgd@broadcom.com>
457 * configure.in (mips-*-netbsd*): Add support for target.
458 * configure: Regenerate.
460 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
462 * configure.in (ALL_LINGUAS): Add 'fr'.
463 * configure: Regernate.
464 * po/fr.po: New file. Obtained from the translation project web
467 2001-11-02 Richard Earnshaw <rearnsha@arm.com>
469 * tc-arm.c: Re-arrange prototypes by architecture.
470 (insns): Re-arrange instructions by archtitecture. Pld instruction
472 (tinsns): blx and bkpt are part of ARMv5T.
473 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
474 to do_fpa_*. All callers changed.
476 * tc-arm.c (insns): Add two temporary instructions to handle
479 2001-11-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
481 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
482 for bra/bsr and use frag_variant(), this ensure that the possible
483 16-bit BFD_RELOC_16 will be in the same frag.
485 2001-10-31 Chris Demetriou <cgd@broadcom.com>
487 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
488 PIC code, assume pointers the same size as GPRs.
489 (macro): In M_LA_AB handling for embedded PIC code, support
490 "la $treg,foo-bar($breg)". In load/store handling
491 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
492 which is used by the compiler for switch statements.
493 In load/store double multi-instruction macro handling
494 (label ldd_std) add a comment that no special handling
495 is currently done for embedded PIC.
496 (mips_ip): In 'o' (16-bit offset) case, only accept 16
499 2001-10-31 Richard Earnshaw <rearnsha@arm.com>
501 General cleanup of feature definitions.
502 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
503 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
504 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
505 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
506 (ARM_EXT_V{5,5E}): Synchronize with above.
507 (ARM_ARCH_V*): Define a complete set in terms of above features.
508 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
509 (FPU_FPA_EXT_V[12]): Define.
510 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
512 (FPU_DEFAULT): Default to FPA.
513 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
514 Thumb, this is now ARM_ARCH_V5T.
515 (insns): Rework for new feature defines.
517 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
519 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
521 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
522 * configure: Regenerate.
523 * Makefile.in: Regenerate.
524 * doc/c-sh.texi (SH Options): Added descriptions.
526 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
528 * configure.in: Update for MMIX port.
529 * Makefile.am: Ditto. Regenerate dependencies.
530 * Makefile.in: Regenerate.
531 * configure: Regenerate.
532 * config/tc-mmix.h, config/tc-mmix.c: New files.
533 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
534 * doc/Makefile.in: Regenerate.
535 * doc/all.texi: @set MMIX.
536 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
538 * doc/c-mmix.texi: New file.
540 2001-10-24 Chris Demetriou <cgd@broadcom.com>
542 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
543 these evaluate to true if mips_arch indicates SB-1.
545 2001-10-23 Alan Modra <amodra@bigpond.net.au>
547 * as.c (parse_args): Print the date as well for --version.
549 2001-10-20 Chris Demetriou <cgd@broadcom.com>
551 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
552 SB-1 CPU for consistency.
553 (mips_cpu_info_table): Tweak comment about SB-1.
555 2001-10-20 H.J. Lu <hjl@gnu.org>
557 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
558 (cirrus_parse_offset): Likewise.
560 2001-10-19 Nick Clifton <nickc@cambridge.redhat.com>
562 * config/tc-arm.c: Restore line_comment_chars.
564 2001-10-18 Nick Clifton <nickc@cambridge.redhat.com>
566 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
569 2001-10-18 Hans-Peter Nilsson <hp@bitrange.com>
571 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
572 for undefined symbols.
574 2001-10-17 Chris Demetriou <cgd@broadcom.com>
576 * doc/as.texinfo (MIPS ISA options): Added accidentally
577 omitted "-mips64" option to list of options.
579 2001-10-17 matthew green <mrg@redhat.com>
581 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
582 -m7410, -m7450 and -m7455 options.
584 2001-10-17 Alan Modra <amodra@bigpond.net.au>
586 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
587 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
588 (md_begin): Don't set ppc_size here.
589 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
590 (md_shortopts): Constify.
591 (md_longopts): Likewise.
592 (md_longopts_size): Likewise.
593 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
595 (ppc_machine): Explain why this function is a nop.
597 2001-10-17 Alan Modra <amodra@bigpond.net.au>
599 * bit_fix.h: Comment typo fix.
600 * config/tc-mips.c: Likewise.
601 * config/tc-sh.c: Likewise.
602 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
604 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
605 that autoheader doesn't duplicate config.in entries.
606 (DEFAULT_ARCH): Ditto.
607 * configure: Regenerate.
608 * config.in: Regenerate.
610 2001-10-16 Alan Modra <amodra@bigpond.net.au>
612 From Andrew Pines <apines@cosmodog.com>
613 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
615 2001-10-16 NIIBE Yutaka <gniibe@m17n.org>,
616 Hans-Peter Nilsson <hp@bitrange.com>
618 * config/tc-sh.c (shl): Remove.
620 (little): Remove shl handling. Emit error for endian mismatch.
621 (md_show_usage): Add description of -big.
622 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
624 (md_pseudo_table): Add .big.
625 (md_longopts): Add -big.
626 (md_begin): Don't set target_big_endian here.
627 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
628 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
630 * configure.in (endian): Default is big.
631 (sh-*-pe*): Little endian.
632 (cpu_type): Set sh for target sh*.
633 * configure: Regenerate.
635 2001-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
637 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
640 2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
642 * config/tc-arm.c: Replace CONST with const.
644 * cgen.c: Tidy up formatting.
646 2001-10-12 matthew green <mrg@redhat.com>
648 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
649 flags, equivalent to -m7400. New -maltivec to enable AltiVec
650 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
651 64-bit and 32-bit BookE support, respectively. Change -m403 and
652 -m405 to set PPC403 option.
653 (md_show_usage): Adjust for new options.
654 * doc/all.texi: Set PPC.
655 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
656 * doc/c-ppc.texi: New file.
657 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
658 * doc/Makefile.in: Regenerate.
660 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
662 * read.c (s_bad_endr): New function. Issues a warning message
663 about a bad use of the .rept pseudo op.
664 (po_table[]): Add .endr.
665 * read.h: Prototype s_bad_endr.
667 * CONTRIBUTORS: Update contact email address.
669 2001-10-11 Kazu Hirata <kazu@hxi.com>
671 * config/tc-alpha.c: Fix comment typos.
672 * config/tc-cris.c: Likewise.
673 * config/tc-hppa.c: Likewise.
674 * config/tc-i370.c: Likewise.
675 * config/tc-mips.c: Likewise.
676 * config/tc-mn10200.c: Likewise.
677 * config/tc-mn10300.c: Likewise.
678 * config/tc-sh.c: Likewise.
679 * config/tc-tahoe.c: Likewise.
680 * config/tc-v850.c: Likewise.
682 2001-10-11 Kazu Hirata <kazu@hxi.com>
684 * app.c: Fix comment typos.
685 * bit_fix.h: Likewise.
687 * itbl-ops.c: Likewise.
689 2001-10-11 Nick Clifton <nickc@cambridge.redhat.com>
691 * input-file.c: Include safe-ctype.h.
692 (input_file_open): Use ISSPACE instead of isspace.
694 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
696 * config/tc-mips.c (mips_cpreturn_offset): New variable.
697 (mips_cpreturn_register): Likewise.
698 (mips_gp_register): Likewise.
699 (s_cpsetup): New function prototype.
700 (s_cplocal): Likewise.
701 (s_cpreturn): Likewise.
702 (s_gpvalue): Likewise.
703 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
705 (macro): Don't warn about .cprestore for NewABI.
706 (md_pcrel_from): Code cleanup.
707 (mips_force_relocation): Force output of some NewABI relocations even
708 without a defined symbol.
709 (s_cpload): Ignore .cpload for NewABI.
710 (s_cpsetup): Handle .cpsetup.
711 (s_cplocal): Handle .cplocal.
712 (s_cprestore): Ignore .cprestore for NewABI.
713 (s_cpreturn): Handle .cpreturn.
714 (s_gpvalue): Handle .gpvalue.
715 (s_cpadd): Ignore .cpadd for NewABI.
716 (nopic_need_relax): Take g_switch_value into account as gp
718 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
720 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
722 * config/tc-mips.c (my_getSmallParser): New function prototype.
723 (small_ex_type): Named this enum, more return values for
724 my_getSmallExpression.
725 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
726 triple relocations. Protect some parts with ifdef OBJ_ELF.
727 (percent_op_match): New struct, lookup table for %some_reloc().
728 (my_getSmallParser): New function, parses nested percent_ops also.
729 (my_getSmallExpression): Rewite to support nested percent_ops.
731 2001-10-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
734 (load_address): Support both 32- and 64-bit addresses.
735 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
736 (macro2): Call load_address correctly.
738 2001-10-09 Christian Groessler <cpg@aladdin.de>
740 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
741 since z8k-opc.h now uses the PARAMS macro.
743 2001-10-09 Aldy Hernandez <aldyh@redhat.com>
745 * config/tc-arm.c: Change MAVERIK to MAVERICK.
747 2001-10-09 Alan Modra <amodra@bigpond.net.au>
749 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
751 (obj_elf_change_section): Rename "group" to "group_name".
752 (obj_elf_section): Likewise.
753 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
754 first member section; Instead use elf_next_in_group.
756 2001-10-09 Alan Modra <amodra@bigpond.net.au>
758 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
759 Set elf_section_data group from it. Warn if group name changed.
760 (obj_elf_parse_section_letters): Parse 'G' too.
761 (obj_elf_section): Parse group name.
762 (struct group_list): New.
763 (build_group_lists): New function.
764 (elf_frob_file): Create SEC_GROUP section(s).
766 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
769 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
771 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
773 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
774 (cirrus_regtype): New enum.
775 (LONGEST_INST): Change to 10.
782 (insns): Add cirrus dsp instructions.
783 (ARM_EXT_MAVERIKSC_REG): New.
784 (cirrus_register): New.
785 (cirrus_mvf_register): New.
786 (cirrus_mvd_register): New.
787 (cirrus_mvfx_register): New.
788 (cirrus_mvdx_register): New.
789 (cirrus_mvax_register): New.
790 (ARM_EXT_MAVERIKsc_register): New.
791 (reg_table): Add cirrus registers.
792 (cirrus_valid_reg): New.
793 (cirrus_reg_required_here): New.
794 (do_c_binops_1): New.
795 (do_c_binops_2): New.
796 (do_c_binops_3): New.
797 (do_c_triple_4): New.
798 (do_c_triple_5): New.
813 (cirrus_parse_offset): New.
815 (md_parse_option): Add arm9e.
816 (md_show_usage): Same.
818 2001-10-08 Tom Rix <trix@redhat.com>
820 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
822 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
824 2001-10-07 Alan Modra <amodra@bigpond.net.au>
826 * config/obj-elf.c: Standardize error/warning messages - don't
827 capitalise, no final period or newline, don't say "ignoring" for
828 as_bad messages. In some cases, change the wording to that used
829 elsewhere for similar messages.
830 (obj_elf_section_name): New function, split out from ..
831 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
832 entsize not specified.
834 2001-10-05 Jakub Jelinek <jakub@redhat.com>
836 * doc/as.texinfo: Document M and S ELF section flags.
838 2001-10-05 Alan Modra <amodra@bigpond.net.au>
840 * subsegs.c (subseg_text_p): Return 0 for absolute section.
841 * read.c (do_align): If in absolute section, warn about and ignore
842 non-zero fill pattern.
844 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
846 * config/tc-mn10300.c (tc_gen_reloc): Don't free
847 reloc->sym_ptr_ptr if it's not allocated.
849 2001-10-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
851 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
853 (prev_insn_fixp): Likewise.
854 (append_insn): Changed prototype to accept a relocation pointer.
855 (imm_reloc): Make it an array.
856 (offset_reloc): Likewise.
857 (md_assemble): Handle triple relocations.
858 (append_insn): Likewise. Add handling for some NewABI relocations.
859 (mips_no_prev_insn): Handle triple relocations.
860 (macro_build): Likewise. Add handling for some NewABI relocations.
861 Move handling for the 'u' case to append_insn().
862 (mips16_macro_build): Handle triple relocations.
863 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
865 (mips_ip): Handle triple relocations.
866 (mips16_ip): Likewise.
867 (mips_force_relocation): Force handling of triple relocations
868 without symbols for NewABI.
869 (md_apply_fix): Add handling for some NewABI relocations.
871 2001-10-05 Alan Modra <amodra@bigpond.net.au>
873 * config/tc-i386.c (parse_register): If not producing code for
874 x86_64, reject x86_64 register name matches.
875 (md_assemble): Remove now redundant check for x86_64 regs.
877 2001-10-04 Alan Modra <amodra@bigpond.net.au>
879 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
880 as BFD_DEFAULT_TARGET_SIZE.
882 (ppc_is_toc_sym): Likewise.
883 (md_apply_fix3): Likewise.
885 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
887 * config/tc-mips.c (mips_64): Remove.
888 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
890 (mips_abi_level, mips_abi): New enum.
891 (mips_32bit_abi): Remove.
892 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
893 (HAVE_NEWABI): New define.
894 (HAVE_64BIT_OBJECTS): New define.
895 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
896 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
897 (support_64bit_objects): New prototype.
898 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
899 .reginfo section for n32, use .MIPS.options instead.
900 (support_64bit_objects): New function, code from md_parse_option.
901 (md_longopts): Add -n32 option.
902 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
903 Add -n32 option. Protect with OBJ_ELF.
904 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
905 (mips_elf_final_processing): Likewise. Don't write .reginfo section
906 for n32, use .MIPS.options instead.
908 2001-10-03 Alan Modra <amodra@bigpond.net.au>
910 * po/POTFILES.in: Regenerate.
911 * configure: Regenerate.
913 2001-10-02 Alan Modra <amodra@bigpond.net.au>
915 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
916 bits if target is 64 bit.
918 * doc/as.texinfo (listing): Fix typo.
920 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
922 * Makefile.am (Makefile): Depend on bfd/configure.in.
924 * Makefile.in: Regenerate.
926 2001-09-30 H.J. Lu <hjl@gnu.org>
928 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
929 and "ams" for compatibility.
931 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
933 * config/tc-sh.c (md_pcrel_from_section): Transformed from
934 md_pcrel_from. Handle pc-relativeness against link-time
935 symbol. Handle relativeness to elsewhere than the fixup.
936 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
937 (md_pcrel_from_section): Prototype.
939 * Makefile.am: Update dependencies with "make dep-am".
940 * Makefile.in: Regenerate.
942 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
944 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
945 (print_opcode_format, skip_whites): Likewise.
946 (convert_branch, m68hc11_new_insn): Likewise.
947 (build_dbranch_insn, build_indexed_byte): Likewise.
948 (build_reg_mode, find, find_opcode): Likewise.
949 (print_insn_format): Fix call to print_opcode_format.
950 (md_assemble): Fix call to build_dbranch_insn.
952 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
954 * config/tc-arm.c: Add missing prototypes.
956 2001-09-26 Jeff Johnston <jjohnstn@redhat.com>
958 * input-file.c (input_file_open): When reading the
959 first line looking for #NO_APP, prepare for the possibility
960 of finding #APP instead. Also fix algorithm to allow
961 white-space to follow either #NO_APP or #APP directives.
963 2001-09-25 Geoff Berry <geoff.berry@bops.com>
965 * listing.c (buffer_line): Don't write past the end of `line' when
968 2001-09-25 Alexandre Oliva <aoliva@redhat.com>
970 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
971 relocation for differences between symbols in a section other
972 than the one in which the difference is to be placed; apply
973 the relocation instead.
975 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
977 * config/tc-arc.c: Add missing prototype.
978 (md_atof): Change type to int. Add missing prototype.
979 * config/tc-arc.h: Prototype exported functions.
981 2001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
983 * as.c: Add missing function prototype.
984 * config/obj-aout.c: Fix compile time warning.
986 2001-09-21 Bruno Haible <haible@clisp.cons.org>
988 * config/tc-openrisc.c: Don't include <ctype.h>.
990 2001-09-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
992 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
994 2001-09-19 Alan Modra <amodra@bigpond.net.au>
996 * config/tc-i370.c: Fix typo in last change.
998 2001-09-19 Nick Clifton <nickc@cambridge.redhat.com>
1000 * doc/as.texinfo (Symbol Names): Improve documentation on local
1001 labels and add documenation about dollar labels.
1003 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1005 * as.h: Don't include <ctype.h>.
1006 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
1007 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
1008 (atof_generic): Use ISDIGIT instead of isdigit.
1009 * config/m68k-parse.y: Include "safe-ctype.h".
1010 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
1011 * config/obj-elf.c: Include "safe-ctype.h".
1012 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
1013 * config/obj-vms.c: Include "safe-ctype.h".
1014 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
1015 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
1016 instead of isupper/islower/toupper/tolower.
1017 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
1018 (insert_sreg): Use TOUPPER instead of islower/toupper.
1019 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
1020 isalpha/isalnum/isupper/tolower.
1021 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
1023 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
1024 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
1025 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
1026 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
1027 (arc_extoper): Use TOLOWER instead of isupper/tolower.
1028 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
1029 (arm_psr_parse): Use ISALPHA instead of isalpha.
1030 (accum0_required_here): Use ISALNUM instead of isalnum.
1031 (do_ldrd): Use ISSPACE instead of isspace.
1032 (decode_shift): Use ISALPHA instead of isalpha.
1033 (insert_reg): Use TOUPPER instead of islower/toupper.
1034 (arm_reg_parse): Use ISALPHA instead of isalpha.
1035 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
1036 isalnum/ispunct/tolower.
1037 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
1038 (md_parse_option): Use TOLOWER instead of tolower.
1039 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
1040 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
1041 (cris_process_instruction): Use ISLOWER instead of islower.
1042 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
1043 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
1044 (get_flags): Use ISSPACE instead of isspace.
1045 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
1046 (do_assemble): Use TOLOWER instead of tolower.
1047 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
1048 (do_assemble): Use TOLOWER instead of tolower.
1049 (d30v_start_line): Use ISSPACE instead of isspace.
1050 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
1051 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
1052 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
1053 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
1054 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
1055 (start_label): Use ISALPHA instead of isalpha.
1056 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
1057 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
1058 isupper/islower/tolower.
1059 (pa_parse_number): Use ISDIGIT instead of isdigit.
1060 (pa_chk_field_selector): Use TOLOWER instead of tolower.
1061 (pa_stringer): Use ISDIGIT instead of isdigit.
1062 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
1063 (register_name): Use ISALPHA instead of isalpha.
1064 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
1065 isalnum/islower/tolower.
1066 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
1068 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
1070 (md_assemble): Use ISSPACE instead of isspace.
1071 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
1072 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
1073 instead of isdigit/islower/isupper/tolower/isalpha.
1074 (output_invalid): Use ISPRINT instead of isprint.
1075 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
1076 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1077 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
1078 (get_args): Use ISALNUM instead of isalnum.
1079 * config/tc-ia64.c: Include "safe-ctype.h".
1080 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1081 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
1082 (ia64_parse_name): Likewise.
1083 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
1084 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
1085 instead of isspace/isalnum/isupper/tolower.
1086 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
1087 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
1088 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
1089 (mklower_table): Remove variable.
1090 (mklower): Remove macro.
1091 (insert_reg): Use TOUPPER instead of islower/toupper.
1092 (md_begin): Remove initialization of mklower_table.
1093 (s_reg): Use ISALNUM instead of isalnum.
1094 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
1095 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
1096 (build_mri_control_operand): Use TOLOWER instead of tolower.
1097 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
1098 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
1099 (md_assemble): Use ISSPACE instead of isspace.
1100 (get_imm16): Use ISALNUM instead of isalnum.
1101 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
1102 isdigit/isupper/tolower.
1103 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
1104 instead of isalpha/isupper/tolower.
1105 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
1106 isdigit/islower/isupper.
1107 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
1108 (mcore_s_section): Use ISSPACE instead of isspace.
1109 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
1110 isspace/tolower/isalnum.
1111 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
1112 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
1113 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
1115 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
1116 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
1117 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1118 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
1120 (tc_get_register): Likewise.
1121 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
1122 (s_mips_ent): Use ISDIGIT instead of isdigit.
1123 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
1124 (md_assemble): Use ISSPACE instead of isspace.
1125 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
1126 (md_assemble): Use ISSPACE instead of isspace.
1127 * config/tc-ns32k.c: Don't include <ctype.h>.
1128 * config/tc-pdp11.c: Include "safe-ctype.h".
1129 (mklower): Remove function.
1130 (parse_reg): Use TOLOWER instead of mklower.
1131 * config/tc-pj.c: Include "safe-ctype.h".
1132 (md_assemble): Use ISSPACE instead of isspace.
1133 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
1134 (register_name): Use ISALPHA instead of isalpha.
1135 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
1136 isalnum/islower/tolower.
1137 (md_assemble): Use ISSPACE instead of isspace.
1138 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
1140 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
1141 (register_name): Use ISALPHA instead of isalpha.
1142 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
1143 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
1145 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
1146 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
1147 isalnum/islower/tolower.
1148 (IDENT_CHAR): Use ISALNUM instead of isalnum.
1149 (parse_reg): Use TOLOWER instead of tolower.
1150 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
1151 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
1152 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1153 (parse_keyword_arg): Use ISALNUM instead of isalnum.
1154 * config/tc-tahoe.c: Include "safe-ctype.h".
1155 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
1156 (tip_op): Use TOLOWER instead of isupper/tolower.
1157 * config/tc-tic30.c: Include "safe-ctype.h".
1158 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
1159 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
1160 (tic30_operand): Use TOLOWER instead of tolower.
1161 (tic30_find_parallel_insn): Likewise.
1162 (output_invalid): Use ISPRINT instead of isprint.
1163 * config/tc-tic54x.c: Include "safe-ctype.h".
1164 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
1165 (lookup_version): Use TOUPPER instead of toupper.
1166 (tic54x_var): Use ISALPHA instead of isalpha.
1167 (tic54x_mlib): Use ISSPACE instead of isspace.
1168 (subsym_iscons): Use TOUPPER instead of toupper.
1169 (get_operands): Use ISSPACE instead of isspace.
1170 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1171 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
1172 (next_line_shows_parallel): Use ISSPACE instead of isspace.
1173 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
1174 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
1175 ISSPACE instead of isspace.
1176 * config/tc-tic80.c: Include "safe-ctype.h".
1177 (md_assemble): Use ISSPACE instead of isspace.
1178 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1179 (system_register_name): Use ISDIGIT instead of isdigit.
1180 (md_assemble): Use ISSPACE instead of isspace.
1181 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
1182 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
1183 isupper/tolower/isdigit.
1184 (vip_op): Use TOLOWER instead of isupper/tolower.
1185 * config/tc-w65.c: Don't include <ctype.h>.
1186 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
1187 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
1188 (whatreg): Use ISDIGIT instead of isdigit.
1189 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
1190 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
1191 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
1192 (integer_constant): Use ISALNUM/TOUPPER instead of
1193 isalnum/islower/toupper.
1194 (operand): Use TOLOWER instead of isupper/tolower.
1195 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
1196 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
1198 (process_assigns, whatcond): Use TOUPPER instead of toupper.
1199 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
1200 (main): For gettext, also set the LC_CTYPE locate facet.
1201 * hash.c: Include "safe-ctype.h".
1202 (main): Use TOLOWER instead of isupper/tolower.
1203 * itbl-lex.l: Don't include <ctype.h>.
1204 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
1205 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
1206 omit non-ASCII characters.
1207 (debugging_pseudo): Use ISSPACE instead of isspace.
1208 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
1209 (buffer_and_nest): Use ISALNUM instead of isalnum.
1210 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
1211 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
1212 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
1213 instead of isalnum/isdigit/isupper/isalpha.
1214 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
1215 of isalpha/isalnum/isupper/tolower.
1216 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
1217 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
1218 isupper/tolower/isdigit.
1219 (s_mri_common): Use ISDIGIT instead of isdigit.
1220 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
1221 (s_float_space): Use ISALPHA instead of isalpha.
1222 (ignore_rest_of_line): Use ISPRINT instead of isprint.
1223 (float_cons): Use ISALPHA instead of isalpha.
1224 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
1226 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
1227 (save_symbol_name): Use ISLOWER/TOUPPER instead of
1229 (symbol_find_base): Use TOUPPER instead of islower/toupper.
1230 (decode_local_label_name): Use ISDIGIT instead of isdigit.
1232 2001-09-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1234 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
1235 in 64 bit mode and make format "e" work.
1237 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1239 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
1241 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
1242 var to ensure bfd_alloc arg is the right type.
1243 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
1246 * config/obj-coff.c: Replace calls to bfd_write with calls to
1247 bfd_bwrite. Cast args of bfd_seek.
1249 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
1252 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
1254 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
1257 2001-09-15 Hans-Peter Nilsson <hp@bitrange.com>
1259 * config/tc-sh.h (sh_force_relocation): Prototype.
1260 (struct fix): Forward declare.
1261 * config/tc-sh.c (type sh_operand_info): Move to top of file.
1262 (cons, s_align_bytes): Remove old-type declarations.
1263 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
1264 get_operands, get_specific, insert, build_relax,
1265 insert_loop_bounds, build_Mytes): Prototype.
1266 (little): Make static. Prototype.
1267 (check, tc_Nout_fix_to_chars): Delete unused functions.
1269 2001-09-14 Eric Christopher <echristo@redhat.com>
1271 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
1274 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1276 * configure.in: Add arm-openbsd target.
1277 * configure: Regenerate.
1279 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1281 * configure.in: Change machine triplets from mips-*-linux-gnu* to
1284 2001-09-12 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1286 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
1288 2001-09-11 Richard Henderson <rth@redhat.com>
1290 * config/tc-alpha.c (alpha_elf_section_letter): New.
1291 (alpha_elf_section_flags): New.
1292 * config/tc-alpha.h (md_elf_section_letter): New.
1293 (md_elf_section_flags): New.
1294 * config/tc-ia64.c (ia64_elf_section_letter): New.
1295 * config/tc-ia64.h (md_elf_section_letter): New.
1297 2001-09-11 Jakub Jelinek <jakub@redhat.com>
1299 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
1300 of 'm', 'S' instead of 's'. Update bad_msg.
1301 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
1302 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
1304 2001-09-09 Alan Modra <amodra@bigpond.net.au>
1306 * expr.c (expr): Move code setting "retval" to the end of the loop,
1307 and rearrange for efficiency. For "PIC code" subtraction, use
1308 "rightseg" rather than recalculating. For "symbol OP symbol"
1309 subtract, set "retval" to absolute_section if symbols in same
1311 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
1312 O_symbol. Simplify a +/- b code. Allow equality and non-equality
1313 comparisons on symbols from any section. Allow other comparison
1314 operators as for subtraction.
1315 (symbol_equated_reloc_p): New predicate function.
1316 * symbols.h (symbol_equated_reloc_p): Declare.
1317 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
1318 for expression syms is set correctly.
1319 (adjust_reloc_syms): Use symbol_equated_reloc_p.
1320 (write_relocs): Likewise.
1321 (write_object_file): Likewise.
1322 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
1323 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
1324 of a complex expression when setting up frag_var.
1326 2001-09-07 Richard Henderson <rth@redhat.com>
1328 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
1329 require_seq and allow_seq. Let !literal omit the sequence number.
1330 (tokenize_arguments): Reject sequence numbers of !allow_seq.
1332 2001-09-08 Jakub Jelinek <jakub@redhat.com>
1334 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
1335 section symbols the same way as externs.
1337 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1339 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
1342 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1344 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
1345 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
1346 PIC, BFD_RELOC_16_PCREL for the rest.
1347 (mips_ip): Likewise.
1348 (md_pcrel_from): return the right offset for the differently shifted
1350 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
1352 2001-09-05 Richard Henderson <rth@redhat.com>
1354 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
1355 (pseudo_func): Add @iplt.
1356 (pseudo_opcode): Add data16 and data16.ua.
1357 (md_begin): Set iplt pseudo.
1358 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
1360 2001-09-04 Richard Henderson <rth@redhat.com>
1362 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
1363 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
1364 (alpha_macros): Remove occurrences of same.
1365 (O_lituse_addr, O_gprel): New.
1366 (DUMMY_RELOC_LITUSE_*): New.
1367 (s_alpha_ucons, s_alpha_arch): Prototype.
1368 (alpha_reloc_op): Construct elements via DEF macro.
1369 (ALPHA_RELOC_SEQUENCE_OK): Remove.
1370 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
1371 members to not be literal specific.
1372 (next_sequence_num): New.
1373 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
1374 added/removed BFD relocations.
1375 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1376 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
1377 (tokenize_arguments): Parse ! relocations properly.
1378 (find_macro_match): Delete unused macro argument types.
1379 (assemble_insn): Add reloc parameter; emit that instead of the
1380 default as appropriate.
1381 (get_alpha_reloc_tag): New. Split from ...
1382 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
1383 (assemble_tokens): Don't search macros if user relocation present.
1384 Copy reloc sequence number to insn struct.
1385 (emit_ldgp): Remove user reloc handling.
1386 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
1387 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
1388 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
1389 * config/tc-alpha.h (tc_adjust_symtab): Always define.
1390 (struct alpha_fix_tag): Name members less literal specific.
1392 2001-09-04 Jeffrey A Law (law@cygnus.com)
1394 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
1395 address of two symbols in different sections.
1397 2001-08-31 Eric Christopher <echristo@redhat.com>
1398 Jason Eckhardt <jle@redhat.com>
1400 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
1401 5kc, and 20kc. Clean up old entries.
1403 2001-08-31 J"orn Rennecke <amylaar@redhat.com>
1404 Jeff Law <law@redhat.com>
1406 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1407 offset match H8 ELF spec.
1408 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1409 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1411 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1412 (build_bytes): Mark fixups for PCrel branches as signed. For
1413 OBJ_ELF, make sure the reloc's offset points to the first byte
1415 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1416 * tc-h8300.h (relocation mappings): Add.
1418 2001-08-30 J"orn Rennecke <amylaar@redhat.com>
1420 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1421 define for BFD_ASSEMBLER.
1422 (tc_reloc_mangle): Likewise.
1423 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1425 2001-08-29 Jeffrey A Law (law@cygnus.com)
1427 * config/tc-h8300.c (h8300hmode): Record the machine type
1428 if BFD_ASSEMBLER is defined.
1429 (h8300smode, md_begin): Similarly.
1431 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1433 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1434 default from coff to elf.
1435 * configure: Regenerate.
1437 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
1439 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1440 assorted coff relocations to the corresponding elf relocations.
1441 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1443 * configure.in: Add case for h8300-*-elf.
1444 * configure: Regenerate.
1446 2001-08-29 J"orn Rennecke <amylaar@redhat.com>
1448 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
1449 documentation to reflect reality.
1451 2001-08-27 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1453 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
1454 (macro): Reflect change to MAX_GPREL_OFFSET.
1456 2001-08-27 Torbjorn Granlund <tege@swox.com>
1457 Staffan Ulfberg <staffanu@swox.se>
1458 Linus Nordberg <linus@swox.se>
1459 Alan Modra <amodra@bigpond.net.au>
1461 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1462 * configure: Regenerate.
1463 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1464 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1465 (md_assemble): Use them.
1466 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1467 (md_pseudo_table): Add "llong", "quad".
1468 (md_parse_option): Match default_cpu of powerpc*.
1469 (ppc_arch): Likewise.
1470 (ppc_subseg_align): Only for OBJ_XCOFF.
1471 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1472 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1473 (ppc_insert_operand): Don't bother testing 'file' before calling
1474 as_bad_where. Use as_bad_where for operand->insert errors.
1475 (mapping): Add ELF64 relocation modifiers.
1476 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1477 expressions with abs_symbol.
1478 (ppc_elf_cons): Correct offset for little endian targets.
1479 (ppc_elf_frob_symbol): New.
1480 (md_assemble): Add support for 64 bit ELF relocs.
1481 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1482 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1483 ".toc" section for 64 bit ELF.
1484 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1485 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1486 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1487 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1488 Expand on comments, error message. Add support for 64 bit relocs,
1489 and use PPC_HI etc. macros.
1490 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1491 (HANDLE_ALIGN): Define to generate nops in code sections rather
1493 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1494 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1495 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1496 (ppc_fix_adjustable): Declare.
1497 (tc_frob_symbol): Define.
1498 (ppc_elf_frob_symbol): Declare.
1500 2001-08-26 Andreas Jaeger <aj@suse.de>
1502 * config/tc-s390.c: Add missing prototypes
1503 (md_gather_operands): Make static.
1505 2001-08-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1507 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1508 allowed value, not the word beyond maximum.
1509 * config/tc-mips.c (macro_build_lui): Code cleanup.
1510 (macro): Reflect change to MAX_GPREL_OFFSET.
1511 (mips_ip): Check explicitly against S_EX_NONE.
1512 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1513 (md_apply_fix): Code cleanup.
1515 2001-08-24 Andreas Jaeger <aj@suse.de>
1517 * config/tc-ppc.h: Fix prototype declaration.
1519 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1521 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1522 * config/obj-elf.c (obj_elf_size): When size is constant, free
1523 and clear symbol_get_obj(sym)->size if any.
1525 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1527 * config/tc-mips.c (md_begin): Warn about incompatibility between
1528 -march=FOO and -mipsN option, continue with default ISA.
1530 2001-08-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1532 * config/tc-mips.c (md_parse_option): #ifdef the
1533 traditional/non-traditional names as it is done in mips_target_format.
1535 2001-08-20 Richard Henderson <rth@redhat.com>
1537 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1538 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1539 use seg parameter instead of now_seg.
1541 2001-08-18 H.J. Lu <hjl@gnu.org>
1543 * config/tc-mips.c (show): Add the missing prototype.
1545 2001-08-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1547 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1549 (mips_ip): Use the new return values instead of characters. Add
1550 support for %higher and %highest.
1553 (my_getSmallExpression): Make parsing case insensitive and more
1554 reliable. Add support for %higher and %highest. Further support to
1555 parse %gprel and %neg is implemented but currently deactivated.
1557 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1559 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1560 (ecoff_build_symbols): Likewise.
1561 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1563 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1565 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1566 for n32 ABI if appropriate.
1568 2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1570 * config/tc-mips.c (cons_fix_new_mips): Remove.
1571 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1572 (cons_fix_new_mips): Remove.
1574 2001-08-14 Jeff Johnston <jjohnstn@redhat.com>
1576 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1577 a label, not a hex constant.
1579 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1581 * config/tc-v850.h: Add missing prototypes.
1583 2001-08-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1585 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1588 2001-08-12 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1590 * config/tc-sparc.c (cons_fix_new_sparc): Move
1591 `sparc_no_align_cons = 0;' to...
1592 (s_uacons): ...here so that sparc_no_align_cons will get
1595 2001-08-11 Kazu Hirata <kazu@hxi.com>
1597 * config/tc-mips.c: Fix a comment typo.
1599 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
1601 * config/tc-mips.c (move_register): New function.
1602 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1603 (mips_ip): Likewise.
1604 (macro2): Use move_register rather than macro_build for moves.
1605 (mips16_macro): Likewise.
1606 (macro): Likewise. Handle M_MOVE.
1608 2001-08-10 Andreas Jaeger <aj@suse.de>
1610 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1612 * configure: Regenerate.
1614 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1616 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1617 Comment indentation of #pragma.
1618 * macro.c (alloca): Likewise.
1620 * config/tc-ppc.c: Revert 2001-08-08.
1622 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1624 * symbols.c: Add missing prototypes.
1625 * config/e-i386elf.c: Likewise.
1626 * config/e-i386coff.c: Likewise.
1627 * config/e-i386aout.c: Likewise.
1628 * config/obj-coff.c: Likewise.
1629 (def_symbol_in_progress, stack): Move definition.
1630 * config/obj-elf.c: Add missing prototypes.
1631 (obj_elf_change_section): Make static.
1632 (obj_elf_parse_section_letters): Likewise.
1633 (obj_elf_section_word): Likewise.
1634 (obj_elf_section_type): Likewise.
1636 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1638 From 1999-10-25 Torbjorn Granlund <tege@swox.com>
1639 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1640 determining reloc type with code reading operands->reloc field.
1642 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1644 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1645 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1646 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1647 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1649 * output-file.c (output_file_create): Don't try to open a second
1650 time as it's unnecessary. FOPEN_W was undefined too.
1652 2001-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1654 * config/tc-mips.c (macro_build): Replace magic constants by defines.
1655 (mips_ip): Likewise. Typo.
1657 2001-08-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1659 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1661 (RELAX_ENCODE): Replace bfd_vma by valueT.
1662 (load_address): Formatting.
1663 (macro): Likewise. Code cleanup. Typo.
1664 (macro2): Formatting.
1665 (md_parse_option): Typo.
1666 (s_mipsset): Reorder cases to look nicer.
1667 (md_estimate_size_before_relax): Formatting. Code cleanup.
1668 (mips_elf_final_processing): Check against NULL instead of 0.
1669 (md_obj_end): Remove ugly `' in message string.
1670 (s_mips_ent): Remove ugly `' in message string.
1672 2001-07-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1674 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1675 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1676 mutually exclusive (if they are different).
1677 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1680 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
1682 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1685 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
1687 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1688 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1689 (md_long_opts): Add -mfp32 option.
1690 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1691 (md_show_usage): Show usage for -mfp32 and -mgp32.
1692 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1693 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1694 (HAVE_32BIT_ADDRESSES): New macro.
1695 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1696 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1697 (s_cprestore, s_cpadd): Likewise.
1698 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1699 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1700 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1701 to determine the width of addresses in load, store and jump macros.
1702 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1703 used in set instructions; do not check the address size for them.
1704 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1705 unaligned load and store macros.
1706 (mips_ip): Use the new macros to check the width of a register when
1707 processing float constants. Force a constant into memory if it is
1708 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1709 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1710 than mips_gp32 to select synthetic instructions.
1711 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1712 synthetic instructions.
1714 2001-08-01 Christian Groessler <cpg@aladdin.de>
1716 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1717 "rh", "rr", "rq", or "sp" then don't automatically assume
1718 it's a register name. Check whether there is a number
1721 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1723 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1724 Don't allocate more space than necessary for the input line copy.
1726 2001-08-01 Alan Modra <amodra@bigpond.net.au>
1728 * read.c: Standardize error/warning messages - don't capitalise, no
1729 final period or newline, don't say "ignored" or "zero assumed" for
1730 as_bad messages. In some cases, change the wording to that used
1731 elsewhere for similar messages.
1734 * atof-generic.c: Likewise.
1737 * depend.c: Likewise.
1738 * dwarf2dbg.c: Likewise.
1739 * ecoff.c: Likewise.
1741 * frags.c: Likewise.
1742 * input-file.c: Likewise.
1743 * input-scrub.c: Likewise.
1744 * listing.c: Likewise.
1745 * output-file.c: Likewise.
1746 * stabs.c: Likewise.
1747 * subsegs.c: Likewise.
1748 * symbols.c: Likewise.
1749 * write.c: Likewise.
1750 * ecoff.c (ecoff_directive_end): Test for missing name by
1751 comparing input line pointers rather than reading string.
1752 (ecoff_directive_ent): Likewise.
1753 * read.c (s_set): Likewise.
1754 (s_align): Report a warning rather than an error for
1755 alignment too large.
1756 (s_comm): Check for missing symbol name.
1757 (s_lcomm_internal): Likewise.
1759 (s_globl): Use is_end_of_line instead of looking for '\n'.
1760 (s_lcomm_internal): Likewise.
1761 (ignore_rest_of_line): Report a warning rather than an error.
1763 2001-07-31 Geoffrey Keating <geoffk@redhat.com>
1765 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1766 any kind of relocation against a not-loaded section.
1768 2001-07-30 Alan Modra <amodra@bigpond.net.au>
1770 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1771 to include '@' in symbol names when parsing versioned symbols
1772 rather than calling get_symbol_end multiple times.
1773 * config/tc-i370.c (register_name): Format fixes. Don't call
1774 get_symbol_end after parsing number.
1775 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1776 code out of conditional.
1777 (address_register_name): Likewise.
1778 (other_register_name): Likewise.
1779 * config/tc-mn10300.c (r_register_name): Likewise.
1780 (xr_register_name): Likewise.
1781 (data_register_name): Likewise.
1782 (address_register_name): Likewise.
1783 (other_register_name): Likewise.
1784 * config/tc-ppc.c (register_name): Likewise.
1785 * config/tc-s390.c (register_name): Likewise.
1787 2001-07-27 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1789 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1790 and bra relax: update fragP->fr_fix after the fixup.
1792 2001-07-27 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
1794 * read.c (s_set): Check for missing symbol name.
1796 2001-07-26 Alan Modra <amodra@bigpond.net.au>
1798 * write.c (relax_segment <rs_space>): Account for fr_fix.
1800 2001-07-25 H.J. Lu <hjl@gnu.org>
1802 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1803 we treat weak like extern only for ELF.
1804 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1805 symbols only for ELF.
1807 2001-07-25 Chris Demetriou <cgd@broadcom.com>
1809 * config/tc-mips.c: Fix spelling error in comment.
1811 2001-07-25 Dave Brolley <brolley@redhat.com>
1813 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1814 (IS_PARALLEL_SEPARATOR): New macro.
1815 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1816 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1817 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1818 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1821 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1823 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1824 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1825 Update dependencies with "make dep-am".
1826 * Makefile.in: Regenerate.
1827 * doc/Makefile.in: Regenerate.
1829 2001-07-23 Kazu Hirata <kazu@hxi.com>
1831 * config/tc-alpha.h: Fix formatting.
1832 * config/tc-arc.c: Likewise.
1833 * config/tc-d10v.h: Likewise.
1834 * config/tc-hppa.c: Likewise.
1835 * config/tc-i370.c: Likewise.
1836 * config/tc-i386.h: Likewise.
1837 * config/tc-i960.h: Likewise.
1838 * config/tc-ia64.c: Likewise.
1839 * config/tc-ia64.h: Likewise.
1840 * config/tc-m32r.c: Likewise.
1841 * config/tc-m68k.c: Likewise.
1842 * config/tc-m88k.c: Likewise.
1843 * config/tc-ns32k.c: Likewise.
1844 * config/tc-pdp11.c: Likewise.
1845 * config/tc-pj.h: Likewise.
1846 * config/tc-s390.c: Likewise.
1847 * config/tc-sparc.c: Likewise.
1848 * config/tc-sparc.h: Likewise.
1849 * config/tc-tic80.c: Likewise.
1850 * config/tc-w65.h: Likewise.
1852 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1854 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1855 symbols specially. Always resolve, adding fr_address to value.
1856 * write.c (write_object_file): Don't add fr_address to sym values.
1857 (relax_frag): Likewise.
1858 (relax_segment): Likewise.
1859 * config/obj-ieee.c (do_symbols): Likewise.
1860 * config/tc-cris.c (md_convert_frag): Likewise.
1861 * config/tc-fr30.c (md_convert_frag): Likewise.
1862 * config/tc-i386.c (md_convert_frag): Likewise.
1863 * config/tc-m32r.c (md_convert_frag): Likewise.
1864 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1865 * config/tc-mcore.c (md_convert_frag): Likewise.
1866 * config/tc-mips.c (mips16_extended_frag): Likewise.
1867 * config/tc-ns32k.c (md_convert_frag): Likewise.
1868 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1869 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1870 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1871 (md_relax_table): Remove first four entries. Format.
1872 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1873 setting fr_var. Simplify byte branch checks.
1875 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1877 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1878 "isbranch" param as all calls have it set.
1879 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1880 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1881 strcasecmp in "nullify" var.
1882 (pa_parse_neg_add_cmpltr): Likewise.
1883 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1884 functions. Don't print wrong conditions in error messages.
1886 2001-07-23 Andreas Jaeger <aj@suse.de>
1888 * config/tc-s390.c (s390_force_relocation): Removed.
1890 * config/tc-s390.h: Remove double declaration of
1891 TC_FORCE_RELOCATION.
1893 2001-07-22 H.J. Lu <hjl@gnu.org>
1895 * config/tc-mips.c (s_mips_end): Remove unused variables.
1896 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1898 2001-07-17 Andreas Schwab <schwab@suse.de>
1900 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1902 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1904 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1906 2001-07-17 matthew green <mrg@eterna.com.au>
1908 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1910 (line_comment_chars): Set to '/' if TE_NetBSD.
1912 2001-07-14 matthew green <mrg@eterna.com.au>
1914 * configure.in (i386-*-netbsdelf*): New target.
1915 * configure: Regenerate.
1917 2001-07-10 Mark Elbrecht <snowball3@softhome.net>
1919 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1920 class of the non-debug symbol is C_NULL.
1922 2001-07-10 Anders Norlander <anorland@synergenix.se>
1924 * doc/as.texinfo (Incbin): Fix grammatical errors.
1926 2001-07-10 Nick Clifton <nickc@cambridge.redhat.com>
1928 * depend.c: Use FOPEN_.. macros in calls to fopen().
1929 * input-file.c: As above.
1930 * itbl-ops.c: As above.
1931 * listing.c: As above.
1932 * output-file.c: As above.
1935 2001-07-08 Anders Norlander <anorland@synergenix.se>
1937 * read.c (s_incbin): New .incbin function.
1938 * read.c (potable): Add "incbin" pseudo-op.
1939 * read.h: Add s_incbin prototype.
1940 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1941 * NEWS: Mention new feature.
1943 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
1945 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1948 2001-07-06 John Healy <jhealy@redhat.com>
1950 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1951 set of fixups to be stored.
1952 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1953 restored to be chosen from any that are saved.
1954 (gas_cgen_swap_fixups): Modified to allow the current set of
1955 fixups to be swapped with any other set that has been saved.
1956 (gas_cgen_initialize_saved_fixups_array): New routine.
1957 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1958 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1959 or MAX_SAVED_FIXUP_CHAINS.
1960 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1961 store, swap and restore fuctions to reflect the new interface.
1963 2001-07-06 Nick Clifton <nickc@cambridge.redhat.com>
1965 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1966 ignore empty, ineffectual alignment frags when deciding if a
1967 branch can be short.
1969 2001-07-05 Steve Ellcey <sje@cup.hp.com>
1971 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1972 and SPECIAL_SECTION_FINI_ARRAY.
1973 (special_section_name): Add .init_array and .fini_array.
1974 (md_pseudo_table): Add init_array and fini_array.
1975 (md): Add pointer_size and pointer_size_shift fields.
1976 (setup_unwind_header): New static function.
1977 (output_unw_records): Modify to use setup_unwind_header.
1978 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1979 md.pointer_size_shift.
1980 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1982 2001-07-05 Ben Elliston <bje@redhat.com>
1984 * README (Supported platforms): m88k no longer suffers bitrot.
1986 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1988 2001-07-05 Alan Modra <amodra@bigpond.net.au>
1990 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1991 lsy_value. Correct typos in comments.
1992 * symbols.c (local_symbol_make): Update for name change.
1993 (local_symbol_convert): Likewise.
1995 (S_GET_VALUE): Likewise.
1996 (S_SET_VALUE): Likewise.
1997 (print_symbol_value_1): Likewise.
1998 (resolve_symbol_value): Likewise. Don't divide local sym values
1999 by OCTETS_PER_BYTE twice.
2001 2001-07-04 Jim Wilson <wilson@redhat.com>
2003 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
2005 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
2008 2001-07-05 Ben Elliston <bje@redhat.com>
2010 * read.c (s_fill): Correct spelling error in comments.
2012 * doc/c-m88k.texi: New file.
2013 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
2014 * doc/Makefile.in: Regenerate.
2015 * doc/all.texi: Set M880X0.
2016 * doc/as.texinfo: Hook in m88k-dependent documentation.
2018 2001-07-04 Eric Christopher <echristo@redhat.com>
2020 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
2022 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
2023 and rm5721 as valid cpu strings.
2024 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
2026 2001-07-04 Richard Sandiford <rsandifo@redhat.com>
2028 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
2029 if it's expected to be non-zero.
2031 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
2033 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
2036 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
2037 (write_object_file): Set finalize_syms to
2038 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
2041 * doc/internals.texi: Document
2042 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
2044 2001-07-02 Alan Modra <amodra@bigpond.net.au>
2046 * config/tc-ppc.c: Formatting fixes.
2048 2001-07-01 Ben Elliston <bje@redhat.com>
2050 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
2051 they cause some subtle breakage. Will fix them again later.
2053 2001-06-28 Nick Clifton <nickc@cambridge.redhat.com>
2055 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
2056 outside of a function as a .appline directive.
2058 2001-06-28 Eric Christopher <echristo@redhat.com>
2059 H.J. Lu <hjl@gnu.org>
2061 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
2062 of mips_cpu for the ISA selection.
2063 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
2064 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
2065 (mips_tune): New. Use mips_tune for scheduling and optimization
2067 (append_insn): Use mips_tune and mips_arch.
2068 (macro_build): Ditto.
2070 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
2071 backwards compatability mips_cpu generates arch and tune.
2072 (md_show_usage): Document new behavior.
2074 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
2079 2001-06-27 Nick Clifton <nickc@cambridge.redhat.com>
2081 * write.c (write_object_file): Do not set finalize_syms until
2082 after the segments have been sized. Some backends may still
2083 need to access the syms's frags in order to adjust relaxed
2086 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
2089 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2091 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
2092 subtract MD_PCREL_FROM_SECTION for 68k.
2093 (fixup_segment <Difference of 2 syms different seg>): Only fudge
2094 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2096 2001-06-27 Tracy A. Kuhrt <Tracy.Kuhrt@microchip.com>
2098 * write.c (fixup_segment <Difference of 2 syms same seg>): If
2099 pcrel, subtract MD_PCREL_FROM_SECTION value.
2101 2001-06-24 Ben Elliston <bje@redhat.com>
2103 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
2105 2001-06-24 Jakub Jelinek <jakub@redhat.com>
2107 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
2108 section symbols the same way as externs.
2110 2001-06-24 Ben Elliston <bje@redhat.com>
2112 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
2113 (emit_relocations): Ditto.
2115 (md_begin): Reformat comments to conform to the GNU standards.
2116 (md_assemble): Ditto.
2118 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
2119 (md_parse_option): Mark parameters as unused.
2120 (md_show_usage): Ditto.
2121 (calcop): Adjust type of `reg_prefix' to char.
2123 (getval): Adjust type of local `c' to char.
2124 (md_create_short_jump): Mark from_addr, to_addr params as unused.
2125 (md_create_long_jump): Ditto.
2126 (md_estimate_size_before_relax): Mark parameters as unused.
2128 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
2129 to allay a possible compiler warning.
2131 2001-06-22 Nick Clifton <nickc@cambridge.redhat.com>
2133 * doc/internals.texi (CPU backend): Document md_atof.
2135 2001-06-22 Matthew Wilcox <willy@ldl.fc.hp.com>
2137 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
2138 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
2141 2001-06-21 Philip Blundell <philb@gnu.org>
2143 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
2145 (insns): Remove entry for adrl. Add long_flag for adr.
2146 (do_adr): Handle `l' suffix.
2149 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2151 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
2152 (md_apply_fix): Use it here. Replace printf with equivalent
2154 (tc_gen_reloc): Use as_bad_where instead of as_bad.
2155 (md_apply_fix): Here too.
2156 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
2157 * config/tc-m68k.c (tc_gen_reloc): Likewise.
2158 (md_convert_frag_1): Likewise.
2160 2000-06-20 Tom Rix <trix@redhat.com>
2162 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
2164 2001-06-18 H.J. Lu <hjl@gnu.org>
2166 * doc/Makefile.am (info): Depend on $(MANS).
2167 (as.1): Remove the prefix `$(srcdir)/'.
2168 * doc/Makefile.in: Regenerated.
2172 2001-06-18 Philip Blundell <philb@gnu.org>
2174 * config/tc-arm.c (do_msr): Remove restriction on usage of
2177 2001-06-19 Alan Modra <amodra@bigpond.net.au>
2179 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
2182 2001-06-13 Philip Blundell <philb@gnu.org>
2184 * config/tc-arm.c (thumb_shift): Improve wording of error message.
2185 (do_t_arit): Likewise.
2187 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2189 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
2190 .loc pseudos if the dfwarf2 functions are available.
2191 (md_assemble): Only call dwarf2_emit_insn if it is available.
2193 * expr.c: Fix typo in comment.
2195 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2197 * doc/as.texinfo (Infix Ops): Document that comparison and
2198 combiner operators can be used as infix operators.
2200 2001-06-12 Peter Jakubek <pjak@snafu.de>
2202 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
2204 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
2205 (reverse_mri_condition): Likewise.
2206 (swap_mri_condition): Issue warning for conditions that can not be
2208 (build_mri_control_operand): Fix order of operands (swapped).
2209 (build_mri_control_operand): Allow upper case extension in structured
2211 (s_mri_else): Likewise.
2212 (s_mri_next): Likewise.
2213 (s_mri_for): Likewise.
2214 (s_mri_if): Fix handling comment ('*') in mri mode.
2215 (s_mri_while): Likewise.
2216 * macro.c (macro_expand): Allow macro invocation with empty
2219 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2221 * config/tc-arm.c: Fix test for overlow of literal pool.
2223 2001-06-11 H.J. Lu <hjl@gnu.org>
2225 * NEWS: Updated for the new -n option for the MIPS assembler.
2227 * config/tc-mips.c (md_show_usage): Add -n.
2229 * doc/as.texinfo: Document the new -n option.
2230 * doc/c-mips.texi: Likewise.
2231 * doc/as.1: Regenerated.
2233 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2235 * config/obj-coff.c (obj_coff_section): Formatting fix.
2237 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
2240 2001-06-08 H.J. Lu <hjl@gnu.org>
2242 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
2243 disable warning about all NOPS that the assembler generates.
2244 (macro): Warn NOPS generated only if warn_nops is not 0.
2245 (md_shortopts): Add `n'.
2246 (md_parse_option): Set warn_nops to 1 for `n'.
2248 2001-06-08 H.J. Lu <hjl@gnu.org>
2250 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
2252 2001-06-08 H.J. Lu <hjl@gnu.org>
2254 * config/tc-mips.c (md_apply_fix): Don't adjust common
2255 extern/weak symbols for ELF.
2256 (md_estimate_size_before_relax): Treat weak like extern for
2258 (mips_fix_adjustable): Don't adjust extern/weak symbols for
2261 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2263 * Makefile.am: 'som' is not wrongly spelled 'some'.
2264 * Makefile.in: Regenerate.
2266 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
2267 S_GET_VALUE by using a temp.
2268 (append_insn): Likewise, and for S_SET_VALUE too.
2269 (mips_emit_delays): Likewise.
2270 (my_getExpression): Likewise.
2271 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
2272 (mips16_extended_frag): Remove code concerned with avoiding
2273 locking in a frag address now that symbols are not finalized until
2274 relaxation is complete. Cater for first relaxation pass having
2275 bogus addresses. Use relax_marker to reliably determine whether a
2276 symbol frag has been reached on the current pass.
2278 2001-06-07 H.J. Lu <hjl@gnu.org>
2280 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
2281 * configure: Regenerate.
2283 2001-06-07 H.J. Lu <hjl@gnu.org>
2285 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
2287 * configure: Regenerate.
2289 2001-06-07 H.J. Lu <hjl@gnu.org>
2291 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
2292 MIPS_STABS_ELF is defined.
2294 2001-06-06 Nick Clifton <nickc@cambridge.redhat.com>
2296 * as.c (show_usage): Remove L from listing options. It is not a
2299 2001-06-06 Christian Groessler <cpg@aladdin.de>
2301 * config/tc-z8k.c: Removed many warnings by removing unused
2302 variables and tagging unused parameters as such.
2303 (md_begin): Fixed a typo (","instead of ";").
2304 (struct ctrl_table): Add parentheses to initialize array
2306 (struct flag_table): Likewise.
2307 (struct intr_table): Likewise.
2308 (struct table): Likewise.
2309 (check_operand): "#if 0"'ed since it doesn't seem to be used.
2311 2001-06-06 Peter Jakubek <pjak@snafu.de>
2313 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
2314 options to list (e.g. m5206e, m5307, m5407).
2316 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2318 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
2319 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2321 2001-06-06 Alan Modra <amodra@bigpond.net.au>
2323 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
2324 <JumpByte, JumpDword insn output>: Remove dead code.
2326 2001-06-06 Tracy Kuhrt <Tracy.Kuhrt@microchip.com>
2328 * as.c (parse_args): Correct option name "listing-lhs-width2".
2330 2001-06-05 Nick Clifton <nickc@cambridge.redhat.com>
2332 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
2335 2001-05-30 Richard Henderson <rth@redhat.com>
2337 * read.c (emit_leb128_expr): Call md_cons_align.
2339 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2341 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
2342 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
2343 (tc_gen_reloc): Likewise.
2344 (sparc_cons_align): Don't clear sparc_no_align_cons.
2345 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
2346 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
2348 2001-05-27 Alan Modra <amodra@one.net.au>
2350 * write.c (relax_segment <rs_space>): Check the section of a
2351 symbol to determine whether it is absolute rather than comparing
2352 its frag against zero_address_frag as listings play tricks with
2355 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
2356 allocated in the same chunk as the fixed part.
2358 2001-05-26 Alan Modra <amodra@one.net.au>
2360 * write.c (relax_segment <rs_space>): Calculate growth using
2361 addresses before stretch. Prevent repeated error messages.
2362 From Peter Jakubek <pjak@snafu.de>
2363 Use as_bad_where and as_warn_where to pinpoint errors.
2365 2001-05-25 Alan Modra <amodra@one.net.au>
2367 * symbols.c (resolve_symbol_value): Always set segment, even when
2368 not finalizing symbol value.
2370 * config/obj-ieee.c (write_object_file): Set finalize_syms.
2371 * config/obj-coff.c (write_object_file): Likewise.
2372 * (size_section): Remove rs_space assert as fr_symbol is no longer
2374 (fill_section): Likewise.
2376 * configure.in: Replace linuxoldld with linux*oldld.
2377 * configure: Regenerate.
2379 From 2.11 branch 2001-03-30 Richard Henderson <rth@redhat.com>
2380 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
2381 that have been finalized.
2383 * symbols.c (resolve_symbol_value): Clear sy_resolving before
2384 taking exit_dont_set_value.
2386 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
2389 2000-05-24 Tom Rix <trix@redhat.com>
2391 * config/obj-coff.c (add_lineno): xcoff allows negative line
2393 * config/tc-ppc.c (ppc_stabx): fix generated symbol
2395 2001-05-24 Alan Modra <amodra@one.net.au>
2397 * write.c (write_object_file): Set finalize_syms = 1 before
2400 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2402 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2403 architecture, remove erraneous ISA_MIPS32.
2404 (md_show_usage): Add MIPS r12k support.
2405 (mips_cpu_info_table): Add MIPS r12k support.
2407 2001-05-22 Alan Modra <amodra@one.net.au>
2409 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2412 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2413 instead use finalize_syms directly. Don't treat expressions
2414 specially with regard to finalize_syms. Update calls to self.
2415 (resolve_local_symbol): Update call to resolve_symbol_value.
2416 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2418 * symbols.h (resolve_symbol_value): Update prototype.
2419 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2420 to resolve_symbol_value.
2421 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2422 * config/obj-coff.c (do_relocs_for): Likewise.
2423 (yank_symbols): Likewise.
2424 (fixup_segment): Likewise.
2425 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2426 * config/tc-mips.c (md_convert_frag): Likewise.
2427 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2428 (ppc_fix_adjustable): Likewise.
2429 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2430 (dwarf2dbg_convert_frag): Likewise.
2431 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2432 (eh_frame_convert_frag): Likewise.
2433 * expr.c (make_expr_symbol): Likewise.
2434 * write.c (adjust_reloc_syms): Likewise.
2435 (write_object_file): Likewise.
2436 (relax_segment): Likewise.
2437 (fixup_segment): Likewise.
2438 (finalize_syms): Init to zero, and update comment.
2439 (write_object_file): Set finalize_syms to 1 rather than 2.
2440 * doc/internals.texi (sy_value): Mention finalize_syms.
2441 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2443 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2444 as relaxable if embedded system, make weak syms non-relaxable.
2446 (tc_m68k_fix_adjustable): ..so it can be used here.
2447 (md_apply_fix_2): Sign extend without conditional.
2449 * config/tc-v850.c: Update copyright.
2451 2001-05-16 Jeff Johnston <jjohnstn@redhat.com>
2453 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2454 howto entry is not found.
2456 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2458 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2459 optimize differences between symbols in code sections to
2461 (mn10300_fix_adjustable): Don't adjust to section+offset
2462 relocations pointing at symbols in code sections.
2464 2001-05-16 Alan Modra <amodra@one.net.au>
2466 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2468 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2469 opcodes are output rather than after. Delete insn_size.
2470 * config/tc-v850.c (md_assemble): Similarly, but delete
2473 2001-05-14 Richard Henderson <rth@redhat.com>
2475 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2478 2001-05-14 Richard Henderson <rth@redhat.com>
2480 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2481 also collect whether to expect an FDE augmentation.
2482 (check_eh_frame): Rewrite as a state machine. Track where in
2483 an FDE we are located, skip any augmentation.
2484 (eh_frame_estimate_size_before_relax): Get code alignment from
2485 the fragment subtype.
2486 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2487 * read.c (emit_leb128_expr): Call check_eh_frame.
2489 2001-05-14 Alexandre Oliva <aoliva@redhat.com>
2491 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2492 before a relaxable insns.
2494 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2496 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2497 between symbols if the base symbol is in the current section;
2498 emit a PC-relative relocation instead.
2500 2001-05-12 Peter Targett <peter.targett@arccores.com>
2502 * config/tc-arc.c: Update copyright and tidy source comments.
2503 (md_pseudo_table): Add directive .cpu back as an alias for
2504 .option. Add .file and .line for dwarf2 support.
2505 (arc_mach_type): Make bfd_mach_arc_6 default.
2506 (md_longopts): Add entry 'pre-v6' representing old command line
2507 option when assembling for 'arc5' core versions.
2508 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2510 (arc_code_symbol): Make symbol value for @h30 fixup expression
2511 equal to O_constant.
2512 (md_assemble): Call dwarf2_emit_insn.
2513 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2514 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2515 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2517 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2519 * config/tc-ia64.c (special_linkonce_name): New.
2520 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2521 .gnu.linkonce.ia64unw{,i}.FOO.
2522 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2523 (dot_endp): Add comment about it.
2525 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2527 * config/tc-arm.c (arm_handle_align): When truncating an aligned
2528 block, ensure that the low order bits of the alignment are
2531 2001-05-10 Alan Modra <amodra@one.net.au>
2533 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2536 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2537 current variable part of frag.
2538 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2539 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2540 * config/tc-m68hc11.c (RELAX_STATE): Define.
2541 (RELAX_LENGTH): Define.
2542 (md_estimate_size_before_relax): Handle non-relaxable cases
2543 separately from relaxable cases for clarity, and return correct
2544 size for multi-pass relaxation.
2545 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2546 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2547 (md_convert_frag): Remove "length_code".
2548 * config/tc-vax.c (RELAX_STATE): Define.
2549 (RELAX_LENGTH): Define.
2550 (md_relax_table): Add missing entry.
2551 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2552 (md_convert_frag): Remove "length_code".
2553 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2554 don't bother setting fr_var. Return correct size for multi-pass
2556 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2557 (md_convert_frag): Don't bother clearing fr_var.
2558 (md_pseudo_table): Correct initialization.
2559 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2560 (md_estimate_size_before_relax): No need to set fr_var.
2561 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2562 (md_estimate_size_before_relax): No need to set fr_var.
2564 2001-05-09 Richard Henderson <rth@redhat.com>
2566 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2567 beginning a function's unwind info block.
2569 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2571 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2573 2001-05-08 Andreas Schwab <schwab@suse.de>
2575 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2576 fx_pcrel_adjust explicitly sign extend when reading it.
2578 2001-05-08 Alan Modra <amodra@one.net.au>
2580 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2581 from md_relax_table, and combine some switch cases.
2583 2001-05-06 Alexandre Oliva <aoliva@redhat.com>
2585 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2586 from offset in non-pcrel operands too.
2588 2001-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2590 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2591 * config/tc-arm.c (arm_handle_align): Do not insert more than
2592 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2593 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2595 2001-05-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2597 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2599 * Makefile.in: Regenerate.
2600 * configure.in: Remove duplicate mips-*-ecoff* entry.
2601 * configure: Regenerate.
2603 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2604 (n_names): Cast away type mismatch.
2605 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2606 (obj_ecoff_frob_symbol): Likewise.
2607 * ecoff.c: (add_file): Add unused attribute.
2608 (ecoff_directive_begin): Likewise.
2609 (ecoff_directive_bend): Likewise.
2610 (ecoff_directive_def): Likewise.
2611 (ecoff_directive_dim): Likewise.
2612 (ecoff_directive_scl): Likewise.
2613 (ecoff_directive_size): Likewise.
2614 (ecoff_directive_type): Likewise.
2615 (ecoff_directive_tag): Likewise.
2616 (ecoff_directive_val): Likewise.
2617 (ecoff_directive_endef): Likewise.
2618 (ecoff_directive_end): Likewise.
2619 (ecoff_directive_ent): Likewise.
2620 (ecoff_directive_extern): Likewise.
2621 (ecoff_directive_file): Likewise.
2622 (ecoff_directive_fmask): Likewise.
2623 (ecoff_directive_frame): Likewise.
2624 (ecoff_directive_mask): Likewise.
2625 (ecoff_directive_loc): Likewise.
2626 (mark_stabs): Likewise.
2627 (ecoff_stab): Likewise.
2628 (ecoff_frob_symbol): Cast away type mismatch.
2629 (ecoff_padding_adjust): Likewise.
2630 (ecoff_build_symbols): Likewise.
2631 (ecoff_build_procs): Likewise.
2632 (ecoff_build_aux): Likewise.
2633 (ecoff_build_strings): Likewise.
2634 (ecoff_build_fdr): Likewise.
2635 (ecoff_build_debug): Likewise.
2636 * itbl-ops.c (itbl_assemble): Variable initialization.
2638 2001-05-03 Alan Modra <amodra@one.net.au>
2640 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2641 expressions rather than triggering an assert.
2643 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2645 * config/tc-openrisc.c: New file.
2646 * config/tc-openrisc.h: Likewise.
2648 * Makefile.am: Add OpenRISC target.
2649 * Makefile.in: Regenerated.
2651 * configure.in (openrisc-*-*): Add target.
2652 * configure: Regenerated.
2654 2001-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2656 * config/tc-arm.c (arm_frag_align_code): Change error message to
2657 more explanatory version.
2659 2001-04-29 Keith M Wesolowski <wesolows@foobazco.org>
2661 * config/tc-mips.c (md_parse_option): Also accept
2662 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2664 2001-04-27 David Mosberger <davidm@hpl.hp.com>
2666 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2667 argument passing order: predicate goes last, not first.
2669 2001-04-27 Sean McNeil <sean@mcneil.com>
2671 * configure.in: Add arm-vxworks.
2672 * configure: Regenerate.
2674 2001-04-26 Nick Clifton <nickc@cambridge.redhat.com>
2676 * config/tc-arm.c (arm_handle_align): New Function: Generate
2677 no-op filled alignment frags.
2678 (arm_frag_align_code): New Function: Create a code alignment frag.
2679 (arm_init_frag): New Function: Initialse the target dependent
2682 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2683 (TC_FRAG_INIT): Define.
2684 (HANDLE_ALIGN): Define.
2685 (md_do_align): Define.
2687 2001-04-25 Nick Clifton <nickc@cambridge.redhat.com>
2689 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2690 symbol has been initialised before extracting its symbol index.
2692 2001-04-24 H.J. Lu <hjl@gnu.org>
2694 * configure: Regenerated with the right version of autoconf.
2696 2001-04-24 Christian Groessler <cpg@aladdin.de>
2698 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2699 generate R_CALLR and R_REL16 relocations
2701 2000-04-20 Jason Eckhardt <jle@redhat.com>
2703 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2704 since frag_now can change after d10v_cleanup is called.
2706 2001-04-16 David O'Brien <obrien@FreeBSD.org>
2708 * configure.in: Add the em type for FreeBSD targets.
2709 * configure: Regenerate.
2711 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2713 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2714 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2716 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2717 pc-relative relocations not placed at the end of the instruction.
2719 2001-04-13 Jim Wilson <wilson@redhat.com>
2721 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2724 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2726 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2727 handle SHF_MERGE and SHF_STRINGS.
2728 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2729 (obj_elf_section): Allow additional argument specifying entity size.
2730 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2731 in SEC_MERGE sections.
2733 2001-04-12 Jason Merrill <jason_merrill@redhat.com>
2735 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2737 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
2739 * expr.c (operand): Pass &c to md_parse_name().
2740 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2742 2001-04-07 Steven J. Hill <sjhill@cotw.com>
2744 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2746 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2747 * Makefile.in: Regenerated.
2749 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2750 * configure: Regenerated.
2752 2001-04-06 Alexandre Oliva <aoliva@redhat.com>
2754 * config/tc-mn10300.c (xr_registers): Added `pc'.
2756 2001-04-05 Alan Modra <alan@linuxcare.com.au>
2758 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2759 * configure: Regenerate.
2761 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2762 cases, and always return size based on current fr_subtype.
2763 (md_begin): Move initialization of md_relax_table..
2764 (md_relax_table): ..to static initializer. Set rlx_length for
2765 UNDEF_WORD_DISP cases.
2766 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2767 (md_begin): Likewise.
2768 (md_relax_table): Likewise.
2769 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2770 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2771 Set rlx_backward and rlx_forward to zero for unused states.
2772 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2773 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2774 (UNCOND12, UNCOND32): Remove duplicate defines.
2776 2001-04-04 Hans-Peter Nilsson <hp@axis.com>
2778 * config/tc-cris.c (md_estimate_size_before_relax) <case
2779 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2780 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2781 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2782 Add cases to cover all relax states.
2783 (cris_insn_first_word_frag): New.
2784 (md_assemble): Call cris_insn_first_word_frag to get the first
2785 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2786 end. Drop variable insn_size.
2787 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2788 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2789 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2791 * write.c (write_object_file): Reset broken word state before
2794 2001-03-31 Alan Modra <alan@linuxcare.com.au>
2796 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2797 for one line if not already enabled.
2798 * cond.c (s_elseif): Correct conditional assembly listing.
2801 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2802 Don't abort on NULL current_cframe.
2804 2001-03-30 Alan Modra <alan@linuxcare.com.au>
2806 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
2807 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2808 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2809 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2810 * config/obj-coff.c (do_relocs_for): Likewise.
2811 (yank_symbols): Likewise.
2812 (fixup_segment): Likewise.
2813 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2814 (ppc_fix_adjustable): Likewise.
2815 * config/tc-mips.c (md_convert_frag): Likewise.
2816 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2817 * ehopt.c (eh_frame_convert_frag): Likewise.
2818 * expr.c (make_expr_symbol): Likewise.
2820 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2822 * symbols.c (resolve_symbol_value): Don't fix expression values
2823 until relaxation is complete.
2824 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2825 (S_GET_VALUE): Likewise, and return unresolved expression value.
2826 * write.c (finalize_syms): New.
2827 (relax_and_size_seg): Split into..
2828 (relax_seg): New function, returns 1 if anything changed..
2829 (size_seg): And the remainder of relax_and_size_seg.
2830 (fixup_segment): Arrange for final resolution of sym values.
2831 (adjust_reloc_syms): Likewise.
2832 (write_object_file): Likewise, and repeatedly call relax_seg until
2833 nothing more changes.
2834 (relax_segment): Return 1 if anything changed. Use correct types
2835 for rs_org `target' and `after'.
2836 * write.h (finalize_syms): Declare.
2837 (relax_segment): Update prototype.
2839 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2840 do-nothing cases to switch to avoid abort on a second relaxation
2841 pass, and tidy code a little.
2842 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2843 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2844 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2845 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2846 (md_relax_table): Remove first four unused entries. Increment
2847 rlx_length by one throughout table, and update comments to suit.
2848 (md_estimate_size_before_relax): Return size of current variable
2849 part of frag to reflect reality when relaxing more than once.
2850 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2851 (COND32, UNCD32): Rename to DISP32 throughout.
2852 (UNDEF_WORD_DISP): Renumber to 3.
2853 (md_estimate_size_before_relax): Add extra do-nothing cases.
2854 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2855 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2856 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2857 handle word and dword branches.
2859 2001-03-29 Hans-Peter Nilsson <hp@axis.com>
2861 * config/tc-cris.h (tc_fix_adjustable): Allow only
2862 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
2863 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2864 example in comment to valid type.
2866 2001-03-28 H.J. Lu <hjl@gnu.org>
2868 * read.c (equals): Set to local for COFF only if it hasn't been
2871 2001-03-28 Alan Modra <alan@linuxcare.com.au>
2873 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2874 (md_begin): Use it when setting default architecture.
2876 2001-03-27 Nick Papadonis <nick@coelacanth.com>
2878 * read.c (equals): (for COFF) default symbols to being local.
2880 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2882 * configure.in (cris-*-*): Change default emulation to criself.
2883 (cris-*-*aout*): New rule.
2884 * configure: Regenerate.
2886 2001-03-26 Martin Schwidefsky <schwidefsky@de.ibm.com>
2888 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2889 BFD_RELOC_390_GOTENT.
2890 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2891 BFD_RELOC_390_GOTENT.
2893 2001-03-26 Nick Clifton <nickc@redhat.com>
2895 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2896 * config/tc-s390.c (s390_force_relocation): New function: Force
2897 relocations for VTINHERIT relocs.
2899 2001-03-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2901 * doc/as.texinfo: Put @c man begin to generate the as man page.
2902 When generating man, define all the variables. Re-organize some
2903 options to obtain better indentation of man page.
2904 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2905 (as.1): Build from as.texinfo.
2906 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2908 2001-03-25 Alan Modra <alan@linuxcare.com.au>
2910 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2911 scale factor, and return the end of the expression.
2912 (i386_operand): Modify for above.
2914 2001-03-23 Nick Clifton <nickc@redhat.com>
2916 * doc/as.texinfo: Document --listing-XXX command line switches.
2917 Explain why listings behave differently when -pipe is used.
2919 2001-03-23 Richard Sandiford <rsandifo@redhat.com>
2921 * write.c (fix_new_exp): Print an error if passed a register.
2923 2001-03-23 Hans-Peter Nilsson <hp@axis.com>
2925 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2926 (PIC_SUFFIX_CHAR): New macro.
2927 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2928 (pic): New variable.
2929 (md_longopts): New option --pic.
2930 (OPTION_PIC): Define.
2931 (md_estimate_size_before_relax): Tweak longish comment.
2932 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2933 (md_assemble): Handle a PIC relocation on prefix and normal
2934 instruction operands.
2935 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2936 "complex" operand expressions. Call frag_more outside
2937 gen_cond_branch_32 parameter list.
2938 (cris_process_instruction): Handle PIC relocs on parsed
2939 operand expressions. Validize PIC reloc sizes.
2940 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2941 (gen_bdap): Handle "complex" operand expressions.
2942 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2943 ADD.D offset,PC as jump instruction if generating PIC. Generate
2944 error instead of crashing on complex expressions.
2945 (cris_number_to_imm): Add segT parameter. All callers changed.
2946 Use segT parameter, not now_seg, for segment of fixup. Handle
2947 PCREL relocations but check that they are fully resolved.
2948 (md_parse_option): Handle OPTION_PIC.
2949 (tc_gen_reloc): Handle PIC relocs.
2950 (md_show_usage): Update for --pic.
2951 (md_apply_fix3): Renamed from md_apply_fix.
2952 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2953 (md_cris_force_relocation): Force relocation for PIC relocs.
2955 * config/tc-cris.h: Tweak attribution.
2956 (MD_APPLY_FIX3): Define.
2957 (IS_CRIS_PIC_RELOC): New macro.
2958 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2959 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2961 (tc_frob_symbol): Avoid emitting undefined symbols.
2963 2001-03-20 Alan Modra <alan@linuxcare.com.au>
2965 * frags.h (struct frag): Add relax_marker.
2966 * write.c (is_dnrange): Delete.
2967 (relax_frag): Use correct types for `aim', `target', `address'.
2968 Delete `offset', `was_address'. Test `relax_marker' instead of
2969 using fragile (and slow) address test.
2970 (relax_segment): Init and flip `relax_marker'.
2972 2001-03-19 Alan Modra <alan@linuxcare.com.au>
2974 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2977 2001-03-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2979 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2980 with 'Motorola specification for assembly language input standard'.
2982 2001-03-17 Richard Henderson <rth@redhat.com>
2984 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2985 (dwarf2_directive_loc): Don't use them.
2986 (dwarf2_directive_file): Reject duplicate file definitions.
2987 (get_filenum): Zero allocated memory.
2988 (out_file_list): Complain about missing file definitions.
2990 2001-03-17 Alan Modra <alan@linuxcare.com.au>
2992 * read.c (do_org): Handle complex expressions.
2993 * cgen.c (gas_cgen_finish_insn): Likewise.
2995 2001-03-15 David Mosberger <davidm@hpl.hp.com>
2997 * config/tc-ia64.c (md): New member keep_pending_output.
2998 (ia64_flush_pending_output): Flush only if md.keep_pending_output
3000 (dot_xdata): Turn on md.keep_pending_output for the duration of
3002 (dot_xfloat_cons): Ditto.
3003 (dot_xstringer): Ditto.
3004 (dot_xdata_ua): Ditto.
3005 (dot_xfloat_cons_ua): Ditto.
3007 2001-03-15 Jim Wilson <wilson@redhat.com>
3009 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
3012 2001-03-15 Alexandre Oliva <aoliva@redhat.com>
3014 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
3016 2001-03-15 DJ Delorie <dj@redhat.com>
3018 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
3019 blindly freeing string if it isn't at the top of the obstack.
3021 2001-03-13 Alan Modra <alan@linuxcare.com.au>
3023 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
3024 (NUM_FLAG_CODE): Define.
3025 (lex_got): New function.
3026 (got_reloc): New global var.
3027 (x86_cons_fix_new): New function.
3028 (x86_cons): New function.
3029 (i386_immediate): Use lex_got here, replacing inline code. Change
3030 "ignoring junk.." error message to "junk.."
3031 (i386_displacement): Likewise.
3032 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
3033 (x86_cons): Declare.
3034 (TC_CONS_FIX_NEW): Define.
3035 (x86_cons_fix_new): Declare.
3037 2001-03-12 Nick Clifton <nickc@redhat.com>
3039 * config/tc-arm.c (md_begin): Always set machine type based on
3042 2001-03-07 Alan Modra <alan@linuxcare.com.au>
3044 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
3045 (md_assemble) <smallest displacement>: Use correct field of i.op[]
3047 <JumpInterSegment output>: Use correct i.disp_reloc[].
3048 <immediate output>: Likewise.
3050 2001-03-06 Nick Clifton <nickc@redhat.com>
3052 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
3055 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3057 * config/tc-m68k.c : Add 5407 to archs[] table.
3058 (HAVE_LONG_BRANCH): Add mcf5407.
3059 (select_control_regs): Recognize 5407.
3061 2001-03-02 Dave Brolley <brolley@redhat.com>
3063 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
3066 2001-03-02 Richard Sandiford <rsandifo@redhat.com>
3068 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
3069 (gen_to_words): Print warnings if NaNs are found and the target CPU
3070 does not support them. Allow largest exponent to be used in normal
3071 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
3073 2001-02-28 Andreas Jaeger <aj@suse.de>, Bo Thorsen <bo@suse.de>
3075 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
3076 anymore since we use bfd_elf_generic_reloc now.
3077 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
3079 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3081 * configure.in (BFD_VERSION): New.
3082 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3083 * configure: Regenerate.
3084 * Makefile.am: Run "make dep-am"
3085 * Makefile.in: Regenerate.
3086 * doc/Makefile.in: Regenerate.
3088 2001-02-26 Mark Elbrecht <snowball3@bigfoot.com>
3090 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
3091 SEC_NEVER_LOAD when the 'n' flag is used.
3092 Add SEC_NEVER_LOAD to matchflags.
3094 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3096 * symbols.c (decode_local_label_name): Initialize message_format
3097 only when an error is reported (perf pb due to I18N).
3099 2001-02-23 H.J. Lu <hjl@gnu.org>
3101 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
3102 BFD_ASSEMBLER is not defined.
3104 2001-02-23 Richard Sandiford <rsandifo@redhat.com>
3106 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
3107 done if it's against a symbol.
3109 2001-02-22 Timothy Wall <twall@cygnus.com>
3111 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
3112 target formats if applicable.
3113 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
3114 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
3115 * Makefile.in: Regenerated.
3116 * configure.in: Added configuration for ia64-*-aix*.
3117 * configure: Regenerated.
3119 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3121 * config/tc-ia64.c (enum operand_match_result): New type.
3122 (operand_match): Change return type to operand_match_result.
3123 Fix all returns appropriately, adding support for returning the
3124 out-of-range result.
3125 (parse_operands): New locals result, error_pos, out_of_range_pos,
3126 curr_out_of_range_pos. Rewrite operand matching loop to give better
3129 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3131 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
3132 (dot_proc): Clear unwind.prologue_count to zero.
3133 (dot_prologue): Increment unwind.prologue_count.
3134 (dot_restore): If second operand is omitted, use
3135 unwind.prologue_count -1 for "ecount" (# of additional regions to
3136 pop). Decrement unwind.prologue_count by number of regions
3139 2001-02-21 Nick Clifton <nickc@redhat.com>
3141 * doc/as.texinfo (Section): Note that some flags to the COFF
3142 version of .section remove attributes rather than setting them.
3144 2001-02-20 Kazu Hirata <kazu@hxi.com>
3146 * config/tc-pdp11.c: Fix formatting.
3147 * config/tc-pdp11.h: Likewise.
3149 2001-02-20 Bo Thorsen <bo@suse.de>
3151 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
3154 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3156 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
3157 all FreeBSD platforms should look the same at this level.
3158 * configure: Rebuilt.
3159 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
3161 2001-02-18 lars brinkhoff <lars@nocrew.org>
3163 * Makefile.am: Add PDP-11 target.
3164 * configure.in: Likewise.
3165 * config/tc-pdp11.c: New file.
3166 * config/tc-pdp11.h: New file.
3167 * doc/Makefile.am: Add PDP-11 documentation.
3168 * doc/all.texi: Likewise.
3169 * doc/as.texinfo: Likewise.
3170 * doc/c-pdp11.texi: New file.
3172 2001-02-16 matthew green <mrg@redhat.com>
3174 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
3176 2001-02-13 Jim Wilson <wilson@redhat.com>
3178 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
3179 reloc instead of a 0 reloc.
3180 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
3182 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
3184 2001-02-13 Ian Lance Taylor <ian@zembu.com>
3186 * write.c (is_dnrange): Stop as soon as the address becomes
3188 (relax_frag): Add segment parameter. Only call symbol_get_frag
3189 once. Only call is_dnrange if the symbol is in the same segment,
3190 and the symbol address is larger.
3191 (relax_segment): Pass segment to md_relax_frag and relax_frag.
3192 * write.h (relax_frag): Update declaration.
3193 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
3195 * config/tc-m32r.c (m32r_relax_frag): Likewise.
3196 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
3197 (m32r_relax_frag): Update declaration.
3198 * config/tc-mips.h (md_relax_frag): Add segment parameter.
3199 * config/tc-tic54x.h (md_relax_frag): Likewise.
3200 * doc/internals.texi (CPU backend): Update documentation for
3203 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3205 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
3206 Mention effect of < 386 architectures on jump promotion.
3207 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
3209 * config/tc-i386.c (no_cond_jump_promotion): New.
3210 (set_cpu_arch): Parse "jumps" arch modifier.
3211 (insn_size): Modify usage comment.
3212 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
3213 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
3214 (TYPE_FROM_RELAX_STATE): New define.
3215 (UNCOND_JUMP, COND_JUMP): Renumber.
3216 (md_relax_table): Reorder to suit.
3217 (COND_JUMP86): New define.
3218 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
3219 (md_assemble): Create frag var for jumps of max size, encode relax
3220 state for COND_JUMP86.
3221 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
3222 leave conditional jumps small if no_cond_jump_promotion.
3223 (md_convert_frag): Likewise.
3225 * expr.c (operator): Don't bump input_line_pointer for two char
3226 operators. Instead return operator size via new param num_chars.
3227 (expr): Use above to parse multi-char operators correctly.
3229 2001-02-12 Jan Hubicka <jh@suse.cz>
3231 * config/tc-i386.c (i386_displacement): Fix handling of
3232 BFD_RELOC_X86_64_GOTPCREL.
3233 (i386_validate_fix): Likewise.
3235 2001-02-12 Philip Blundell <pb@futuretv.com>
3237 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
3238 ldrt/strt instructions.
3240 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3242 * config/tc-mips.c (macro): For M_LA_AB emit a
3243 BFD_RELOC_MIPS_CALL16 relocation or a
3244 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
3245 BFD_RELOC_MIPS_GOT16 and
3246 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
3247 loading the jump register when generating SVR4_PIC code.
3249 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3251 * configure.in: Make 'mipself' and 'mipsecoff' emulations
3252 map to MIPS-specific files, as they used to do before the
3253 change on 2000-05-21.
3254 * configure: Regerate.
3256 2001-02-10 Chris Demetriou <cgd@broadcom.com>
3258 * config/tc-mips.c (md_parse_option): Don't try to compile
3259 ELF-only option code if not ELF.
3261 2001-02-08 David Mosberger <davidm@hpl.hp.com>
3263 * config/tc-ia64.h (md_elf_section_type): New macro.
3264 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
3265 (they're now handled via ia64_elf_section_type.
3267 * config/tc-ia64.c (unwind): New members saved_text_seg,
3268 saved_text_subseg, and force_unwind_entry.
3269 (optimize_unw_records): New function to optimize away unnecessary
3271 (ia64_elf_section_type): New function.
3272 (output_unw_records): Generate unwind info only if the size is
3273 non-zero or if it's forced for some other reason (e.g.,
3274 handlerdata or a personality routine).
3275 (generate_unwind_image): Don't switch back to previous
3276 section---stay inside the unwind info section instead so that
3277 handlerdata that may follow goes into the right place.
3278 (dot_handlerdata): Force generation of unwind entry and save the
3279 current active text segment before generating unwind image.
3280 (dot_unwentry): Force generation of unwind entry.
3281 (dot_personality): Ditto.
3282 (dot_endp): Generate unwind table entry only if there is
3283 some unwind info or the unwind entry was forced.
3285 * config/tc-ia64.c (make_unw_section_name): New macro to form
3286 unwind section name.
3287 (generate_unwind_image): Add "text_name" argument. Use it to
3288 form unwind section name.
3289 (dot_handlerdata): Determine current segment (section) name and
3290 pass it to generate_unwind_image().
3291 (dot_endp): Determine current segment (section) name and use
3292 it to determine the appropriate unwind section name.
3293 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
3294 n, fill, and max arguments.
3296 2001-02-09 Schwidefsky <schwidefsky@de.ibm.com>
3298 * Makefile.am: Add linux target for S/390.
3299 * configure.in: Likewise.
3300 * config/tc-s390.c: New file.
3301 * config/tc-s390.h: New file.
3303 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
3305 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
3306 2byte, 4byte and 8byte.
3308 2001-02-08 Alan Modra <alan@linuxcare.com.au>
3310 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
3311 md_number_to_chars with size > sizeof (valueT).
3313 2001-02-06 H.J. Lu <hjl@gnu.org>
3315 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
3316 there is no relocation.
3318 2001-02-06 H.J. Lu <hjl@gnu.org>
3320 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
3322 * config/tc-ia64.c (md_parse_option): Only accept the valid
3323 ia64 options on "-axxx".
3325 2001-02-05 Jim Wilson <wilson@redhat.com>
3327 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
3328 aborting for invalid operands.
3330 2001-02-06 Alan Modra <alan@linuxcare.com.au>
3332 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
3333 than via pointer. Update all callers.
3334 (UNWIND_LOW32): Define.
3335 (UNWIND_HIGH32): Define.
3336 (pa_build_unwind_subspace): Use the above macros instead of dumping
3337 bitfields directly. Call frag_more once rather than multiple times.
3338 (md_assemble): Use UNWIND_LOW32.
3339 (pa_entry): Likewise
3340 (pa_procend): Likewise.
3341 (process_exit): Use UNWIND_HIGH32.
3343 2001-02-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3345 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
3346 function to select the header according to the cpu.
3347 (md_after_pass_hook, md_do_align): Remove.
3348 (md_cleanup, m68hc11_cleanup): Remove.
3349 (md_pcrel_from_section): Declare.
3350 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
3351 (build_jump_insn, build_insn): Likewise.
3352 (m68hc11_listing_header): New function.
3353 (m68hc11_cleanup): Remove.
3355 2001-02-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3357 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
3358 symbols because there is no support for shared libraries and these
3359 symbols can't be overridden (unless they are weak).
3361 2001-02-01 Momchil Velikov <velco@fadata.bg>
3363 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
3364 for the compilation unit with a zero byte.
3366 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3368 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
3369 destinations. Correct range check for 17 and 22 bit branches.
3371 2001-01-25 Nick Clifton <nickc@redhat.com>
3373 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
3374 still set. Issue an error message instead.
3375 (md_estimate_size_before_relax): Delete unused variable
3376 'buffer_address'. Fixup parentheses around if statement.
3378 2001-01-23 Kazu Hirata <kazu@hxi.com>
3380 * as.c: Fix formatting.
3381 * ehopt.c: Likewise.
3382 * messages.c: Likewise.
3383 * stabs.c: Likewise.
3384 * symbols.c: Likewise.
3386 2001-01-23 Ben Elliston <bje@redhat.com>
3388 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
3390 2001-01-22 Kazu Hirata <kazu@hxi.com>
3392 * config/tc-alpha.c: Fix formatting.
3394 2001-01-19 Kazu Hirata <kazu@hxi.com>
3396 * config/tc-alpha.c: Fix formatting.
3398 2001-01-18 Kazu Hirata <kazu@hxi.com>
3400 * config/tc-alpha.c: Fix formatting.
3402 2001-01-18 Nick Clifton <nickc@redhat.com>
3404 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3406 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3408 2001-01-18 Alexandre Oliva <aoliva@redhat.com>
3410 * configure.in (cpu_type, arch): Match i386 too.
3411 * configure: Rebuilt.
3413 2001-01-16 Kazu Hirata <kazu@hxi.com>
3415 * config/tc-i386.c: Fix formatting.
3417 2001-01-16 Alan Modra <alan@linuxcare.com.au>
3419 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3420 relocs for .PARISC.unwind section.
3422 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3423 depending on section flags, not just for .text.
3425 2001-01-15 Jim Wilson <wilson@redhat.com>
3427 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3428 not immediately followed by an instruction.
3430 2001-01-15 Kazu Hirata <kazu@hxi.com>
3432 * config/tc-m68hc11.c: Fix formatting.
3434 2001-01-15 Nick Clifton <nickc@redhat.com>
3436 * symbols.c (colon): Change 'already defined symbol' from a
3437 fatal error to an ordinary error. There is no reason why this
3438 error should be fatal.
3440 * message.c (as_fatal): Delete output file, if one has been
3443 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3445 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3447 2001-01-14 Kazu Hirata <kazu@hxi.com>
3449 * config/tc-alpha.c: Fix formatting.
3450 * config/tc-arc.c: Likewise.
3451 * config/tc-arc.h: Likewise.
3452 * config/tc-d10v.c: Likewise.
3453 * config/tc-i370.c: Likewise.
3454 * config/tc-i386.c: Likewise.
3455 * config/tc-i960.c: Likewise.
3456 * config/tc-m68k.c: Likewise.
3457 * config/tc-ppc.c: Likewise.
3458 * config/tc-sparc.c: Likewise.
3459 * config/tc-tahoe.c: Likewise.
3460 * config/tc-vax.c: Likewise.
3462 * config/tc-arc.c: Fix formatting.
3464 * config/tc-arc.c: Fix formatting.
3466 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3468 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3469 both 32 and 64 bit ELF.
3471 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3472 and don't bother storing `m' for "ce" completer. Tidy handling of
3473 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3475 2001-01-14 Jan Hubicka <jh@suse.cz>
3477 * config/tc-i386.h (TARGET_MACH): New macro.
3478 (i386_mach): Declare.
3479 * config/tc-i386.c (i386_mach): New function.
3481 2001-01-13 Philip Blundell <philb@gnu.org>
3483 * doc/as.texinfo: Fix spelling and cross-references.
3485 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3486 character for all systems, not just GNU/Linux. Make it explicit
3487 that `-k' doesn't affect code generation, just ELF flags.
3489 2001-01-13 Jan Hubicka <jh@suse.cz>
3491 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3494 2001-01-12 Frank Ch. Eigler <fche@redhat.com>
3496 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3498 2001-01-12 Nick Clifton <nickc@redhat.com>
3500 * as.c (print_args): Update copyright date to 2001.
3502 2001-01-12 Peter Targett <peter.targett@arccores.com>
3504 * doc/c-arc.texi: New file.
3505 Some sections to be expanded.
3507 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3509 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3510 (md_parse_option): Always accept "--32".
3512 2001-01-11 Peter Targett <peter.targett@arccores.com>
3514 * as.h (TC_ARC): Ensure struc-symbol.h included.
3515 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3517 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3518 (TARGET_SYMBOL_FIELDS) added.
3520 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3521 * doc/c-arc.texi: New file.
3522 Some sections to be expanded.
3523 * doc/as.texinfo: Update command-line options.
3524 Removed outdated text for ARC dependant features, instead include
3525 text from above file.
3527 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3528 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3529 (targ-cpu.h) header.
3531 * config/tc-arc.c: New updated configuration for
3532 ARC, including selection of core variants, and extensibility of
3533 instructions, registers etc. through directives.
3535 * config/tc-arc.c (arc_extinst): Minor corrections for
3537 (arc_common) Likewise. Make alignment argument optional for local
3538 symbols also, with default of zero.
3540 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3542 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3543 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3544 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3545 and fix_new_exp() instead.
3546 (md_convert_frag): For indexed post byte use the symbol value
3547 rather than the displacement.
3548 (md_relax_table): Fix indexed offset relax.
3550 2001-01-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3552 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3554 (relaxable_symbol): New function.
3556 2001-01-11 Andreas Jaeger <aj@suse.de>
3558 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3561 2001-01-10 Nick Clifton <nickc@redhat.com>
3563 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3564 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3566 2001-01-10 Nick Clifton <nickc@redhat.com>
3568 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3569 character used to dollar local symbols.
3570 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3571 local label symbols.
3572 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3573 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3575 Use LOCAL_LABEL_CHAR.
3576 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3577 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3578 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3580 2001-01-08 Bo Thorsen <bo@suse.de>
3582 * config/tc-i386.c (i386_immediate, i386_displacement):
3585 2001-01-07 Ian Lance Taylor <ian@zembu.com>
3587 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3590 2001-01-07 Philip Blundell <philb@gnu.org>
3592 * doc/as.texinfo (Bug Reporting): Update email address for
3596 2001-01-06 Jan Hubicka <jh@suse.cz>
3598 * configure.in: Define DEFAULT_ARCH for i386.
3599 * config/tc-i386.c (md_assemble): Return after the error message;
3600 move testing for 64bit operands to proper place.
3602 2001-01-06 Jan Hubicka <jh@suse.cz>, Andreas Jaeger <aj@suse.de>
3604 * doc/as.texinfo: Document '#' as comment character for i386 and
3605 x86_64. Add AMD x86-64 into menu of machine dependent information.
3607 * doc/c-i386.texi: Document x86_64 extensions.
3609 2001-01-05 Jan Hubicka <jh@suse.cz>
3611 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
3613 2001-01-04 Jan Hubicka <jh@suse.cz>
3615 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
3616 * NEWS: Add note about Pentium4 support.
3618 2001-01-04 Jan Hubicka <jh@suse.cz>
3620 * config/tc-i387.c (pi, pte, pt): Update.
3621 (type_names): Add new types.
3623 2001-01-03 Jan Hubicka <jh@suse.cz>
3625 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
3626 CpuUnknown): Renumber
3627 (CpuP4, CpuSSE2): New.
3628 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3630 2001-01-03 Philip Blundell <pb@futuretv.com>
3632 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3634 (alpha_fix_adjustable): Likewise.
3635 (md_apply_fix): Likewise.
3637 2000-12-31 H.J. Lu <hjl@gnu.org>
3639 * listing.c (listing_message): Allocate string only if it is
3642 * configure: Rebuild.
3644 2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
3646 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3647 Point out caveats with generating fixups for the opcode in a frag.
3649 2000-12-30 Jan Hubicka <jh@suse.cz>
3651 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3654 2000-12-29 H.J. Lu <hjl@gnu.org>
3656 * listing.c (calc_hex): Print the variable part only if the
3657 fragment type is rs_fill.
3659 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3661 * doc/internals.texi (tc_conditional_pseudoop,
3662 TC_LINKRELAX_FIXUP): Fix typos.
3664 2000-12-28 Richard Henderson <rth@redhat.com>
3666 * write.c (subsegs_finish): Fix thinko last change -- don't
3667 "optimize" the alignment == 0 case.
3669 2000-12-28 Richard Henderson <rth@redhat.com>
3671 * as.h (rs_align_test): New.
3672 * frags.c (NOP_OPCODE): Move default from read.c.
3673 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3674 (frag_align_code): New.
3675 * frags.h (frag_align_code): Declare.
3676 * read.c (NOP_OPCODE): Remove.
3677 (do_align): Use frag_align_code.
3678 * write.c (NOP_OPCODE): Remove.
3679 (get_recorded_alignment): New.
3680 (cvt_frag_to_fill): Handle rs_align_test.
3681 (relax_segment): Likewise.
3682 (subsegs_finish): Align last subseg in section to the
3683 section alignment. Use frag_align_code.
3684 * write.h (get_recorded_alignment): Declare.
3685 * config/obj-coff.c (size_section): Handle rs_align_test.
3686 (fill_section, fixup_mdeps): Likewise.
3687 (write_object_file): Use frag_align_code.
3689 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3690 (alpha_handle_align): New.
3691 * config/tc-alpha.h (HANDLE_ALIGN): New.
3692 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3694 * config/tc-i386.h (md_do_align): Use frag_align_code.
3695 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3697 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3698 (ia64_handle_align): New.
3699 * config/tc-ia64.h (HANDLE_ALIGN): New.
3700 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3702 * config/tc-m32r.c (m32r_do_align): Remove.
3703 (m32r_handle_align): New.
3704 (fill_insn): Use frag_align_code.
3705 * config/tc-m32r.h (md_do_align): Remove.
3706 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3707 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3708 * config/tc-mips.c, config/tc-mips.h: Similarly.
3710 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3711 (sh_handle_align): Likewise. Handle rs_align_code.
3712 (sh_do_align): Remove.
3713 * config/tc-sh.h (md_do_align): Remove.
3714 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3716 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3717 (sparc_handle_align): Likewise. Handle rs_align_code.
3718 * config/tc-sparc.h (md_do_align): Remove.
3719 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3721 2000-12-22 DJ Delorie <dj@redhat.com>
3723 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3724 when we assemble the first half of a pair.
3726 2000-12-22 H.J. Lu <hjl@gnu.org>
3728 * config/tc-i386.c (reloc): Update the macro for non-bfd
3730 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3732 2000-12-22 H.J. Lu <hjl@gnu.org>
3734 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3736 2000-12-20 Jan Hubicka <jh@suse.cz>
3738 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3739 (QWORD_MNEM_SUFFIX): New macro.
3740 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3742 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3743 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3745 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3746 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3747 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3748 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3749 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3751 (Reg, WordReg): Add Reg64.
3752 (Imm): Add Imm32S and Imm64.
3754 (Disp): Add Disp64 and Disp32S.
3755 (AnyMem): Add Disp32S.
3756 (RegRex, RegRex64): New macros.
3757 (rex_byte): New type.
3758 * config/tc-i386.c (set_16bit_code_flag): Kill.
3759 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3760 (reloc): New parameter "signed"; support x86_64.
3761 (set_code_flag): New.
3762 (DEFAULT_ARCH): New macro; default to "i386".
3763 (default_arch): New static variable.
3764 (struct _i386_insn): New fields Operand_PCrel; rex.
3765 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3766 (flag_code): New enum and static variable.
3767 (use_rela_relocations): New static variable.
3768 (flag_code_names): New static variable.
3769 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3770 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3772 (i386_align_code): Return plain "nop" for x86_64.
3773 (mode_from_disp_size): Support Disp32S.
3774 (smallest_imm_type): Support Imm32S and Imm64.
3775 (offset_in_range): Support size of 8.
3776 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3777 (md_pseudo_table): Add "code64"; use set_code_flat.
3778 (md_begin): Emit sane error message on hash failure.
3779 (tc_i386_fix_adjustable): Support x86_64 relocations.
3780 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3781 instructions supported on particular arch just partially,
3782 output of 64bit immediates, handling of Imm32S and Disp32S type.
3783 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3784 (i386_displacement): Likewise.
3785 (i386_index_check): Cleanup; support 64bit addresses.
3786 (md_apply_fix3): Support x86_64 relocation and rela.
3787 (md_longopts): Add "32" and "64".
3788 (md_parse_option): Add OPTION_32 and OPTION_64.
3789 (i386_target_format): Call even for ELFs; choose between
3790 elf64-x86-64 and elf32-i386.
3791 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3792 (tc_gen_reloc): Support rela relocations and x86_64.
3793 (intel_e09_1): Support QWORD.
3795 2000-12-15 Diego Novillo <dnovillo@redhat.com>
3797 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
3798 it's not an offset expression.
3799 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3800 keep the braces '[' and ']' in the output string.
3801 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3802 != FLAT. There is no such op_modifier.
3804 2000-12-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3806 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3809 2000-12-13 Kazu Hirata <kazu@hxi.com>
3811 * as.h: Fix formatting.
3813 * dwarf2dbg.c: Likewise.
3814 * input-scrub.c: Likewise.
3817 2000-12-13 Mark Elbrecht <snowball3@bigfoot.com>
3819 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3820 configure: Regenerate.
3822 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3824 * dwarf2dbg.c: #include <limits.h> only if it exists.
3826 2000-12-13 Rodney Brown <RodneyBrown@mynd.com>
3828 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3829 (md_apply_fix): Here too.
3831 2000-12-12 Jim Wilson <wilson@redhat.com>
3833 * config/tc-ia64.h (ia64_init): Add prototype.
3835 2000-12-12 H.J. Lu <hjl@gnu.org>
3837 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3839 * read.h (outputting_stabs_line_debug): Change it to int.
3840 * stabs.c (outputting_stabs_line_debug): Likewise.
3842 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3844 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3845 the address of a function result.
3847 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3849 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3850 (md_assemble): Call dwarf2_emit_insn.
3851 (shlib): Fix typo SHILB -> SHLIB.
3852 (md_parse_option): Likewise.
3853 (ppc_elf_validate_fix): Likewise:
3854 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3856 2000-12-12 Nick Clifton <nickc@redhat.com>
3858 * cgen.h: Fix formatting.
3859 * input-scrub.c: Fix formatting.
3860 * macro.c: Fix formatting.
3861 * config/tc-mips.c: Fix formatting.
3862 * doc/c-mips.texi: Fix formatting.
3864 2000-12-11 Jan hubicka <jh@suse.cz>
3866 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
3867 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3869 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3871 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
3874 * i386.h (*_Suf): Remove No_dSuf.
3875 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3877 (i386_optab): Remove 'd' in the suffixes.
3879 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3881 * config/tc-i386.c (T_SHORT): Undefine before defining.
3883 2000-12-05 Kazu Hirata <kazu@hxi.com>
3885 * config/tc-mips.c: Fix formatting.
3887 2000-12-04 Matthew Hiller <hiller@redhat.com>
3889 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3890 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3891 (md_show_usage): Ditto.
3892 (md_parse_option): Ditto.
3893 (d10v_cleanup): Writes pending instruction only if
3894 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
3895 Fix compile time warning messages.
3897 * doc/c-d10v.texi: Documents new options.
3899 2000-12-04 Matthew Hiller <hiller@redhat.com>
3901 * stabs.c (outputting_stabs_line_debug): New variable.
3902 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3903 function entry and unset at function exit.
3905 * read.h (outputting_stabs_line_debug): New extern declaration.
3907 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3909 * dwarf2dbg.c: Fix compile time warning messages.
3911 2000-12-03 Kazu Hirata <kazu@hxi.com>
3913 * config/tc-a29k.c: Fix formatting.
3914 * config/tc-alpha.c: Likewise.
3915 * config/tc-arm.c: Likewise.
3916 * config/tc-cris.c: Likewise.
3917 * config/tc-hppa.c: Likewise.
3918 * config/tc-i370.c: Likewise.
3919 * config/tc-i386.c: Likewise.
3920 * config/tc-i860.c: Likewise.
3921 * config/tc-i960.c: Likewise.
3922 * config/tc-ia64.c: Likewise.
3923 * config/tc-m68hc11.c: Likewise.
3924 * config/tc-m68k.c: Likewise.
3925 * config/tc-m88k.c: Likewise.
3926 * config/tc-pj.c: Likewise.
3927 * config/tc-ppc.c: Likewise.
3928 * config/tc-sh.c: Likewise.
3929 * config/tc-sparc.c: Likewise.
3930 * config/tc-tahoe.c: Likewise.
3931 * config/tc-vax.c: Likewise.
3933 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3935 * config/tc-mips.c (mips_ip): When calculating offsets,
3936 don't accept as constant the difference between the
3937 addresses of symbols in two different sections.
3939 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3941 (validate_mips_insn): Likewise. Also, update 'B' operand
3942 specifier to use OP_*_CODE20 constants and delete 'm' operand
3944 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3945 operand specifiers. Change warning generated by 'B' operand
3946 specifier to reflect its new multi-purpose usage.
3948 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3949 -1, and update comment.
3950 (file_mips_isa): Likewise.
3951 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3952 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3953 ISA_* constants rather than hard-coded numbers.
3954 (mips_cpu_info): New structure.
3955 (mips_cpu_info_table): New table describing CPU and ISA names
3957 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3958 mips_cpu_info_from_cpu): New functions.
3959 (mips_isa_to_str): New function to get string for ISA name.
3960 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3961 return const char *.
3962 (md_begin): Redo CPU and ISA selection logic, using
3963 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3964 than hard-coded numbers.
3965 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3966 ISA_* constants rather than hard-coded numbers.
3967 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3968 (md_longopts): Delete OPTION_NO_MIPS32.
3969 (md_parse_option): Convert to use ISA_* constants rather than
3970 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3971 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3972 to use strcasecmp to recognize "default" and to use
3973 mips_cpu_info_from_name to get CPU numbers from argument.
3974 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3975 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3977 (s_mipsset): Accept ISA value 32.
3978 * doc/as.texinfo: Clean up MIPS options summary slightly,
3979 remove -no-mips32. Add note about -mips4 and -mips32
3980 specifying those ISA levels. Delete -mips32 and -no-mips32
3981 cpu flag descriptions.
3982 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3983 up the supported CPU switch list, and replace 4Kc, 4Km, and
3984 4Kp entries with a single mips32-4k entry. Note that you can
3987 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
3989 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3991 (md_parse_option): Add cases for OPTION_MIPS5 and
3993 (md_show_usage): Mention -mips5 and -mips64 arguments.
3994 (s_mipsset): Add cases for MIPS5 and MIPS64.
3995 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
3997 * doc/as.texinfo: Mention -mips5 and -mips64 options
3999 * doc/c-mips.texi: Likewise. Also update introduction
4000 and ".set" usage information.
4002 * config/tc-mips.c (md_show_usage): Add "sb1" to the
4004 (mips_cpu_info_table): Add SB-1 entries.
4005 * doc/c-mips.texi: Add "sb1" to the list of CPUs
4006 known to the -mcpu option.
4008 * doc/as.texinfo: Correct description of MIPS -mcpu
4009 option, by copying some of the text from doc/c-mips.texi.
4011 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4013 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4015 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4016 (sparc*-*-rtems*): Switched from a.out to ELF.
4017 * configure: Regenerate.
4018 * config.in: Regenerate.
4019 * Makefile.in: Regenerate.
4020 * aclocal.m4: Regenerate.
4021 * po/gas.pot: Regenerate.
4023 2000-11-30 Philip Blundell <pb@futuretv.com>
4025 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
4026 even in non BFD_ASSEMBLER case.
4028 2000-11-30 Diego Novillo <dnovillo@redhat.com>
4030 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
4033 2000-11-29 Richard Henderson <rth@redhat.com>
4035 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
4036 until dwarf2_finish; use relaxation to get cross-fragment offsets;
4037 thread multiple subsegments properly; handle multiple code
4038 sections properly; emit proper compilation unit info for assembler
4039 generated debugging.
4041 * as.h (enum _relax_state): Add rs_dwarf2dbg.
4042 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
4043 (dwarf2dbg_estimate_size_before_relax): Declare.
4044 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
4045 * write.c: Include dwarf2dbg.h.
4046 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
4047 (relax_segment): Likewise.
4049 2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
4051 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
4052 jump>: Use as_bad_where instead of as_bad. Tweak error message
4053 accordingly. Stabilize frag by updating fix part and resetting
4055 <undefined symbol, unconditional jump>: Ditto.
4056 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
4057 indexing is_end_of_line[].
4058 (md_assemble): Initialize size to 0.
4059 (md_section_align): Mark parameter seg as unused.
4060 (parse_reg): Parse names case-insensitively.
4062 2000-11-28 Kazu Hirata <kazu@hxi.com>
4064 * config/obj-aout.h: Fix formatting.
4065 * config/obj-bout.h: Likewise.
4066 * config/obj-coff.c: Likewise.
4067 * config/obj-coff.h: Likewise.
4068 * config/obj-elf.h: Likewise.
4069 * config/obj-som.h: Likewise.
4070 * config/obj-vms.c: Likewise.
4071 * config/obj-vms.h: Likewise.
4072 * config/tc-h8300.h: Likewise.
4073 * config/tc-ns32k.h: Likewise.
4074 * config/tc-sparc.h: Likewise.
4075 * config/tc-tic54x.h: Likewise.
4076 * config/tc-z8k.h: Likewise.
4078 2000-11-28 Nick Clifton <nickc@redhat.com>
4080 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
4081 License is present in the sources, but not the output, and
4082 also available from the GNU website.
4083 (GNU Free Documentation License): Comment out this section.
4085 2000-11-28 Hans-Peter Nilsson <hp@axis.com>
4087 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
4088 targets. Remove i860 from valid a.out targets.
4089 * Makefile.in: Regenerate.
4091 * config/tc-cris.c: Include dwarf2dbg.h.
4092 (md_pseudo_table): Add .file and .loc.
4093 (md_assemble): Call dwarf2_emit_insn if generating ELF.
4094 (s_cris_file, s_cris_loc): New.
4095 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4096 * Makefile.am: Regenerate dependencies.
4097 * Makefile.in: Regenerate.
4099 2000-11-28 Alan Modra <alan@linuxcare.com.au>
4101 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
4102 (MRI_MUL_PRECEDENCE): Likewise.
4103 (op_rank): Fix a comment typo.
4105 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4107 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
4109 (get_operand): Fix analysis for movw/movb instructions.
4111 2000-11-24 Nick Clifton <nickc@redhat.com>
4113 * configure.in (xscale-elf): Add target.
4114 (xscale-coff): Add target.
4115 * configure: Regenerate.
4117 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
4119 (ARM_EXT_XSCALE): New ARM architecture extension.
4120 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
4121 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
4122 (ARM_THUMB): Rename to ARM_EXT_THUMB.
4123 (ARM_ARCH_V4): Remove processor from architecture.
4124 (ARM_ARCH_3M): New architecutre definition.
4125 (ARM_ARCH_V5TE): New architecutre definition.
4126 (ARM_ARCH_XSCALE): New architecutre definition.
4127 (CPU_DEFAULT): Allow to be defaulted to XScale.
4128 (atpcs): New boolean variable.
4129 (ldr_flags): Support 'd' flag for double word loads.
4130 (str_flags): Support 'd' flag for double word stored.
4131 (do_mia): New function.
4132 (do_mar): New function.
4133 (do_mra): New function.
4134 (do_pld): New function.
4135 (do_ldrd): New function.
4136 (do_blx): New function.
4137 (do_bkpt): New function.
4138 (do_clz): New function.
4139 (do_lstc2): New function.
4140 (do_cdp2): New function.
4141 (do_t_blx): New function.
4142 (do_t_bkpt): New function.
4143 (do_smla): New function.
4144 (do_smlal): New function.
4145 (do_smul): New function.
4146 (do_qadd): New function.
4147 (do_co_reg2c): New function.
4148 (LONGEST_INSN): Redefine to 7.
4150 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
4151 command line switches.
4153 2000-11-22 Jim Wilson <wilson@redhat.com>
4155 * config/tc-ia64.c (pseudo_func): Add missing initializers.
4156 (struct rsrc): Make line unsigned.
4157 (gr_values): Add missing initializer.
4158 (SLOT_NUM_NOT_SET): Add unsigned cast.
4159 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
4160 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
4161 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
4162 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
4163 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
4164 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
4165 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
4166 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
4167 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
4168 Add ATTRIBUTE_UNUSED to unused parameters.
4169 (convert_expr_to_ab_reg): Add parens.
4170 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
4171 (dot_prologue): Initialize grsave when declared.
4172 (md_pseudo_table): Add missing initializers.
4173 (operand_match): Add casts to bfd_vma.
4174 (emit_one_bundle): Delete unused local prev. Make required_template
4176 (specify_resource): Cast i to unsigned.
4177 (note_register_values): Use fprintf_vma.
4178 (print_dependency): Likewise.
4180 2000-11-21 Jim Wilson <wilson@redhat.com>
4182 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
4183 for unwind info section.
4184 (dot_endp): Likewise for unwind section.
4186 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
4189 2000-11-21 Jakub Jelinek <jakub@redhat.com>
4191 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
4192 (output_insn): Call dwarf2_emit_insn.
4193 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4195 2000-11-17 Richard Henderson <rth@redhat.com>
4197 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
4198 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
4199 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
4201 2000-11-17 Nick Clifton <nickc@redhat.com>
4203 * config/tc-arm.c (md_pseudo_table): Add support for .line and
4206 2000-11-17 Richard Henderson <rth@redhat.com>
4208 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
4210 2000-11-17 Richard Henderson <rth@redhat.com>
4212 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
4213 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
4214 tri-state definition of alpha_flag_mdebug.
4215 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
4216 (s_alpha_file): Store first .file directive.
4217 (s_alpha_stab): New.
4218 (md_pseudo_table): Add stabs and stabn.
4220 2000-11-17 Richard Henderson <rth@redhat.com>
4222 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
4224 2000-11-17 Richard Henderson <rth@redhat.com>
4226 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
4227 (main): Call dwarf2_finish.
4228 * as.h (debug_type): Clarify documentation of the meaning
4230 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
4231 (print_stats): Fix parenthesis problem.
4232 (now_subseg_size): New.
4233 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
4234 (dwarf2_directive_file): Don't set debug_type.
4235 (dwarf2_where): Honor DEBUG_DWARF2 first.
4236 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
4237 do nothing if not emitting dwarf2 debug info, or no work.
4238 * dwarf2dbg.h (dwarf2_emit_insn): Update.
4239 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
4240 (ecoff_new_file): Likewise.
4241 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
4242 commentary wrt dwarf2.
4244 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
4245 ATTRIBUTE_UNUSED as needed.
4246 (emit_insn): Call dwarf2_emit_insn.
4247 (s_alpha_file): New.
4249 (s_alpha_coff_wrapper): Don't handle them.
4250 (md_pseudo_table): Update for .file and .loc.
4251 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4253 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
4254 don't protect with debug_type.
4255 * config/tc-hppa.c (md_assemble): Likewise.
4256 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
4257 * config/tc-mn10300.c (md_assemble): Likewise.
4258 * config/tc-sh.c (md_assemble): Likewise.
4259 * config/tc-v850.c (md_assemble): Likewise.
4261 * config/tc-arm.c (arm_end_of_source): Remove.
4262 * config/tc-hppa.c (pa_end_of_source): Remove.
4263 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
4264 * config/tc-mn10300.c (mn10300_finalize): Remove.
4265 * config/tc-sh.c (sh_finalize): Remove.
4266 * config/tc-v850.c (sh_finalize): Remove.
4268 * config/tc-arm.h (md_end): Remove.
4269 * config/tc-hppa.h (md_end): Remove.
4270 (DWARF2_LINE_MIN_INSN_LENGTH): New.
4271 * config/tc-m68hc11.h (md_end): Remove.
4272 * config/tc-mn10300.h (md_end): Remove.
4273 * config/tc-sh.h (md_end): Remove.
4274 * config/tc-v850.h (md_end): Remove.
4276 * config/tc-ia64.c (emit_one_bundle): Don't protect
4277 dwarf2 bits with debug_type.
4278 (md_assemble): Likewise.
4279 (ia64_end_of_source): Don't call dwarf2_finish.
4281 2000-11-16 Jim Wilson <wilson@redhat.com>
4283 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
4284 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
4287 2000-11-16 H.J. Lu <hjl@gnu.org>
4289 * config/obj-elf.c (obj_elf_symver): Don't check the missing
4292 2000-11-15 Kazu Hirata <kazu@hxi.com>
4294 * config/tc-tic30.c: Fix formatting.
4295 * config/tc-tic80.c: Likewise.
4296 * config/tc-v850.c: Likewise.
4297 * config/tc-vax.c: Likewise.
4298 * config/tc-w65.c: Likewise.
4299 * config/tc-z8k.c: Likewise.
4301 2000-11-14 DJ Delorie <dj@redhat.com>
4303 * config/tc-v850.c: Support dwarf2.
4304 * config/tc-v850.h: Ditto.
4306 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
4307 parse_cons_expression_v850 to initialize hold_cons_reloc.
4309 2000-11-15 Bernd Schmidt <bernds@redhat.com>
4311 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
4312 (errata_nops_necessary_p): New function.
4313 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
4316 2000-11-14 Jim Wilson <wilson@redhat.com>
4318 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
4319 return little endian bfd formats.
4321 2000-11-14 Kazu Hirata <kazu@hxi.com>
4323 * config/aout_gnu.h: Fix formatting.
4324 * config/atof-vax.c: Likewise.
4325 * config/m68k-parse.h: Likewise.
4326 * config/m88k-opcode.h: Likewise.
4327 * config/obj-elf.c: Likewise.
4328 * config/tc-arm.c: Likewise.
4329 * config/tc-cris.c: Likewise.
4330 * config/tc-i386.c: Likewise.
4331 * config/tc-ia64.c: Likewise.
4332 * config/tc-mn10300.c: Likewise.
4333 * config/te-386bsd.h: Likewise.
4334 * config/te-hppa.h: Likewise.
4335 * config/te-nbsd.h: Likewise.
4336 * config/te-ppcnw.h: Likewise.
4337 * config/te-sparcaout.h: Likewise.
4338 * config/te-tmips.h: Likewise.
4339 * config/vax-inst.h: Likewise.
4340 * config/vms-conf.h: Likewise.
4342 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4344 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
4346 2000-11-13 H.J. Lu <hjl@gnu.org>
4348 * config/obj-elf.c (elf_frob_symbol): Support
4349 ".symver name,name2@@@nodename".
4350 (elf_frob_file_before_adjust): Likewise.
4352 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
4353 and ".symver name,name2@@@nodename".
4356 2000-11-12 H.J. Lu (hjl@gnu.org)
4358 * config/obj-elf.c (obj_elf_symver): Check missing version
4361 2000-11-12 H.J. Lu (hjl@gnu.org)
4363 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
4364 instead of bfd_vma for non-bfd assemblers.
4366 2000-11-09 Kazu Hirata <kazu@hxi.com>
4368 * itbl-ops.c: Fix comment typos.
4370 2000-11-08 Jim Wilson <wilson@redhat.com>
4372 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
4373 (struct unwind): Add next_slot_frag field.
4374 (slot_index): New parameters slot_frag and first_frag. Add code
4375 to add in frag sizes when different. Add comments.
4376 (fixup_unw_records): New locals first_frag and last_frag. Pass new
4377 arguments to slot_index.
4378 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
4379 loop end. Set next_slot_frag field.
4381 2000-11-07 H.J. Lu <hjl@gnu.org>
4383 * doc/as.texinfo (.symver): Updated for versioned symbol
4386 * obj.h (format_ops): Add the frob_file_before_adjust field.
4388 * config/obj-aout.c (aout_format_ops): Set the
4389 frob_file_before_adjust field to 0.
4390 * config/obj-coff.c (coff_format_ops): Likewise.
4391 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
4393 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
4395 (elf_frob_file_before_adjust): New function to remove unneeded
4396 versioned symbols from the symbol table.
4397 (elf_format_ops): Set the frob_file_before_adjust field to
4398 elf_frob_file_before_adjust.
4400 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4403 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4405 2000-11-07 Peter Targett <peter.targett@arccores.com>
4407 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4409 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4410 Fix compile time warning messages.
4412 2000-11-07 Nick Clifton <nickc@redhat.com>
4414 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4415 buffer in order to avoid buffer overflows.
4417 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4419 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4420 Change M to m for -milp32 or -mlp64 to match gcc.
4421 (dot_endp): Use bytes_per_address instead of 8.
4422 (emit_one_bundle): Use number_to_chars_littleendian instead of
4424 (fix_insn): Likewise.
4425 (ia64_init): New function.
4426 (ia64_target_format): New function.
4427 (md_begin): Set endianness, arch, and machine as appropriate.
4428 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4429 Make these macros depend on TE_HPUX macro.
4430 (TARGET_FORMAT): Define.
4431 (HOST_SPECIAL_INIT): Define.
4432 * config/te-hpux.h: New file.
4433 * configure.in: Add "ia64-*-hpux*" target to configure.
4434 * configure: Regenerate.
4436 2000-11-06 Kazu Hirata <kazu@hxi.com>
4438 * as.c: Fix formatting.
4439 * dwarf2dbg.c: Likewise.
4440 * input-file.c: Likewise.
4441 * input-file.h: Likewise.
4442 * input-scrub.c: Likewise.
4443 * itbl-ops.c: Likewise.
4444 * listing.c: Likewise.
4445 * macro.h: Likewise.
4446 * messages.c: Likewise.
4448 * subsegs.c: Likewise.
4449 * subsegs.h: Likewise.
4450 * write.c: Likewise.
4452 2000-11-06 Nick Clifton <nickc@redhat.com>
4454 * doc/as.texinfo: Add GNU Free Documentation License.
4455 * doc/gasp.texi: Add GNU Free Documentation License.
4456 * doc/as.1: Add GNU Free Documentation License.
4458 2000-11-05 Nick Clifton <nickc@redhat.com>
4460 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4462 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4464 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4465 * configure: Regenerate.
4467 2000-11-01 Nick Clifton <nickc@redhat.com>
4469 * read.c (original_case_string): New global variable.
4470 (read_a_source_file): Copy opcode string into
4471 original_case_string if clobbering the case of the opcode.
4472 * read.h: Export the definition of original_case_string.
4473 * config/tc-arm.c (md_assembler): When parsing a .req
4474 directive use the original opcode string, not the case
4477 2000-11-02 Nick Clifton <nickc@redhat.com>
4479 * config/tc-mn10300.c (debug_line): Remove this static
4481 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4482 dwarf2_where and dwarf2_gen_line_info.
4484 2000-11-02 Theo Honohan <th@futuretv.com>
4486 * config/tc-arm.c (do_msr): Improve error message.
4488 2000-10-31 Eric Christopher <echristo@redhat.com>
4490 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4491 or pc-relative, else use fx_offset.
4493 2000-10-31 Jim Wilson <wilson@redhat.com>
4495 * config/tc-ia64.c (struct md): New field tag_fixups.
4496 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4497 qualifying predicate.
4498 (emit_one_bundle): Delete spurious multiplication by one. Handle
4500 (ia64_start_line): Error if dangling qualifying predicate.
4501 (defining_tag): New static variable.
4502 (ia64_unrecognized_line, case '['): Parse tags.
4503 (ia64_frob_label): Create tag_fixups.
4504 (md_assemble): Reset md.qp.X_op after using it.
4506 2000-10-31 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4508 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4510 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
4512 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
4514 2000-10-30 Kazu Hirata <kazu@hxi.com>
4516 * expr.c: Fix formatting.
4517 * flonum-copy.c: Likewise.
4518 * flonum.h: Likewise.
4522 2000-10-30 Hans-Peter Nilsson <hp@bitrange.com>
4524 * as.h (OPTION_MD_BASE): Bump to 190.
4525 * as.c (parse_args) <std_longopts>: Add comment about the need to
4526 check OPTION_MD_BASE in as.h.
4528 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4531 2000-10-27 Nick Clifton <nickc@redhat.com>
4533 * configure.in (emulations): Add m68hc12.
4534 * configure: Regenerate.
4535 * po/gas.pot: Regenerate.
4537 2000-10-27 Aldy Hernandez <aldyh@redhat.com>
4539 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4541 (arm_psr_parse): Handle lowercase CPSR and SPSR.
4543 2000-10-25 Nick Clifton <nickc@redhat.com>
4545 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4546 a DWARF2 line number information sequence.
4548 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4550 * read.c (generate_lineno_debug): Update comment describing why
4551 DWARF2 line number debug information is not generated
4552 automatically by this function.
4554 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4557 * config/tc-arm.h (md_end): Define.
4558 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4560 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4561 if generating DWARF2 line numbers.
4562 (arm_end_of_source): New function. Call dwarf2_finish if
4565 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4566 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4567 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
4569 2000-10-25 Diego Novillo <dnovillo@cygnus.com>
4571 * config/tc-i386.c: Fix prototype declarations for functions taking no
4574 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
4576 * config/tc-i386.c (i386_operand_modifier): Remove.
4577 (build_displacement_string): Remove.
4578 (i386_parse_seg): Remove.
4579 (i386_intel_memory_operand): Remove.
4580 (i386_intel_operand): Re-write using recursive descent parser based
4581 on MASM documentation.
4582 (struct intel_parser_s): New structure.
4583 (intel_parser): New static variable.
4584 (struct intel_token): New structure.
4585 (cur_token, prev_token): New static variables.
4598 (intel_match_token): New function.
4599 (intel_get_token): New function.
4600 (intel_putback_token): New function.
4601 (intel_expr): New function.
4602 (intel_e05): New function.
4603 (intel_e05_1): New function.
4604 (intel_e06): New function.
4605 (intel_e06_1): New function.
4606 (intel_e09): New function.
4607 (intel_e09_1): New function.
4608 (intel_e10): New function.
4609 (intel_e10_1): New function.
4610 (intel_e11): New function.
4612 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4614 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4615 instructions to loose any special insn->architecture mask.
4617 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4618 (sparc_md_end, sparc_arch_types, sparc_arch,
4619 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4620 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4621 request v9b architecture if they are used).
4623 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4625 * config/tc-m68k.c: Fix the previous misapplied patch.
4627 2000-10-18 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4629 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4630 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4631 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4634 2000-10-17 Kazu Hirata <kazu@hxi.com>
4636 * debug.c: Fix formatting.
4637 * depend.c: Likewise.
4638 * dwarf2dbg.c: Likewise.
4639 * dwarf2dbg.h: Likewise.
4640 * ecoff.c: Likewise.
4643 * flonum-konst.c: Likewise.
4644 * frags.h: Likewise.
4646 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4648 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4650 * doc/as.texinfo: Added notes about this new option.
4652 2000-10-16 Hans-Peter Nilsson <hp@bitrange.com>
4654 * config/tc-sh.c (JREG): Remove.
4655 (md_convert_frag): Remove #if 0:d code using JREG.
4657 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
4659 * config/tc-i386.c (i386_operand_modifier): Only match
4660 modifiers SHORT and FLAT if they are followed by a space.
4661 (parse_register): When `allow_naked_reg' is set, do not confuse
4662 identifiers that start with a register name with a register.
4664 2000-10-12 Kazu Hirata <kazu@hxi.com>
4666 * app.c: Fix formatting.
4669 * bit_fix.h: Likewise.
4674 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4676 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4678 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4680 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4681 Re-arrange function a little and improve error message.
4683 * write.c (write_relocs): Fix a comment.
4685 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4688 2000-10-05 Jim Wilson <wilson@cygnus.com>
4690 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4692 2000-10-05 Alan Modra <alan@linuxcare.com.au>
4694 * config/tc-i386.c: Delete some useless comments, reformat others.
4696 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4697 non-global syms in linkonce sections.
4699 2000-10-04 Ralf Baechle <ralf@gnu.org>
4701 * config/tc-ia64.c (operand_match): Don't use // style comments.
4702 * config/tc-i370.c: Likewise.
4704 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
4706 Changes to handle varying register prefix and user symbol prefix.
4707 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4708 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4709 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4710 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4711 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4712 (demand_register_prefix): New variable.
4713 (md_pseudo_table): New pseudo ".syntax".
4714 (md_longopts): New options --no-underscore and --underscore.
4715 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4716 on symbols_have_leading_underscore.
4717 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4718 (get_spec_reg): Ditto.
4719 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4721 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4723 <case OPTION_NO_US, case OPTION_US>: New.
4724 (md_show_usage): Be brief and reformat to match continuation of
4726 * po/gas.pot: Regenerate.
4728 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4730 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4731 force relocs for 12 bit branches.
4732 (md_apply_fix): Similarly, adjust logic here.
4734 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4736 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4737 adjust for external and weak syms as we will use a reloc. Allow
4738 for +8 offset when calculating limits of branches.
4739 (hppa_fix_adjustable): Undo 2000-09-23 change.
4740 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4741 Correct distance calculation.
4742 (tc_gen_reloc): Print the file name and line number if we can't
4745 From John David Anglin <dave@hiauly1.hia.nrc.ca>
4746 * config/tc-hppa.c (nonzero_dibits): Define.
4747 (arg_reloc_stub_needed): Check each arg and return value
4748 separately for zero case.
4749 (pa_align): Declare argument `bytes'.
4751 2000-09-25 Kazu Hirata <kazu@hxi.com>
4753 * config/tc-cris.c: Fix formatting.
4754 * config/tc-d10v.h: Likewise.
4755 * config/tc-d30v.c: Likewise.
4756 * config/tc-d30v.h: Likewise.
4757 * config/tc-fr30.c: Likewise.
4758 * config/tc-fr30.h: Likewise.
4759 * config/tc-m68k.c: Likewise.
4760 * config/tc-m68k.h: Likewise.
4761 * config/tc-pj.h: Likewise.
4762 * config/tc-ppc.c: Likewise.
4763 * config/tc-ppc.h: Likewise.
4764 * config/tc-sh.c: Likewise.
4765 * config/tc-sh.h: Likewise.
4766 * config/tc-sparc.c: Likewise.
4767 * config/tc-v850.h: Likewise.
4768 * config/tc-vax.h: Likewise.
4769 * config/tc-w65.h: Likewise.
4770 * config/tc-z8k.h: Likewise.
4772 2000-09-23 Alan Modra <alan@linuxcare.com.au>
4774 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4775 checks only for ELF.
4776 (hppa_force_relocation): Likewise.
4778 2000-09-22 Jim Wilson <wilson@cygnus.com>
4780 * config/tc-ia64.c (dv_sem): Add "stop".
4781 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4782 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4783 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4785 (mark_resources): Check IA64_RS_PRr.
4787 2000-09-22 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4789 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
4790 md_estimate_size_before_relax): Redesign and clean up the
4791 relaxation mechanism.
4793 2000-09-21 Kazu Hirata <kazu@hxi.com>
4795 * config/tc-ns32k.c: Fix formatting.
4796 * config/tc-ns32k.h: Likewise.
4798 2000-09-20 Kazu Hirata <kazu@hxi.com>
4800 * config/tc-m32r.c: Fix formatting.
4801 * config/tc-m32r.h: Likewise.
4802 * config/tc-m68851.h: Likewise.
4803 * config/tc-m68hc11.c: Likewise.
4804 * config/tc-m68hc11.h: Likewise.
4805 * config/tc-m88k.c: Likewise.
4806 * config/tc-mcore.c: Likewise.
4807 * config/tc-mcore.h: Likewise.
4808 * config/tc-mips.c: Likewise.
4809 * config/tc-mips.h: Likewise.
4810 * config/tc-mn10200.h: Likewise.
4811 * config/tc-mn10300.h: Likewise.
4812 * config/tc-tahoe.c: Likewise.
4813 * config/tc-tahoe.h: Likewise.
4815 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4817 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4818 Likewise in relaxation description comments.
4820 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4822 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4823 subtraction of two syms without emitting a relocation.
4825 From David Huggins-Daines <dhd@linuxcare.com>
4826 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4827 global or weak symbols.
4829 2000-09-15 Kazu Hirata <kazu@hxi.com>
4831 * config/tc-h8300.h: Fix formatting.
4832 * config/tc-h8500.c: Likewise.
4833 * config/tc-h8500.h: Likewise.
4834 * config/tc-hppa.h: Likewise.
4835 * config/tc-i370.h: Likewise.
4836 * config/tc-i386.h: Likewise.
4837 * config/tc-i860.c: Likewise.
4838 * config/tc-i860.h: Likewise.
4839 * config/tc-i960.h: Likewise.
4840 * config/tc-ia64.c: Likewise.
4841 * config/tc-ia64.h: Likewise.
4843 2000-09-14 Kazu Hirata <kazu@hxi.com>
4845 * config/tc-a29k.c: Fix formatting.
4846 * config/tc-alpha.c: Likewise.
4847 * config/tc-arc.c: Likewise.
4848 * config/tc-arc.h: Likewise.
4849 * config/tc-arm.c: Likewise.
4850 * config/tc-arm.h: Likewise.
4851 * config/tc-avr.c: Likewise.
4852 * config/tc-avr.h: Likewise.
4853 * config/tc-tic30.c: Likewise.
4854 * config/tc-tic30.h: Likewise.
4855 * config/tc-tic54x.c: Likewise.
4856 * config/tc-tic54x.h: Likewise.
4857 * config/tc-tic80.c: Likewise.
4858 * config/tc-tic80.h: Likewise.
4860 2000-09-14 Timothy Wall <twall@cygnus.com>
4862 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4863 parallel comparisons for later use.
4864 (struct rsrc): Add parallel comparison type.
4865 (resources_match): Skip special cases of PR usage (non-conflicting
4868 2000-09-13 Kazu Hirata <kazu@hxi.com>
4870 * config/obj-ecoff.c: Fix formatting.
4871 * config/obj-elf.c: Likewise.
4872 * config/obj-elf.h: Likewise.
4873 * config/obj-evax.h: Likewise.
4874 * config/obj-generic.h: Likewise.
4875 * config/obj-hp300.c: Likewise.
4876 * config/obj-hp300.h: Likewise.
4877 * config/obj-ieee.h: Likewise.
4878 * config/obj-vms.c: Likewise.
4879 * config/obj-vms.h: Likewise.
4881 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4883 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4884 (md_parse_option): Ditto.
4885 (md_longopts): Add -mips32 option.
4886 (md_show_usage): Document new options.
4887 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4888 (mips_ip): Assemble mfc0 with a sub-selection code.
4889 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
4890 (mips_cpu_to_str): New function.
4891 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4892 Use CPU_* defines instead of hardcoded numbers.
4894 * doc/as.texinfo: Document new options.
4895 * doc/c-mips.texi: Ditto.
4897 2000-09-12 Kazu Hirata <kazu@hxi.com>
4899 * as.h: Fix formatting.
4900 * asintl.h: Likewise.
4901 * bit_fix.h: Likewise.
4902 * config/obj-aout.c: Likewise.
4903 * config/obj-aout.h: Likewise.
4904 * config/obj-bout.c: Likewise.
4905 * config/obj-bout.h: Likewise.
4906 * config/obj-coff.c: Likewise.
4907 * config/obj-coff.h: Likewise.
4908 * dwarf2dbg.h: Likewise.
4910 * flonum.h: Likewise.
4911 * frags.h: Likewise.
4912 * itbl-ops.h: Likewise.
4913 * macro.h: Likewise.
4916 * struc-symbol.h: Likewise.
4917 * subsegs.h: Likewise.
4918 * symbols.h: Likewise.
4920 * write.h: Likewise.
4922 2000-09-11 Kazu Hirata <kazu@hxi.com>
4924 * bignum-copy.c: Fix formatting.
4925 * config/tc-i370.c: Likewise.
4926 * config/tc-i960.c: Likewise.
4927 * config/tc-m68k.c: Likewise.
4928 * ehopt.c: Likewise.
4929 * flonum-copy.c: Likewise.
4930 * flonum-konst.c: Likewise.
4931 * flonum-mult.c: Likewise.
4932 * literal.c: Likewise.
4935 * stabs.c: Likewise.
4936 * subsegs.c: Likewise.
4938 2000-09-09 Philip Blundell <philb@gnu.org>
4940 * configure.in (arm*-*-uclinux*): New target.
4941 * configure: Regenerate.
4943 2000-09-09 Kazu Hirata <kazu@hxi.com>
4945 * input-file.c: Fix formatting.
4946 * itbl-ops.c: Likewise.
4947 * messages.c: Likewise.
4949 2000-09-08 Philip Blundell <philb@gnu.org>
4951 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4954 2000-09-07 H.J. Lu <hjl@gnu.org>
4956 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4957 * configure: Rebuild.
4959 2000-09-07 Kazu Hirata <kazu@hxi.com>
4961 * atof-generic.c: Fix formatting.
4962 * config/tc-mips.c: Likewise.
4963 * config/tc-vax.c: Likewise.
4964 * input-scrub.c: Likewise.
4966 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4968 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4969 * configure.in (sh-*-linux*): Added.
4970 * configure: Rebuilt.
4972 2000-09-06 Kazu Hirata <kazu@hxi.com>
4974 * config/tc-hppa.c: Fix formatting.
4976 * ecoff.c: Fix formatting.
4978 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4980 * configure: Rebuilt with new libtool.m4.
4982 2000-09-05 Kazu Hirata <kazu@hxi.com>
4984 * cgen.c: Fix formatting.
4985 * config/tc-ia64.c: Likewise.
4987 2000-09-05 Nick Clifton <nickc@redhat.com>
4989 * aclocal.m4: Regenerate.
4990 * config.in: Regenerate.
4991 * configure: Regenerate.
4992 * po/gas.pot: Regenerate.
4994 2000-09-05 Hans-Peter Nilsson <hp@axis.com>
4996 * config/tc-cris.c: Correct comment typos.
4998 2000-09-05 Eric Christopher <echristo@cygnus.com>
5000 * config/tc-mn10300.c: Cleanup.
5001 (md_pcrel_from): Enable.
5003 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5005 * expr.c (operand): Fix a comment typo.
5006 * write.c (write_relocs): Fix a signed/unsigned warning.
5008 * config/tc-hppa.c (fudge_reg_expressions): New
5009 (hppa_force_reg_syms_absolute): New.
5010 (pa_equ): Allow reg_section expressions.
5011 * config/tc-hppa.c (md_optimize_expr): Define.
5012 (hppa_force_reg_syms_absolute): Prototype.
5014 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
5015 (pa_parse_number): Pass in arg to select fp reg parsing.
5016 Return 1 to indicate format checks pass. If strict, then only
5017 accept a register or register symbol. Return value in...
5018 (pa_number): New static for pa_parse_number.
5019 (FP_REG_BASE): Define.
5020 (FP_REG_RSEL): Define.
5021 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
5022 appropriate. White space changes.
5023 (need_pa11_opcode): Don't bother passing any params, get them from
5025 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
5026 Remove extraneous check in case 'Q'.
5027 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
5028 reg, set section of resulting symbol to reg_section.
5029 (pa_parse_space_stmt): Modify call to pa_parse_number.
5030 (pa_space): Likewise.
5032 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
5033 (hppa_force_relocation): Handle vtable relocs.
5034 (pa_vtable_entry): New.
5035 (pa_vtable_inherit): New.
5036 (md_pseudo_table): Add entries for vtable pseudos.
5037 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
5038 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
5040 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
5041 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
5042 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
5044 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
5045 specify a symbol type.
5047 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
5048 dependent things together.
5049 (md_elf_symbol_type): Define.
5051 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
5053 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
5055 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
5056 (obj_elf_vtable_entry): Declare.
5058 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
5059 and export function.
5060 (obj_elf_vtable_entry): Similarly.
5061 (elf_pseudo_table): Fix the damage with a cast.
5063 2000-09-03 Richard Henderson <rth@cygnus.com>
5065 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
5066 for template selection when a label is needed.
5068 2000-09-02 Kazu Hirata <kazu@hxi.com>
5070 * config/tc-ia64.c: Fix formatting.
5072 2000-09-02 Nick Clifton <nickc@redhat.com>
5074 * configure.in: Increase version number to 2.10.91.
5075 * configure: Regenerate.
5076 * aclocal.m4: Regenerate.
5077 * config.in: Regenerate.
5078 * po/gas.pot: Regenerate.
5079 * Makefile.in: Regenerate.
5081 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
5083 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
5084 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
5085 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
5087 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
5090 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5092 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
5093 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
5094 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
5095 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
5096 (GOT_symbol): New variable.
5097 (md_undefined_symbol): Set it.
5099 2000-09-01 Richard Henderson <rth@cygnus.com>
5101 * config/tc-ia64.c (match): Don't inline.
5102 (extra_goodness): New.
5103 (md_begin): Prefer nop.f and nop.b for best_template.
5105 2000-08-31 Kazu Hirata <kazu@hxi.com>
5107 * as.c: Fix formatting.
5109 * frags.c: Likewise.
5110 * macro.c: Likewise.
5112 2000-08-31 Eric Christopher <echristo@cygnus.com>
5114 * config/tc-mn10300.c: Cleanup and fix warnings.
5115 (md_pseudo_table): Add initializers.
5116 (md_show_usage): Cleanup.
5117 (md_parse_option): Fix warnings.
5118 (md_undefined_symbol): Fix warnings.
5119 (md_conver_frag): Fix warnings.
5120 (tc_gen_reloc): Fix warnings.
5121 (md_apply_fix3): Fix warnings.
5122 (check_operand): Fix warnings.
5124 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5126 * acinclude.m4: Include libtool and gettext macros from the
5128 * aclocal.m4, configure: Rebuilt.
5130 2000-08-30 Mark Hatle <mhatle@mvista.com>
5132 * config/tc-ppc.c (md_parse_option): Recognize -m405.
5134 2000-08-31 Kazu Hirata <kazu@hxi.com>
5136 * listing.c: Fix formatting.
5138 2000-08-29 Kazu Hirata <kazu@hxi.com>
5140 * app.c: Fix a comment typo. Fix formatting.
5142 2000-08-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5144 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
5145 offset of the target destination for jmp instructions.
5146 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
5148 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5150 * NEWS: Mention support for CRIS.
5152 2000-08-24 Denis Chertykov <denisc@overta.ru>
5154 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
5155 Sets `.lcomm' alignment to zero.
5157 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5159 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
5160 TC_FIX_ADJUSTABLE): Define.
5162 2000-08-23 Jim Wilson <wilson@cygnus.com>
5164 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
5165 unwind.personality_routine is set.
5167 2000-08-23 H.J. Lu <hjl@gnu.org>
5169 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
5171 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
5173 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
5176 2000-08-22 H.J. Lu <hjl@gnu.org>
5178 * config.in (STRICTCOFF): New for strict COFF.
5180 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
5181 i386-*-go32* and i386-go32-rtems*.
5182 * configure: Rebuilt.
5184 * config/obj-coff.c (obj_coff_endef): Follow the historical
5185 behavior if STRICTCOFF is not defined.
5187 * doc/internals.texi: Document STRICTCOFF.
5189 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5191 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
5192 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
5193 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5194 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
5195 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5196 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
5197 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
5200 2000-08-22 Eric Christopher <echristo@cygnus.com>
5202 * config/tc-mn10300.c: (md_apply_fix): New function.
5203 (mn10300_force_relocation): New function.
5204 (mn10300_fix_adjustable): New function.
5206 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
5207 (TC_HANDLES_FX_DONE): Define.
5208 (obj_fix_adjustable): Define.
5209 (MD_APPLY_FIX3): Define.
5210 (TC_LINKRELAX_FIXUP): Define.
5212 * write.c: (TC_LINKRELAX_FIXUP): Define if not
5214 (fixup_segment): Use TC_LINKRELAX_FIXUP.
5216 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
5218 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5220 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
5221 if the fixup resulted in a relocation.
5223 2000-08-18 Nick Clifton <nickc@redhat.com>
5225 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
5226 Make reference to first element of shift_names explicit.
5228 2000-08-18 Alexandre Oliva <aoliva@redhat.com>
5230 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
5231 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
5232 add a symbol's address. Removed all target-specific #ifdefs that
5233 used to accomplished the same.
5234 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5235 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5236 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5237 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5238 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5240 2000-08-17 Kazu Hirata <kazu@hxi.com>
5242 * dwarf2dbg.c: Fix formatting.
5244 2000-08-17 Nick Clifton <nickc@redhat.com>
5246 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
5247 to be recoded as logical shift lefts by zero.
5249 2000-08-16 Jim Wilson <wilson@cygnus.com>
5251 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
5252 postincrement modified registers. Handle IA64_OPND_R3_2 addl
5254 (note_register_values): Handle IA64_OPND_R3_2 operands.
5256 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5258 * config/tc-i860.c (md_operand): Silly typo fixed.
5260 2000-08-16 Nick Clifton <nickc@redhat.com>
5262 * config/tc-arm.c (struct asm_shift): Delete.
5264 (enum asm_shift_index): New.
5265 (struct asm_shift_properties): New.
5266 (struct asm_shift_name): New.
5267 (shift_properties[]); New.
5268 (shift_names[]); New.
5270 (decode_shift): Use new structures.
5271 Issue a warning is "ROR #0" is used.
5272 Issue a warning if "ASR #0" or "LSR #0" is used.
5274 (md_begin): Initialise arm_shift_hsh table from new
5275 asm_shift_name array.
5277 2000-08-16 Jakub Jelinek <jakub@redhat.com>
5279 * config/tc-sparc.c: Kill all warnings.
5280 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
5282 (md_show_usage): Update usage text.
5284 2000-08-16 Nick Clifton <nickc@redhat.com>
5286 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
5289 2000-08-15 Will Cohen <wcohen@redhat.com>
5291 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
5293 * config/tc-sh.c (md_assemble): Changed so debug_type
5294 test performed for ppi_assemble
5295 * config/tc-sh.c: Included dwarf2dbg.h.
5296 (debug_line): Defined.
5297 (md_assemble): Generates dwarf2 line info.
5298 (sh_finalize): New function. Finalize dwarf2 info.
5299 (assemble_ppi): Returns size of code generated.
5300 (build_Mytes): Returns size of code generated.
5301 (md_pseudo_table): Added "file" and "loc" psuedo ops.
5302 * config/tc-sh.h (md_end): Defined.
5303 (sh_finalize): Declared.
5305 2000-08-15 Alexandre Oliva <aoliva@redhat.com>
5307 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
5310 2000-08-14 Nick Clifton <nickc@redhat.com>
5312 * config/tc-arm.c (do_bx): Allow "bx pc".
5314 2000-08-14 Jim Wilson <wilson@cygnus.com>
5316 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
5317 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
5318 (md_begin): Change assignment to md.flag to OR in the new bit.
5320 2000-08-14 Mark Elbrecht <snowball3@bigfoot.com>
5322 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
5323 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
5326 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5328 * NEWS: Mention i860 support.
5330 2000-08-14 Jeffrey A Law (law@cygnus.com)
5332 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5334 2000-08-14 Andreas Schwab <schwab@suse.de>
5336 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
5338 2000-08-11 Andreas Schwab <schwab@suse.de>
5340 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
5343 2000-08-11 Kazu Hirata <kazu@hxi.com>
5345 * expr.c: Fix formatting.
5346 * config/obj-bout.c: Likewise.
5348 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5350 * doc/c-i860.texi: Flesh out the i860 section more.
5352 2000-08-10 Kazu Hirata <kazu@hxi.com>
5354 * symbols.c: Fix formatting.
5357 2000-08-09 Diego Novillo <dnovillo@cygnus.com>
5359 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
5360 modifier has the IgnoreSize bit set.
5362 2000-08-09 Alan Modra <alan@linuxcare.com.au>
5364 From Rodney Brown <RodneyBrown@mynd.com>
5365 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
5366 * configure: Regenerate.
5368 2000-08-09 Kazu Hirata <kazu@hxi.com>
5370 * hash.c: Fix formatting.
5373 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5375 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
5376 (i860_fix_info): New enum.
5377 (MD_APPLY_FIX3): Define.
5378 (WORKING_DOT_WORD): Define.
5379 (TC_HANDLES_FX_DONE): Define.
5380 (DIFF_EXPR_OK): Define.
5381 (LISTING_HEADER): Define.
5382 (TARGET_FORMAT): Select target format based on endian flag.
5383 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
5384 (target_big_endian): Add external declaration.
5386 * config/tc-i860.c: All existing code reworked completely. Other
5387 new code shown below.
5388 (SYNTAX_SVR4): Define.
5389 (target_warn_expand): New variable.
5390 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
5391 (md_longopts): Declare and define with new options (-EL, -EB,
5393 (md_show_usage): New function.
5394 (md_operand): New function.
5395 (obtain_reloc_for_imm16): New function.
5396 (md_apply_fix3): New function.
5397 (tc_gen_reloc): New function.
5399 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5401 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5402 2 bytes of the jump address are in the same frag.
5403 (find): Accept 68hc12 register indirect modes.
5405 * NEWS: Mention 68HC11 & 68HC12 support.
5407 2000-08-07 Richard Henderson <rth@cygnus.com>
5409 * config/tc-ia64.c (unwind): Add prologue_mask member.
5410 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5411 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5412 (dot_body): Clear unwind.prologue_mask.
5413 (dot_prologue): Set it. Accept a register second argument.
5415 2000-08-07 Kazu Hirata <kazu@hxi.com>
5417 * config/atof-ieee.c: Fix formatting.
5418 * config/atof-tahoe.c: Likewise.
5420 2000-08-06 Nick Clifton <nickc@cygnus.com>
5422 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5425 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5426 of .popsection, .previous, .pushsection, .subsection,
5427 .version, .vtable_entry, .vtable_inherit and .weak.
5429 2000-08-05 Kazu Hirata <kazu@hxi.com>
5431 * config/tc-cris.c: Fix formatting.
5432 * config/tc-i386.c: Likewise.
5433 * config/tc-sparc.c (sparc_ip): Simplify the code.
5435 2000-08-04 Kazu Hirata <kazu@hxi.com>
5437 * config/tc-cris.c: Rearrange code for readability.
5438 * config/tc-d10v.c: Fix formatting.
5439 * config/tc-m32r.c: Likewise.
5440 * config/tc-sparc.c: Likewise.
5442 2000-08-02 Jim Wilson <wilson@cygnus.com>
5444 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5445 before ia64_find_opcode.
5446 (md_assemble): Likewise.
5448 2000-08-01 Nick Clifton <nickc@cygnus.com>
5450 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
5451 Undo some formatting fixes.
5453 2000-08-01 Kazu Hirata <kazu@hxi.com>
5455 * config/obj-som.c: Fix formatting.
5456 * config/obj-ieee.c: Likewise.
5457 * config/tc-arm.c: Likewise.
5458 * config/tc-v850.c: Likewise.
5460 2000-08-01 Nick Clifton <nickc@redhat.com>
5462 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5463 index by command line option.
5465 2000-08-01 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5467 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5468 (@node M68K-Branch): Rewrite to match the reality.
5470 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5472 * doc/c-i860.texi: New file.
5473 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5474 * doc/Makefile.in: Regenerate.
5475 * doc/all.texi: Add I860 as relevant architecture.
5476 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5478 2000-07-31 Kazu Hirata <kazu@hxi.com>
5480 * config/tc-d30v.c: Fix formatting.
5482 2000-07-31 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5484 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5485 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5486 long emit a long branch if available instead of an absolute jump, never
5487 emit absolute jumps for anything with --pcrel.
5489 * doc/c-m68k.texi: Document new command line option.
5491 2000-07-29 Marek Michalkiewicz <marekm@linux.org.pl>
5493 * config/tc-avr.c: Use PARAMS macro in function declarations.
5494 Don't declare md_pcrel_from_section (already in tc-avr.h).
5495 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5496 (avr_operand): Don't set (unsigned) op_mask to -1.
5498 2000-07-28 Jason Eckhardt <jle@cygnus.com>
5500 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5501 * configure: Regenerated.
5502 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5503 of operand to the .type directive (.e.g, "type").
5505 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5507 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5508 * app.c (do_scrub_chars): Record where first comment found.
5509 * read.c (read_a_source_file): Init found_comment on entry, and
5510 notify whether comments found on exit.
5511 * config/tc-hppa.c (md_shortopts): Add "c".
5512 (md_longopts): Add warn-comment.
5513 (md_parse_option): Handle it.
5514 (md_show_usage): Show available options.
5515 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5517 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
5519 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5520 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
5522 (md_estimate_size_before_relax): Don't fall off end of function.
5524 2000-07-27 Kazu Hirata <kazu@hxi.com>
5526 * config/tc-avr.c: Fix formatting.
5527 * config/tc-ns32k.c: Likewise.
5529 2000-07-27 Alan Modra <alan@linuxcare.com.au>
5531 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5533 2000-07-27 Kazu Hirata <kazu@hxi.com>
5535 * config/tc-d10v.c: Fix formatting.
5536 * config/tc-z8k.c: Likewise.
5537 * config/tc-sparc.c: Likewise.
5539 2000-07-26 Dave Brolley <brolley@redhat.com>
5541 * cgen.c (queue_fixup): Declare opinfo.
5542 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5543 (gas_cgen_md_operand): Ditto.
5544 (gas_cgen_md_apply_fix3): Ditto.
5546 2000-07-24 Mark Elbrecht <snowball3@bigfoot.com>
5548 * config/obj-coff.c (obj_frob_symbol): Don't merge
5549 labels. Don't merge if the symbol isn't constant. Return
5550 immediately if a symbol is merged.
5552 2000-07-22 Alan Modra <alan@linuxcare.com.au>
5554 * frags.c (frag_align): Correct absolute section alignment.
5556 2000-07-20 DJ Delorie <dj@redhat.com>
5558 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5559 it breaks linking against DLLs.
5561 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5563 * configure.in: Add CRIS support.
5564 * configure: Regenerate.
5565 * Makefile.am: (CPU_TYPES): Add cris.
5566 (CPU_OBJ_VALID) [aout]: Add cris.
5567 (MULTI_CPU_TYPES): Add cris.
5568 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
5569 [coff]: Only i386 and mips are valid.
5570 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5571 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5572 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5573 Regenerate dependencies.
5574 * Makefile.in: Regenerate.
5575 * aclocal.m4: Regenerate.
5576 * as.c: Declare crisaout, criself.
5577 * config/tc-cris.h, config/tc-cris.c: New.
5578 * config/e-criself.c, config/e-crisaout.c: New.
5579 * po/POTFILES.in, po/gas.pot: Regenerate.
5581 2000-07-20 Kazu Hirata <kazu@hxi.com>
5583 * read.c: Fix formatting.
5584 * write.c: Fix formatting.
5586 2000-07-19 H.J. Lu <hjl@gnu.org>
5588 * sb.c: Include <stdlib.h> if exists for abort ().
5590 2000-07-19 Alan Modra <alan@linuxcare.com.au>
5592 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5593 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5594 (pa_type_args): Same here.
5596 2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
5598 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5599 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5600 the storage class is already set.
5602 2000-07-17 Kazu Hirata <kazu@hxi.com>
5604 * config/tc-m68hc11.c: Fix formatting.
5605 * config/tc-mn10200.c: Likewise.
5606 * config/tc-mn10300.c: Likewise.
5607 * config/tc-pj.c: Likewise.
5608 * config/tc-tic80.c: Likewise.
5609 * config/tc-w65.c: Likewise.
5611 2000-07-17 Frank Ch. Eigler <fche@redhat.com>
5613 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5616 2000-07-15 Ian Lance Taylor <ian@zembu.com>
5618 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5621 2000-07-15 Alan Modra <alan@linuxcare.com.au>
5623 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5624 ELF as are used for SOM (except the 32-bit reloc one) to decide
5625 whether a symbol can be reduced to a section symbol. Expand on
5626 the comment for symbols involved in LR% and RR% expressions.
5628 2000-07-14 Nick Clifton <nickc@cygnus.com>
5630 * config/tc-mips.c (mips_disable_float_construction): New
5631 static variable. Set to true if doubles should not be
5632 constructed by loading two single width fp registers with
5633 halves of the value.
5634 (mips_ip): Test mips_disable_float_construction.
5635 (md_longopts): Add command line switches --construct-floats
5636 and --no-construct-floats.
5637 (md_parse_option): Parse new command line options.
5638 (md_show_usage): Describe new command line options.
5640 * doc/c-mips.texi: Document new command line options.
5642 2000-07-13 Koundinya K <kk@ddeorg.soft.net>
5644 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5645 * configure: Regenerate.
5647 2000-07-13 Hans-Peter Nilsson <hp@axis.com>
5649 * configure.in (DEFAULT_EMULATION setting): Revert part of
5650 2000-07-01 change that set te_multi=multi unless set to tmips.
5651 * configure: Regenerate.
5653 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5655 * config/obj-coff.c (coff_frob_section): Add padding to the last
5656 section when aligning it increases its size.
5658 2000-07-11 Kazu Hirata <kazu@hxi.com>
5660 * config/tc-tic54x.c: Fix formatting.
5662 2000-07-10 Kazu Hirata <kazu@hxi.com>
5664 * config/tc-h8500.c: Fix formatting.
5665 * config/tc-tic54x.c: Fix formatting.
5667 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5669 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5670 displacements correctly.
5672 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5674 2000-07-10 Ryan Bradetich <rbradetich@uswest.net>
5676 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5680 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5682 From David Huggins-Daines <dhd@linuxcare.com>
5683 * config/te-hppalinux64.h: Add a new emulation.
5684 * configure.in (emulations): Add configure bits to support the
5685 64-bit Linux/parisc target.
5686 * configure: Regenerate.
5688 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5689 (md_shortopts): Add `V' for ELF.
5691 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5692 when SOM or ELF_ARG_RELOC are defined.
5693 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5694 ELF_ARG_RELOC are defined.
5695 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5696 (pa_stringer): ..Do it here instead. Fix comment typos.
5697 (hppa_force_relocation): Cast enums to int before comparing with
5700 From Ryan Bradetich <rbradetich@uswest.net>
5701 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5702 redifinition warning.
5703 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5704 (hppa_force_relocation): ditto
5705 (md_apply_fix): Added cast to buf to fix warnings.
5707 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5708 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5710 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5711 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5712 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5713 reloc_type** to avoid warnings in switch.
5714 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5715 little earlier instead.
5717 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5719 (pa_type_args): Use symbol_arg_reloc_info.
5720 (struct pa_it): Make arg_reloc unsigned int.
5721 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5722 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5723 (pa_code): Delete. pa_text duplicates this function.
5724 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5725 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5727 (cons_fix_new_hppa): Actually change selector to e_fsel when
5728 warning about assuming so.
5729 (tc_gen_reloc): More example elf arg reloc code.
5730 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5731 (hppa_force_relocation): Likewise.
5733 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5735 (pa_end_of_source): Prototype.
5736 (hppa_fix_adjustable): Prototype.
5737 (LABELS_WITHOUT_COLONS): Move it..
5738 * config/te-hppa.h: To here.
5740 * config/te-hppa64.h: New file.
5742 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5744 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5745 format -10, -16, 16 relocs.
5746 (hppa_elf_mark_end_of_function): Test for null
5747 last_call_info->start_symbol
5749 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5750 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5751 re_assesmble_* functions. Delete extraneous statements. Fix
5753 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5754 insn to re_assemble_*.
5756 2000-07-08 Ulf Carlsson <ulfc@engr.sgi.com>
5758 * doc/internals.texi (Expressions): Fix typo.
5760 2000-07-08 Kazu Hirata <kazu@hxi.com>
5762 * config/tc-sh.c: Fix formatting.
5763 * config/tc-tic54x.c: Fix formatting.
5764 * depend.c: Fix formatting.
5765 * flonum-konst.c: Likewise.
5766 * flonum-mult.c: Likewise.
5768 2000-07-07 Kazu Hirata <kazu@hxi.com>
5770 * config/tc-sh.c: Fix comments.
5771 * config/obj-vms.c: Fix comments.
5772 * config/tc-a29k.c: Likewise.
5773 * config/tc-alpha.c: Likewise.
5774 * config/tc-h8300.c: Likewise.
5775 * config/tc-h8500.c: Likewise.
5776 * config/tc-i370.c: Likewise.
5777 * config/tc-ia64.c: Likewise.
5778 * config/tc-m68hc11.c: Likewise.
5779 * config/tc-m68k.c: Likewise.
5780 * config/tc-mips.c: Likewise.
5781 * config/tc-ns32k.c: Likewise.
5782 * config/tc-ppc.c: Likewise.
5783 * config/tc-z8k.c: Likewise.
5785 2000-07-06 Mark Elbrecht <snowball3@bigfoot.com>
5787 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5788 Default to '(SEC_LOAD | SEC_DATA)'.
5789 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5791 * doc/internals.texi (CPU Backend): Describe
5792 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5794 2000-06-06 Andrew Cagney <cagney@b1.cygnus.com>
5796 * as.c (parse_args): NULL terminate the long option list.
5798 2000-06-04 Andrew Cagney <cagney@b1.cygnus.com>
5800 * config/tc-d30v.h: Include "write.h" for fixS.
5801 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
5803 2000-07-05 Nick Clifton <nickc@cygnus.com>
5805 * config/tc-d30v.c (write_2_short): Further changes to warning
5806 messages produced when combining EITHER_BUT_PREFER_MU attributed
5809 2000-07-05 DJ Delorie <dj@redhat.com>
5813 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5815 * config/tc-arm.c (psrs): Accept combinations of flags.
5817 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5819 * config/tc-avr.c: Change _ () to _() around all strings marked
5820 for translation (exception from the usual coding style).
5821 (avr_opt): New struct variable, how the new switches are set.
5822 (OPTION_MMCU): Define as 'm' and actually use.
5823 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5824 (show_mcu_list): New function, display the list of known MCUs.
5825 (md_show_usage): Document the new switches. Call show_mcu_list.
5826 (avr_set_arch): Change 'm' to OPTION_MMCU.
5827 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5828 Handle the new switches.
5829 (avr_operands): Disable warnings for undefined combinations of
5830 operands if -mall-opcodes. Disable warnings for skipping two-word
5831 instructions if enhanced core or -mno-skip-bug.
5832 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5833 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5834 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5835 (avr_ldi_expression): Warn about implicit lo8().
5836 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5838 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5840 * configure.in: Add entry for mips-*-sysv4*MP*
5841 * configure: Rebuild
5842 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5843 elf32-tradlittlemips for traditional mips targets.
5844 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5845 test for Link Once sections as in adjust_reloc_syms.
5846 * config/te-tmips.h: New file for traditional mips targets. Define
5849 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5851 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5852 flags argument is not present, don't change an existing section's
5853 section's attributes. If the flags argument is present, warn if the
5854 attributes don't match the section's current attributes. When
5855 long section names are supported, set SEC_LINK_ONCE and
5856 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5858 2000-06-29 Hans-Peter Nilsson <hp@axis.com>
5860 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5861 symbols; create them.
5863 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5865 * write.c (set_segment_vma): New: Set vma and lma for a segment.
5866 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
5868 2000-06-27 Aldy Hernandez <aldyh@redhat.com>
5870 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
5871 expressions. Ignore the problem when handling 16 bit signed
5872 immediates, because the assembler will take care of the relocation
5875 2000-06-27 Nick Clifton <nickc@cygnus.com>
5877 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
5878 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
5879 sequential order, and emit warning messages if the input source
5880 code contains constructs like that, or parallel constructs
5881 containing such opcodes.
5883 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5885 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5886 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5887 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5888 (md_show_usage): Update usage message.
5889 (md_parse_option): Allow redefinition of MCU type within the
5890 same avr[1-5] bfd machine type. Show both old and new MCU type
5891 in the error message.
5892 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5893 Simplify 8K wrap code.
5895 2000-06-25 Kazu Hirata <kazu@hxi.com>
5897 * config/obj-aout.c: Remove all uses of DEFUN.
5898 * config/obj-ieee.c: Likewise.
5899 * config/tc-sh.c: Fix comment typos.
5900 * config/tc-tahoe.c: Likewise.
5901 * config/tc-vax.c: Likewise.
5902 * config/tc-w65.c: Likewise.
5903 * config/tc-z8k.c: Likewise.
5904 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5906 2000-06-24 DJ Delorie <dj@cygnus.com>
5908 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5909 more changes from Sept 1999
5910 (tc_i386_fix_adjustable): ditto
5911 (md_apply_fix3): ditto
5913 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
5915 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5916 (gas_cgen_parse_operand): Set it around expression() call.
5917 (gas_cgen_md_operand): Test for it before longjmp().
5919 2000-06-24 Kazu Hirata <kazu@hxi.com>
5921 * config/tc-h8500.c: Remove all uses of DEFUN.
5922 * config/tc-sh.c: Likewise.
5923 * config/tc-w65.c: Likewise.
5924 * config/tc-z8k.c: Likewise.
5926 * config/tc-h8500.c: Fix typos in comments.
5928 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
5930 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5933 2000-06-23 matthew green <mrg@redhat.com>
5935 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
5936 defined. Fix error message for `[' grouping.
5938 2000-06-22 Kazu Hirata <kazu@hxi.com>
5940 * config/tc-h8300.c: Fix formatting and comment typos.
5942 2000-06-22 Timothy Wall <twall@cygnus.com>
5944 * config/tc-ia64.c (note_register_values): Move premature QP
5945 notation clearing into the appropriate place.
5947 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5949 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5950 first before anything else. Add bin-bugs.h, emul.h and progress.h
5951 Sort list of files as for $(OBJS) in Makefile.am.
5953 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5954 find one. Remake dependencies.
5955 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5956 * Makefile.in: Regenerate.
5957 * doc/Makefile.in: Regenerate.
5959 * config/tc-i386.c (i386_displacement): Don't assume a constant
5960 displacement is necessarily 16 bits when in 16 bit code mode.
5961 (md_assemble): Instead size the displacement here after we know
5962 for sure that a .code16gcc operand hasn't automatically added
5963 operand size prefixes.
5965 2000-06-21 H.J. Lu <hjl@gnu.org>
5967 * Makefile.am: Rebuild dependency.
5968 * Makefile.in: Rebuild.
5970 2000-06-21 Kazu Hirata <kazu@hxi.com>
5972 * config/tc-h8300.c (parse_reg): Make the function static.
5973 (parse_exp): Likewise.
5975 2000-06-20 DJ Delorie <dj@cygnus.com>
5977 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5978 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5979 for cygwin import libraries to work properly.
5981 2000-06-20 H.J. Lu <hjl@gnu.org>
5983 * Makefile.am: Rebuild dependency.
5984 * Makefile.in: Rebuild.
5985 * configure: Likewise.
5986 * doc/Makefile.in: Likewise.
5988 2000-06-20 Timothy Wall <twall@cygnus.com>
5990 * doc/internals.texi (CPU backend): Add @itemx for
5991 TC_START_LABEL_WITHOUT_COLON.
5992 * doc/c-tic54x.texi: New.
5993 * doc/as.texinfo: Add tic54x features and include primary tic54x
5995 * doc/all.texi: Add C54X.
5996 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
5997 * doc/Makefile.in: Regenerate.
5998 * configure.in: Add tic54x and define LIBM for tic54x.
5999 * configure: Regenrate.
6000 * config/tc-tic54x.[ch]: New.
6001 * config/obj-coff.h: Add tic54x.
6002 * Makefile.am: (CPU_TYPES): Add tic54x.
6003 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
6004 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
6005 (as_new_LDADD): Add $(LIBM).
6006 * Makefile.in: Regenerate.
6008 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6010 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
6011 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
6012 * doc/as.texinfo: Likewise.
6014 * configure, Makefile.in: Regenerate.
6015 * configure.in (emulations): Recognize m6811 and m6812.
6016 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
6017 Added files for 68hc11 and 68hc12 assembler.
6018 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
6019 * config/tc-m68hc11.h: Header definition for that assembler.
6021 2000-06-18 Nick Clifton <nickc@redhat.com>
6023 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
6024 instead of OCTETS_PER_BYTE.
6026 * config/tc-v850.c: Fix compile time warnings.
6027 * config/tc-ppc.c: Fix compile time warnings.
6029 2000-06-18 H.J. Lu <hjl@gnu.org>
6031 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
6032 * configure: Rebuild.
6034 2000-06-17 Mark Elbrecht <snowball3@bigfoot.com>
6036 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
6039 2000-06-16 Nick Clifton <nickc@cygnus.com>
6041 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
6042 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
6044 * doc/c-mips.texi: Document newly accepted cpu variants.
6046 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6048 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
6050 2000-06-13 Ulf Carlsson <ulfc@engr.sgi.com>
6052 * macro.c (getstring): Make it possible to escape the quote
6055 2000-06-13 Catherine Moore <clm@redhat.com>
6057 * config/tc-hppa.c (pa_export): Weak symbols can be global.
6059 2000-06-13 H.J. Lu <hjl@gnu.org>
6061 * configure: Regenerate.
6063 2000-06-09 Alan Modra <alan@linuxcare.com.au>
6065 * app.c (do_scrub_begin): Don't default lex[';'] as a line
6067 * doc/internals.texi (line_separator_chars): Semicolon is no
6068 longer a default. Mention null and newline as defaults.
6070 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
6072 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
6073 * config/tc-i860.h (line_separator_chars): Likewise.
6074 * config/tc-h8300.c (line_separator_chars): Likewise.
6075 * config/tc-i960.c (line_separator_chars): Likewise.
6076 * config/tc-m68k.c (line_separator_chars): Likewise.
6077 * config/tc-mips.c (line_separator_chars): Likewise.
6078 * config/tc-ns32k.c (line_separator_chars): Likewise.
6079 * config/tc-sparc.c (line_separator_chars): Likewise.
6080 * config/tc-vax.c (line_separator_chars): Likewise.
6082 * config/tc-h8300.c (comment_chars): Use string initialiser.
6083 * config/tc-i960.c (line_comment_chars): Likewise.
6084 * config/tc-z8k.c (comment_chars, line_comment_chars,
6085 line_separator_chars): Likewise.
6087 * config/tc-arm.c (line_separator_chars): Always use `;', not just
6090 2000-06-08 Nick Clifton <nickc@cygnus.com>
6092 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
6095 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6097 * configure.in (VERSION): Update to show this is the CVS mainline.
6099 2000-06-08 Matthew Jacob <mjacob@feral.com>
6101 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
6102 $at is the integer register $r28, vs. both $r28 and the floating
6103 point register $f28.
6105 2000-06-08 James E. Wilson <wilson@cygnus.com>
6107 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
6108 (dot_endp): Don't call ia64_flush_insns.
6109 (emit_one_bundle): Don't delete prologue/body records from
6110 unwind_record list in first loop. Rewrite second loop to account for
6113 2000-06-07 David Mosberger <davidm@hpl.hp.com>
6115 * config/tc-ia64.c: Add missing prototypes.
6116 (generate_unwind_image): Cast argument to output_unw_records call.
6118 2000-06-07 Denis Chertykov <denisc@overta.ru>
6120 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
6122 2000-06-07 Denis Chertykov <denisc@overta.ru>
6124 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
6125 (REGISTER_P): likewise.
6126 (avr_opcodes): uses include/opcode/avr.h
6127 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
6129 2000-06-04 Alan Modra <alan@linuxcare.com.au>
6131 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
6134 2000-06-03 H.J. Lu <hjl@gnu.org>
6136 * read.c (is_end_of_line): Put back `;'.
6138 2000-06-03 Alan Modra <alan@linuxcare.com.au>
6140 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
6142 2000-06-01 Alan Modra <alan@linuxcare.com.au>
6144 * expr.c (operand): Test is_end_of_line outside switch to catch
6145 line separator chars that are also operators.
6146 (operator): Return O_illegal for line separator chars.
6148 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
6149 entry (or `!' entry for TC_HPPA).
6151 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
6152 before indexing is_end_of_line. Remove redundant check for '\0'.
6154 * config/tc-h8500.c (md_assemble): Likewise.
6155 * config/tc-mcore.c (md_assemble): Likewise.
6156 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6159 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
6161 * config/tc-mcore.c (mcore_cons): Likewise.
6162 (mcore_float_cons): Likewise.
6163 (mcore_stringer): Likewise.
6164 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6166 2000-06-01 Scott Bambrough <scottb@netwinder.org>
6168 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
6170 2000-05-29 Nick Clifton <nickc@cygnus.com>
6172 * config/tc-sh.c: Fix compile time warning messages.
6174 * config/tc-mips.c: Fix compile time warning messages.
6176 2000-05-29 Philip Blundell <philb@gnu.org>
6178 * doc/as.texinfo: Update copyright dates.
6179 (Local Labels): Delete misplaced mention of ARM.
6180 * NEWS: Mention ARM ELF support.
6182 2000-05-27 Alexandre Oliva <aoliva@cygnus.com>
6184 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
6185 it is modified, and use the real_size to compute the frag address
6186 for dwarf2 line info.
6188 2000-05-27 Alan Modra <alan@linuxcare.com.au>
6190 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
6191 line-matching scheme to cope with automake moving variables around.
6192 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
6193 * Makefile.in: Regenerate.
6195 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6197 * config/tc-sparc.c (sparc_relax): New.
6198 (md_longopts): Add -relax and -no-relax options.
6199 (md_parse_options, md_show_usage): Likewise.
6200 (md_apply_fix3): Optimize tail call into branch always if possible.
6202 2000-05-04 Donald Lindsay <dlindsay@cygnus.com>
6204 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
6205 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
6206 rules, with warning when a GAS statement specifies a packing that
6207 will result in an instruction being squashed.
6208 Added typdef packing_type and enumerals, changed various integer
6209 literals to use the enumerals.
6211 2000-05-24 David Mosberger <davidm@hpl.hp.com>
6213 * config/tc-ia64.c (dot_restorereg_p): New function.
6214 (md_pseudo_table): Add restorereg.p.
6215 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
6216 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
6218 * config/tc-ia64.h (unw_record_type): Add unwabi.
6219 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
6220 called MASK with members for imask, and the masks produced by
6221 fr_mem, gr_mem, br_mem, and frgr_mem.
6222 (unw_p_record): Add members ABI and CONTEXT.
6223 (unw_x_record): Add member AB.
6224 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
6225 as pseudo-register for use during unwind info generation.
6226 (AR_PFS, AR_LC): New macros.
6227 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
6228 whose names start with an at sign (as in "@priunat").
6229 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
6231 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
6232 proc_end, unwind_info, personality_routine): Consolidate into
6233 "unwind" structure to reduce offset-table use. Add member
6234 NEXT_SLOT_NUMBER to track the slot number for the next instruction
6236 (output_R1_format, output_R3_format, output_P3_format,
6237 output_P6_format): Initialize R with zero to reduce compiler warnings.
6238 (output_P7_format): Ditto. Add `default' branch to switch
6239 statement to reduce compiler warnings.
6240 (output_P8_format, output_B1_format, output_B4_format): Ditto.
6241 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
6242 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
6243 into single argument.
6244 (output_X1_format, output_X3_format): Initialize R with zero to reduce
6245 compiler warnings. Merge A and B args into single argument.
6246 (output_X2_format, output_X4_format): Remove unused variable R. Merge
6247 A and B args into single argument.
6248 (free_record): Removed (wasn't used).
6249 (free_list_records): Also free imasks in prologue records.
6250 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
6251 (output_spill_mask): Remove.
6252 (output_unwabi): New function.
6253 (output_epilogue, output_label_state, output_copy_state): Call
6255 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
6256 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
6258 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
6259 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
6260 as part of handling the prologue records. Emit region's imask if
6261 we have one. Handle unwabi, epilogue, label_state, copy_state,
6262 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
6263 spill_sprel_p, and spill_reg_p records.
6264 (set_imask, count_bits, slot_index): New function.
6265 (fixup_unw_records): Fix region size computation. Handle
6266 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
6267 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
6268 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
6269 set_imask accordingly. Update imask for gr_gr, and br_gr records.
6270 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
6271 (dot_save): Use manifest constants for applicaton registers.
6272 Handle REG_PR and REG_PRIUNAT.
6273 (dot_restore): Don't just ignore it.
6274 (dot_restorereg): New function..
6275 (generate_unwind_image): Ensure unwind info is a multiple of eight
6276 bytes, not just four bytes.
6277 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
6278 (dot_altrp): Don't just ignore it.
6279 (dot_savemem): New function. Replaces dot_savesp() and
6280 dot_savepsp(). Use manifest constants for applicaton registers.
6281 Handle REG_PR and REG_PRIUNAT.
6282 (dot_savef): Simplify.
6283 (dot_saveb): Support generation of br_gr.
6284 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
6285 dot_label_state, dot_copy_state): New function.
6286 (dot_unwabi): Don't just ignore it.
6287 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
6288 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
6289 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
6290 (emit_one_bundle): Set slot number for prologue/body records
6291 *before* emitting the first insn.
6292 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
6293 (md_begin): Declare "psp" pseudo-register.
6294 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
6295 so we don't get segfault.
6296 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
6297 counts as required per SW Conventions manual
6298 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
6299 output_preds_psprel, output_preds_sprel, output_spill_base,
6300 output_unat_psprel, output_unat_sprel, output_lc_psprel,
6301 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
6302 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
6303 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
6304 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
6305 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
6306 (dot_vframe): Implement.
6307 (dot_vframesp, dot_vframepsp): New function.
6309 2000-05-23 Hans-Peter Nilsson <hp@axis.com>
6311 * configure.in (i386-*-freebsd a.out entry): Quote properly.
6312 * configure: Regenerate.
6314 2000-05-23 Alan Modra <alan@linuxcare.com.au>
6316 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
6317 (md_estimate_size_before_relax): so we can use it here instead of
6318 old kludges. Localise vars to blocks. Comment.
6320 * frags.c (frag_new): Update fr_var comments.
6321 * frags.h (struct frag): Ditto.
6323 2000-05-22 Richard Henderson <rth@cygnus.com>
6325 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
6326 (pseudo_func): Add pcrel.
6327 (operand_match): Handle IA64_OPND_TGT64.
6328 (build_insn): Likewise.
6329 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
6330 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
6331 (fix_insn): Handle all three 64-bit relocation types.
6333 2000-05-22 Hans-Peter Nilsson <hp@axis.com>
6335 * obj.h (struct format_ops): New members begin, app_file,
6336 s_set_other, s_set_desc, s_get_type, s_set_type,
6337 separate_stab_sections, init_stab_section.
6339 * config/obj-multi.h: Update GPL notice to v2.
6341 (obj_app_file): New.
6342 (S_SET_SIZE): Test s_set_size for NULL before calling.
6343 (S_SET_ALIGN): Similar for s_set_align.
6348 (SEPARATE_STAB_SECTIONS): New.
6349 (INIT_STAB_SECTION): New.
6350 (EMIT_SECTION_SYMBOLS): New.
6351 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
6353 * config/obj-elf.h: Update GPL notice to v2.
6354 Mention that this file is included from obj-multi.h.
6355 (obj_begin): Wrap definition in ifndef.
6356 (elf_file_symbol): Constify declaration.
6357 (obj_app_file): Ditto.
6358 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
6359 Wrap in ifndef SEPARATE_STAB_SECTIONS.
6361 * config/obj-elf.c (elf_s_set_other): New.
6362 (elf_file_symbol): Constify argument.
6363 (elf_separate_stab_sections): New.
6364 (elf_init_stab_section): New.
6365 (elf_format_ops): Add new members. Remove comma at end.
6367 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
6368 (ecoff_format_ops): Add new fields. Remove comma at end.
6369 Mention inconsistency for emit_section_symbols.
6371 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
6373 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
6374 (coff_separate_stab_sections): New.
6375 (coff_format_ops): Add new members.
6377 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
6378 (obj_aout_s_set_other): New.
6379 (obj_aout_s_set_desc): New.
6380 (obj_aout_s_get_type): New.
6381 (obj_aout_s_set_type): New.
6382 (obj_aout_separate_stab_sections): New.
6383 (aout_format_ops): New members added. Use obj_aout_process_stab,
6384 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
6385 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
6387 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
6389 2000-05-22 Alan Modra <alan@linuxcare.com.au>
6391 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
6392 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
6393 (md_estimate_size_before_relax): Ensure jumps to weak and
6394 externally visible symbols are relocatable.
6396 2000-05-20 Hans-Peter Nilsson <hp@axis.com>
6398 * stabs.c (aout_process_stab): Make global.
6399 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
6400 * read.h (aout_process_stab): Declare.
6402 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6403 Generalize to *aout, *coff *elf.
6404 * configure: Regenerated.
6406 * doc/internals.texi (Object format backend): Say
6407 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
6409 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6410 * Makefile.in: Regenerated.
6412 2000-05-19 Catherine Moore <clm@cygnus.com>
6414 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6416 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6418 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6419 instruction to reflect change in re_assemble_*.
6421 2000-05-18 Jeffrey A Law (law@cygnus.com)
6423 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6424 build PA64 ELF tools.
6425 * configure: Rebuilt.
6427 2000-05-17 Alan Modra <alan@linuxcare.com.au>
6429 * Makefile.am: Regenerate dependencies.
6430 * Makefile.in: Regenerate.
6432 2000-05-15 Nick Clifton <nickc@cygnus.com>
6434 * config/tc-arm.c (struct asm_psr): Add boolean field
6435 distinguishing between CSPR and SPSR. Rename 'number' field
6437 (psrs): Rearrange contents to match new asm_psr structure.
6438 (arm_psr_parse): Move next to psr_required_here. Make it
6439 return an asm_psr structure.
6440 (psr_required_here): Use asm_psr structure returned by
6442 (do_msr): Reorganise to allow psr_required_here to be called
6444 (md_undefined_name): Mark 'name' parameter as unused, since
6445 the COFF target does not use it.
6447 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6449 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6451 * config/te-aux.h: Likewise.
6452 * config/te-dpx2.h: Likewise.
6453 * config/te-go32.h: Likewise.
6454 * config/te-hp300.h: Likewise.
6455 * config/te-hppa.h: Likewise.
6456 * config/te-i386aix.h: Likewise.
6457 * config/te-ic960.h: Likewise.
6458 * config/te-interix.h: Likewise.
6459 * config/te-nbsd532.h: Likewise.
6460 * config/te-pc532mach.h: Likewise.
6461 * config/te-ppcnw.h: Likewise.
6462 * config/te-psos.h: Likewise.
6463 * config/te-sparcaout.h: Likewise.
6464 * config/te-sun3.h: Likewise.
6465 * config/te-sysv32.h: Likewise.
6467 2000-05-14 Alan Modra <alan@linuxcare.com.au>
6469 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6470 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6471 and sign extend without an if statement.
6472 (build_bytes): Likewise.
6474 2000-05-14 Kazu Hirata <kazu@hxi.com>
6476 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6477 X_add_symbol L_32 case.
6479 2000-05-14 David O'Brien <obrien@FreeBSD.org>
6481 * config/te-freebsd.h: New file.
6483 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6485 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6486 bindtextdomain): Replace defines with those from intl/libgettext.h
6487 to quieten gcc warnings.
6489 * NEWS: Mention x86 .arch and -q.
6491 * config/tc-i386.c (quiet_warnings): New.
6492 (md_assemble): Use quiet_warnings.
6493 (md_parse_option): Set quiet_warnings from -q.
6494 (md_show_usage): Mention -q, delete -m.
6495 (flag_do_long_jump): Delete.
6496 (md_parse_option): Remove -m.
6497 (md_show_usage): Remove -m.
6498 (md_create_long_jump): Remove useless flag_do_long_jump code.
6500 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6501 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6503 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6504 Alexander Sokolov <robocop@netlink.ru>
6506 * doc/c-i386.texi (i386-Arch): New section.
6507 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6509 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6510 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6511 architecture has been given and is not 486.
6512 (set_cpu_arch): New.
6513 (md_pseudo_table): Add .arch.
6514 (md_assemble): Warn if cpu architecture has been given and an
6515 unsupported instruction.
6517 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6518 Move operand_types bit defines after relevant template field.
6519 (template): Add cpu_flags.
6523 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6525 * config/tc-mn10300.h (md_end): Define.
6526 (mn10300_finalize): Declare.
6527 * config/tc-mn10300.c: Include dwarf2dbg.h.
6528 (debug_line): Define.
6529 (md_assemble): Generate dwarf2 line info.
6530 (mn10300_finalize): New function. Finalize dwarf2 info.
6532 2000-05-11 Ulf Carlsson <ulfc@engr.sgi.com>
6534 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6535 external version of the relocation for weak symbols.
6537 2000-05-08 David Mosberger <davidm@hpl.hp.com>
6539 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6540 frame size in units of 16 bytes, as required per SW Conventions manual.
6541 (output_unw_records): Output info-block header as a dword to get
6544 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6546 * as.h: #include "file", not <file> on files from ../include.
6547 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6548 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6549 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6550 (tc_coff_symbol_emit_hook): Ditto.
6551 (OPTCOUNT): Cast to int to avoid compiler warning.
6552 (md_begin): Fix signed/unsigned warnings.
6554 2000-05-08 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6556 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6557 ABRANCH LONG case for a conditional branch on a 68000.
6558 (md_estimate_size_before_relax): Likewise. Also handle
6559 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6560 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6561 PC-relative on all CPUs.
6562 (md_estimate_size_before_relax): Likewise.
6564 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6566 * as.c (parse_args): Just mention current year in printed
6569 2000-05-03 J.T. Conklin <jtc@redback.com>
6571 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
6573 (md_parse_option): Recognize -m7400.
6575 2000-05-03 Ian Lance Taylor <ian@zembu.com>
6577 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6578 don't permit lp to become less than the words array.
6580 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
6582 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6583 Fix little-endian case.
6585 2000-05-03 David O'Brien <obrien@NUXI.com>
6587 * as.c (parse_args): Update copyright.
6589 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6591 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
6592 for the .bss section too.
6594 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6596 * configure.in: Set em=linux for hppa-*-linux.
6597 * configure: Regenerate.
6598 * doc/Makefile.in: Regenerate with correct automake.
6600 * frags.c (frag_grow): Sanity check chunk_size.
6602 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6603 * config/obj-som.h: Likewise.
6604 * config/obj-ieee.h: Likewise.
6606 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6608 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6609 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6610 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6611 (pa_ip): low_sign_unext now returns via function value. Use
6612 re_assemble_* instead of dis_assemble_* and
6613 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6615 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6616 (md_section_align, md_parse_option, md_show_usage,
6617 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6618 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6619 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6620 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6621 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6623 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6624 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6625 outside of switch. Correct mask and shifting errors in case 10
6626 and case -11. In case 21, compare against signed range to suit
6627 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6628 case 17 and case 22, use offsetT variable to properly check range.
6629 Use re_assemble_* here too.
6630 (evaluate_absolute): Change type of value to offsetT. Call
6631 hppa_field_adjust to do the work for us.
6632 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6633 (pa_parse_cmpib_64_cmpltr): Ditto.
6634 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6635 of i to unsigned int.
6636 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6637 (pa_end_of_source): Return type is void.
6639 2000-05-01 Catherine Moore <clm@cygnus.com>
6641 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6643 2000-05-01 Denis Chertykov <denisc@overta.ru>
6645 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6646 More comments added.
6647 (md_begin): Removed "construct symbols for each register name".
6648 Because register names conflicts with GCC generated function
6650 (avr_operand): Now constant numbers can be used as a register
6651 identifiers (0 as r0, 31 as r31).
6652 (md_assemble): use skip_space () before parsing instruction
6655 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6657 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6658 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6659 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6660 * configure: Regenerate.
6662 2000-04-29 Andreas Jaeger <aj@suse.de>
6664 * as.h: Correctly check GCC version.
6666 2000-04-26 David O'Brien <obrien@FreeBSD.org>
6668 * doc/as.1: Fix unbalanced brackets.
6670 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6672 (line_comment_chars): Set to '/' if TE_FreeBSD.
6674 2000-04-25 Jeffrey A Law (law@cygnus.com)
6676 * configure.in: Configury support for PA64 (currently disabled).
6677 * configure: Rebuilt.
6679 2000-04-25 Machida Hiroyuki <machida@sm.sony.co.jp>
6681 * config/tc-mips.c (s_change_sec): Use record_alignment, not
6682 bfd_set_section_alignment.
6684 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6686 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6689 2000-04-24 Nick Clifton <nickc@cygnus.com>
6691 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6692 * doc/as.texinfo (Align): Include arm and strongarm in list of
6693 targets that have the second form of the behaviour of the .align
6696 2000-04-24 Mark Klein <mklein@dis.com>
6698 * config/obj-som.c: Terminate obj_pseudo_table.
6700 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6702 * as.c (parse_args): Allow md_parse_option to override -a listing
6704 * config/obj-coff.c (add_lineno): Change type of offset parameter
6705 from "int" to "bfd_vma."
6706 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6707 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6708 (ppc_change_csect): Align correctly for XCOFF64.
6709 (ppc_machine): New function, which discards "ppc_machine" line.
6710 (ppc_tc): Cons for 8 when code is 64 bit.
6711 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6713 (md_parse_option): Handle -a64 and -a32.
6715 * config/tc-ppc.h (TARGET_MACH): Define.
6716 (TARGET_FORMAT): Move to function.
6717 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6719 2000-04-23 Denis Chertykov <denisc@overta.ru>
6721 * config/tc-avr.c: New AVR_ISA_ defined.
6722 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6723 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6724 for `fmul', `movw' and `lpm R,Z' instructions.
6725 (avr_operands): Warn if current opcode is a two-word instruction
6726 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6727 (avr_opcodes): New commands added.
6728 (REGISTER_P): Check 'a' and 'v' constraint letters.
6729 (mcu_types): New MCU added.
6731 2000-04-22 Timothy Wall <twall@cygnus.com>
6733 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6735 (operand_match): Conditionally insert default bit values for IMMU9.
6737 2000-04-14 Matthew Green <mrg@cygnus.com>
6739 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6740 * configure: Rebuilt.
6742 2000-04-21 Jeffrey A Law (law@cygnus.com)
6743 Jason Eckhardt <jle@cygnus.com>
6745 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
6747 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6748 Added handling of new operand types l,y,&,fe,fE,fx.
6750 2000-04-21 Richard Henderson <rth@cygnus.com>
6751 David Mosberger <davidm@hpl.hp.com>
6752 Timothy Wall <twall@cygnus.com>
6753 Andrew MacLeod <amacleod@cygnus.com>
6754 Jim Wilson <wilson@cygnus.com>
6756 * Makefile.am (CPU_TYPES): Add ia64.
6757 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
6758 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6759 * Makefile.in: Rebuild.
6760 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6761 * configure: Rebuild.
6762 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6763 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6764 * expr.c (expr): Handle md_optimize_expr.
6765 * read.c (LEX_HASH): Add comment.
6766 * config/tc-ia64.c, config/tc-ia64.h: New files.
6768 2000-04-21 Richard Henderson <rth@cygnus.com>
6770 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6771 bundling a non-delayed branch type instruction.
6773 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
6775 * config/tc-mn10300.c (HAVE_AM30): Define.
6776 (md_assemble): Use it.
6778 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6780 * config/obj-elf.c (obj_elf_change_section): Check for changed
6783 * Makefile.am: (CPU_MULTI_VALID): Remove.
6784 (MULTI_CPU_TYPES): Define.
6785 (MULTI_CPU_OBJ_VALID): Define.
6786 (DEPTC): Use the above.
6787 (DEPOBJ): Same here.
6789 Regenerate dependencies.
6790 * Makefile.in: Regenerate.
6792 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6794 * Makefile.am (YACC, LEX): Get them from configure.
6796 2000-04-18 H.J. Lu (hjl@gnu.org)
6798 * config/tc-i386.c (offset_in_range): Use addressT instead of
6799 bfd_vma for non-bfd assemblers.
6801 2000-04-17 Alan Modra <alan@linuxcare.com.au>
6803 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6804 doesn't give spurious errors.
6806 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6808 * as.h (SEEK_SET): Define if undefined.
6810 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6812 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6813 constants, and don't assume offsetT is 32 bits.
6815 2000-04-12 Andrew Cagney <cagney@b1.cygnus.com>
6817 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6818 (md_pcrel_from_section): Add prototype.
6819 (d10v_fix_adjustable): Add prototype.
6820 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6822 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6824 2000-04-12 Nick Clifton <nickc@cygnus.com>
6826 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6827 symbol in frag chain.
6829 2000-04-10 Alan Modra <alan@linuxcare.com.au>
6831 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6832 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6833 (fits_in_signed_word, smallest_imm_type): Ditto.
6834 (md_assemble): Use an offsetT var to hold offsetT values, not a
6836 (offset_in_range): New.
6837 (md_assemble): Use it.
6838 (md_convert_frag): Change type of target_address, opcode_address,
6839 and displacement_from_opcode_start to offsetT.
6840 (md_create_short_jump): Change type of offset to offsetT.
6841 (md_create_long_jump): Ditto.
6842 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6843 (md_chars_to_number): Remove.
6844 (output_invalid): Remove duplicate prototype.
6846 2000-04-09 Nick Clifton <nickc@cygnus.com>
6848 * Makefile.am (CPU_TYPES): Add 'avr'.
6849 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6850 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6852 * Makefile.in: Regenerate.
6854 * doc/as.texinfo: Add M32R documentation.
6856 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6858 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6859 --enable-build-warnings option.
6860 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6861 * Makefile.in, configure: Re-generate.
6863 2000-04-07 Nick Clifton <nickc@cygnus.com>
6865 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6866 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6867 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6868 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6869 (arm_force_relocation): Force relocations for
6870 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6872 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
6874 * config/tc-sh.c (get_operands): There's no third operand if the
6875 first operand is an immediate.
6877 2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
6879 * config/tc-sh.c (immediate): Delete.
6880 (sh_operand_info): Add immediate member.
6881 (parse_reg): Use A_PC for pc.
6882 (parse_exp): Add second argument 'op'. All callers changed.
6883 (parse_at): Expect pc to be coded as A_PC.
6884 Use immediate field in *op.
6885 (insert): Add fourth argument 'op'. All callers changed.
6886 (build_relax): Add second argument 'op'. All callers changed.
6887 (insert_loop_bounds): New function.
6888 (build_Mytes): Remove DISP_4.
6889 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6890 (assemble_ppi): Use immediate field in *operand.
6891 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6892 (md_apply_fix): Likewise.
6893 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6895 2000-04-05 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6897 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6899 2000-04-04 Hans-Peter Nilsson <hp@axis.com>
6901 * internals.texi (CPU backend): Document
6902 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6904 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6906 * po/gas.pot: Regenerate.
6908 * as.c (show_usage): Restore translated part of bug string.
6909 * gasp.c (show_usage): Likewise.
6911 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6912 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6913 than move-if-change.
6914 (DEP1): Modify for "gcc -MM".
6918 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6919 Update dependencies.
6920 * Makefile.in: Regenerate.
6922 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
6924 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6925 (md_begin): Likewise.
6926 (HAVE_AM33): New macro.
6927 (md_assemble): Use it. Match r_regs and xr_regs only if
6930 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6932 * as.h: #include "bin-bugs.h"
6933 * as.c (show_usage): Use REPORT_BUGS_TO.
6934 * gasp.c: #include "bin-bugs.h"
6935 (show_usage): Use REPORT_BUGS_TO.
6937 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6939 2000-04-03 Hans-Peter Nilsson <hp@axis.com>
6941 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6942 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6945 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6947 * config/tc-i386.c (i386_immediate): Don't assume a constant
6948 immediate is necessarily 16 bits when in 16 bit code mode.
6949 (md_assemble): Instead set guess_suffix here after we have checked
6952 2000-04-02 Richard Henderson <rth@cygnus.com>
6954 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6955 quantities. Correct right shift sign extension.
6956 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6957 32-bit value when shifting into place.
6959 2000-04-01 Ian Lance Taylor <ian@zembu.com>
6961 * app.c: Add ATTRIBUTE_UNUSED as needed.
6962 * config/tc-ppc.c: Likewise.
6963 (ppc_size): Make unsigned long.
6964 (ppc_insert_operand): Add casts to avoid warnings.
6966 2000-03-31 Nick Clifton <nickc@cygnus.com>
6968 * config/tc-d10v.h (md_flush_pending_output): Define.
6970 2000-03-29 Nick Clifton <nickc@cygnus.com>
6972 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6973 segment. Works for both BFD_ASSEMBLER and others.
6974 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6976 2000-03-29 Nick Clifton <nickc@cygnus.com
6978 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6980 2000-03-28 Alan Modra <alan@linuxcare.com.au>
6982 * listing.c (LISTING_LHS_WIDTH): Default depends on
6984 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6986 2000-03-27 Ian Lance Taylor <ian@zembu.com>
6988 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6991 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6993 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6995 * config/tc-avr.c (mcu_types): Add missing initialiser.
6996 (md_pcrel_from_section): Add prototype.
6997 (avr_operand): Remove redundant test of unsigned < 0.
6998 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
7000 2000-03-27 Denis Chertykov <denisc@overta.ru>
7002 * config/tc-avr.c: New file for AVR support.
7003 * config/tc-avr.h: Likewise.
7004 * configure.in: Add AVR support.
7005 * configure: Regenerate.
7007 2000-03-26 Timothy Wall <twall@cygnus.com>
7009 * gasp.c (macro_op): Add new argument to check_macro call.
7010 Macro structure definitions moved to macro.h
7011 * sb.h: Add argument to prototype for input_scrub_include_sb.
7012 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
7013 nesting checks with an additional flag.
7014 (struct input_save): Add flag to indicate whether current sb
7015 should be checked for proper macro/conditional nesting.
7016 (input_scrub_push/pop): Save/restore nest check flag.
7017 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
7019 * macro.c (check_macro): Allow caller to retrieve parsed macro
7020 information if a pointer is provided. This information may be
7021 used by the new macro hooks.
7022 * macro.h: Update prototype for check_macro. Macro struct
7023 definitions moved here from macro.c/gasp.c.
7024 * read.c (read_a_source_file): Add parameter to check_macro call,
7025 and pass macro info to the macro hook, if defined.
7026 (input_scrub_insert_line): New. Allow insertion of a line of
7027 characters into the input stream.
7028 (input_scrub_insert_file): New. Allow insertion of an arbitrary
7029 file into the input stream.
7030 (s_include): Use input_scrub_insert_file.
7031 * internals.texi: Document new macro hooks.
7032 * as.h: New prototypes added.
7034 2000-03-26 Alan Modra <alan@linuxcare.com.au>
7036 * config/tc-i386.c: Don't start any as_bad or as_warn message with
7037 an initial capital letter.
7038 (i386_index_check): Reindent.
7040 2000-03-19 Nick Clifton <nickc@cygnus.com>
7042 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
7045 2000-03-17 Thomas de Lellis <tdel@windriver.com>
7047 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
7048 instruction operand bad if Rd > 7 when generating
7049 thumb instructions. Prevents for example,
7050 "adr r12,label" from silently failing and generating
7051 the wrong instruction.
7053 2000-03-17 Nick Clifton <nickc@cygnus.com>
7055 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
7056 that have a destingation >= 0x400000.
7057 Fix compile time warning messages.
7059 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7061 * config/tc-sh.c (md_begin): When encountering insn that are
7062 not supported by the current arch, only change the name if
7063 its contents are the same as prev_name.
7064 (get_specific): If the the architecture doesn't match, fail.
7066 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7068 * config/tc-sh.c (IDENT_CHAR): Define.
7069 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
7070 matching back where it came from.
7072 2000-03-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7074 * config/tc-sh.c (md_show_usage): Add description of -dsp.
7076 2000-03-15 Jonathan Larmour <jlarmour@redhat.co.uk>
7078 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
7081 2000-03-15 Kazu Hirata <kazu@hxi.com>
7083 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
7085 2000-03-13 Hans-Peter Nilsson <hp@axis.se>
7087 * expr.c (operand) [case 'f']: When testing if '0f' can start a
7088 floating-point-number, make sure 'f' is in FLT_CHARS.
7090 2000-03-11 Hans-Peter Nilsson <hp@axis.se>
7092 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
7093 (s_lcomm_internal): Use it.
7094 * doc/internals.texi (CPU backend): Document it.
7095 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
7098 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7100 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
7103 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
7104 implementation doesn't have special handling for switch
7106 (macro_build): Allow for code in sections other than .text.
7108 (mips_ip): Likewise.
7109 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
7110 Don't perform relocs if we will be outputting them.
7111 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
7112 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
7115 2000-03-09 Catherine Moore <clm@cygnus.com>
7117 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
7118 relocation type based on the entry in the fixup structure.
7119 Put S_IS_EXTERN processing back in.
7121 2000-03-08 H.J. Lu (hjl@gnu.org)
7123 * Makefile.am (install-exec-tooldir): Depend on
7124 install-exec-bindir for parallel make.
7125 * Makefile.in: Regenerated.
7127 2000-03-06 Nick Clifton <nickc@cygnus.com>
7129 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
7131 (md_parse_option): Parse -m32r command line switch - disable m32rx
7133 (md_show_usage): Document new option.
7135 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
7136 * doc/Makefile.in: Regenerate.
7137 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
7139 2000-03-02 Michael Meissner <meissner@redhat.com>
7141 * config/tc-d30v.c (check_range): Remove code that incorrectly
7142 sign extended values where bits < 32.
7144 2000-03-02 H.J. Lu (hjl@gnu.org)
7146 * configure.in: Support --enable-targets=all on ia32.
7147 * configure: Regenerated.
7149 2000-03-01 Nick Clifton <nickc@cygnus.com>
7151 * gasp.c (do_align): Remove bogus check of alignment value.
7153 2000-02-27 Thomas de Lellis <tdel@windriver.com>
7155 * config/obj-elf.c (elf_frob_symbol): Remove code which when
7156 TC_PPC was defined forced the type of a symbol with no other type
7159 2000-02-27 Hans-Peter Nilsson <hp@axis.com>
7161 * doc/internals.texi (CPU backend): Mention that
7162 line_separator_chars do not break up comments. Fix typos for
7163 LEX_AT and LEX_NAME descriptions. Document operands for
7164 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
7165 description of md_create_short_jump usage. Document argument for
7166 md_undefined_symbol.
7168 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7170 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
7171 (md_parse_option): Handle it.
7172 (md_show_usage): Document it.
7174 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7176 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
7177 opcode, for the instruction `pal19'. From Andrea Arcangeli
7180 2000-02-26 Alan Modra <alan@spri.levels.unisa.edu.au>
7182 * config/tc-i386.c (i386_immediate): Move constant operand sizing
7184 (md_assemble): To here, before template operands are matched.
7185 Also ensure a constant immediate is sign extended when we know the
7186 size is at most 16 bits. This is to catch cases like "add
7187 $0xffc0,%ax" where we don't know the size, and thus that the
7188 immediate can be represented as Imm8S until after parsing the
7190 (i386_displacement): Similarly sign extend 16 bit constant
7192 (md_assemble): Relax 16-bit jump constant range check to suit sign
7193 extended displacements.
7195 2000-02-26 Andreas Jaeger <aj@suse.de>
7197 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
7199 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7201 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
7202 call operands when intel_syntax.
7203 (intel_float_operand): Return 2 for "fi...".
7204 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
7205 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
7206 earlier "SHORT" change.
7207 (md_assemble): When determining suffix from Regs, exclude
7210 2000-02-24 Nick Clifton <nickc@cygnus.com>
7212 * configure: Add arm-wince, mips-pe and sh-pe targets.
7213 * configure: Regenerate.
7215 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
7217 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
7218 "pe-mips" for the mips-pe target.
7220 * config/tc-arm.c (insns): Change displacement encoded in BL
7221 and B instructions if the target port is arm-wince.
7222 (do_ldst): Do not bias the relocation offset if the target
7224 (md_pcrel_from): Add in missing relocation offset bias if the
7225 target os arm-wince.
7227 * config/tc-mips.c (mips_target_format): Support COFF flavour.
7228 (md_begin): Disable -G support for mips-pe target.
7229 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
7230 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
7233 * config/tc-sh.c (md_begin): sh-pe target is little endian.
7234 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
7235 assembler, just set the alignment to 4.
7237 * config/te-wince-pe.h: New file for WinCE targets. Define
7240 2000-02-25 Alan Modra <alan@spri.levels.unisa.edu.au>
7242 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
7243 string instructions.
7244 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
7245 (i386_intel_memory_operand): After finding a segment override,
7246 check again for no `[' before looking for a displacement. Bomb if
7247 more than one displacement rather than silently discarding the
7248 second and subsequent ones. Free strings malloc'd by
7249 build_displacement_string.
7251 2000-02-24 Catherine Moore <clm@cygnus.com>
7253 * config/obj-som.c (obj_pseudo_table): Add "weak".
7254 (obj_som_weak): New routine.
7256 2000-02-24 Alan Modra <alan@spri.levels.unisa.edu.au>
7258 * config/tc-i386.c (union i386_op): New.
7259 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
7260 Throughout file replace occurences of disps[n], imms[n], regs[n]
7261 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
7262 intel mode operand swapping. Add assert in regKludge and
7263 fake_zero_displacement code. Test i.types[n] when outputting
7264 displacements and immediates. Combine output of Disp16 with
7266 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
7267 when in intel mode by (not) reversing fsub and fdiv operands
7268 before the template search. This fails for single operand
7269 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
7270 undefined. Instead fix the base_opcode after we've found the
7271 template. Move base_opcode xor with found_reverse_match from
7272 opcode output code to before this fix so we test for the correct
7274 (md_assemble): Don't use strcmp when deciding to ignore the suffix
7275 check in intel mode. Instead compare opcodes.
7277 * config/tc-i386.h (TC_RELOC): Delete.
7278 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
7279 with equivalent call to reloc.
7281 * as.h (flag_m68k_mri): Move declaration after target include, and
7282 only declare when TC_M68K defined. Define as zero otherwise.
7283 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
7284 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
7285 Define as zero otherwise.
7286 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
7287 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
7288 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
7289 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
7290 testing whether defined.
7291 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
7292 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
7293 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
7294 rather than testing whether defined.
7295 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
7296 (parse_mri_cons): Declare and use only when TC_M68K.
7297 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
7298 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
7299 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
7301 * NEWS: Mention IBM 370 support.
7303 2000-02-23 Richard Henderson <rth@cygnus.com>
7305 * config/tc-i386.c (md_assemble): When swapping operands for
7306 intel_syntax, assume everything that's not Imm or Disp is a
7309 2000-02-23 Linas Vepstas <linas@linas.org>
7311 * config/tc-i370.c, config/tc-i370.h: New files.
7312 * Makefile.am: Add support for Linux/IBM 370.
7313 * configure.in: Likewise.
7314 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
7315 * config/obj-elf.c: Include elf/i370.h
7316 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
7318 * Makefile.in: Regenerate.
7319 * configure: Regenerate.
7321 * doc/c-i370.texi: New file.
7322 * doc/all.texi: Include it.
7323 * doc/as.texinfo: And here.
7324 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
7325 * doc/Makefile.in: Regenerate.
7327 2000-02-19 Michael Meissner <meissner@redhat.com>
7329 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
7330 determine if an instruction can be used in parallel with an ADDppp
7331 or SUBppp instruction.
7333 2000-02-22 Andrew Haley <aph@cygnus.com>
7335 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
7337 2000-02-22 Andrew Haley <aph@cygnus.com>
7339 * config/tc-mips.c (mips_gp32): New variable.
7340 (macro_build) Use mips_gp32.
7342 (md_longopts): Add "-mgp32" and "-mgp64".
7343 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
7345 (OPTION_M7900): Change offset
7346 (OPTION_NO_M7900): Ditto.
7348 2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7350 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
7351 warning, and bump it to 1.
7353 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7355 From Brad Lucier <lucier@math.purdue.edu>:
7356 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
7359 2000-02-21 Catherine Moore <clm@cygnus.com>
7361 * config/tc-mips.c (MF_HILO_INSN): Define.
7362 (mips_7000_hilo_fix): Declare.
7363 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
7364 (md_parse_option): Check for 7000_HILO_FIX options.
7365 (OPTION_M7000_HILO_FIX): Define.
7366 (OPTION_NO_M7000_HILO_FIX): Define.
7367 * doc/c-mips.texi (-mfix7000): Describe.
7369 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7371 * listing.c (print_lines): Remove unused variable `end'.
7373 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
7374 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
7375 reloc_type when BFD_ASSEMBLER.
7376 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
7377 reloc_type when BFD_ASSEMBLER. Move common code out of switch
7378 statement and quell signed vs. unsigned comparison warning.
7380 2000-02-18 Nick Clifton <nickc@cygnus.com>
7382 * config/tc-d10v.c (find_opcode): Add a symbol's value to
7383 the computed frag offset, rather than overwriting it.
7385 2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
7387 * config/tc-sh.c ("elf/sh.h"): Include.
7388 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
7389 (md.begin): Initialize target_arch.
7390 Only include opcodes in has table that match selected architecture.
7391 (parse_reg): Recognize register names for sh-dsp.
7392 (parse_at): Recognize post-modify addressing.
7393 (get_operands): The leading space is now optional.
7394 (get_specific): Remove FDREG_N support. Add support for sh-dsp
7395 arguments. Update valid_arch.
7396 (build_Mytes): Add support for SDT_REG_N.
7397 (find_cooked_opcode): New function, broken out of md_assemble.
7398 (assemble_ppi, sh_elf_final_processing): New functions.
7399 (md_assemble): Use find_cooked_opcode and assemble_ppi.
7400 (md_longopts, md_parse_option): New option: -dsp.
7401 * config/tc-sh.h (elf_tc_final_processing): Define.
7402 (sh_elf_final_processing): Declare.
7404 2000-02-11 Jeffrey A Law (law@cygnus.com)
7406 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7407 the unwinder subspace. Save the current seg/subseg before creating
7410 2000-02-10 Nick Clifton <nickc@cygnus.com>
7412 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
7413 little endian targets.
7414 (INST_BYTE1): Redefine to handle big and little endian
7416 (cpu_type): New type: Select between M340 and M210.
7417 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
7418 instructions of the M340.
7419 (md_assemble): Add support for the MULSH and OPSR classes of
7421 (md_atof): Add support for little endian targets.
7422 (md_parse_option): Add support for -EL, -EB and -mcpu command
7424 (md_convert_frag): Add support for little endian targets.
7425 (md_apply_fix3): Add support for little endian targets.
7426 (md_number_to_chars): Add support for little endian targets.
7428 2000-02-10 Timothy Wall <twall@redhat.com>
7430 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7431 defined, use it to verify the symbol just read should be a label.
7433 2000-02-10 Timothy Wall <twall@redhat.com>
7435 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7436 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7437 around colons when KEEP_WHITE_AROUND_COLON is defined.
7438 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7439 and KEEP_WHITE_AROUND_COLON.
7441 2000-02-08 Timothy Wall <twall@redhat.com>
7443 * read.c (s_rept): Call do_repeat, which abstracts the repeat
7445 (do_repeat): New. Abstract repeat logic so that a "break" can be
7447 (end_repeat): New. Provide support for a "break" out of the
7449 * read.h: Add prototypes for new functions.
7451 2000-02-08 Timothy Wall <twall@redhat.com>
7453 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7454 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7455 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
7458 2000-02-08 Timothy Wall <twall@redhat.com>
7460 * read.c: Added elseif to directives table.
7461 * read.h: Added prototype for s_elseif.
7462 * doc/as.texinfo: Added description for elseif.
7463 * cond.c (s_elseif): New function
7465 2000-02-04 Timothy Wall <twall@redhat.com>
7467 * listing.c (print_lines): Remove conditionals causing bug in
7470 2000-02-03 Timothy Wall <twall@cygnus.com>
7472 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7474 * frags.c (frag_new): Calculate fr_fix in octets
7475 (frag_now_fix) Return offset as target address offset (bytes).
7476 (frag_now_fix_octets) New - Return offset in octets (8-bit
7478 * frags.h: Added prototype for frag_now_fix_octets().
7479 Distinguish between octets and bytes in field descriptions.
7480 * listing.c (calc_hex): Account for octets vs bytes when
7481 printing addresses/offsets.
7482 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7483 target is little-endian, print the octets in a word in big-endian
7484 order so that the display looks like a proper hexadecimal number,
7485 instead of having the octets reversed.
7486 * read.c (do_align): When recording alignment, alignment power
7487 should be in terms of target bytes (minimum addressible unit)
7489 (do_org) Convert ORG target address (byte) argument into an
7490 octet offset when generating a variable fragment.
7491 * symbols.c (resolve_symbol_value): Symbol final value
7492 converted to a target address offset (bytes) from its octet offset.
7493 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7494 offset (bytes) is adjusted by the frag offset (octets) converted
7496 (coff_frob_section) Section alignment power is in terms of bytes;
7497 convert it to an octet alignment power when calculating size (and
7498 size mask) in octets. Don't modify the section size in order to
7499 "align" it for TI COFF, since that format has a different method
7500 for storing alignment information.
7502 2000-02-01 Timothy Wall <twall@cygnus.com>
7504 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7505 entries, matching the way GCC generates them. If not escaped, the
7506 filename is encoded incorrectly.
7508 2000-01-31 Nick Clifton <nickc@cygnus.com>
7510 * config/tc-arm.c (reg_table): Add support for ATPCS register
7513 2000-01-31 Geoff Keating <geoffk@cygnus.com>
7515 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7517 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
7519 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7520 of a symbol when we really care about its value.
7522 2000-01-19 Chandra Chavva <cchavva@cygnus.com>
7524 * config/tc-mcore.c (md_assemble): Give warning message if
7525 operands passes to instruction are more than the spec.
7527 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7529 * config/tc-arm.c (armadjust_symtab): If the assembler is in
7530 Thumb mode but the label seen was not declared as '.thumb_func'
7531 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
7532 correct disassembly of Thumb code bounded by non function labels.
7534 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7536 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7537 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7539 * Makefile.in: Same here.
7542 * configure.in: Set bfd_gas for i386-aout when primary target
7543 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7544 we may need the primary te_file. Remove incorrect comment.
7546 * configure: Regenerate.
7548 * config/e-i386aout.c: New file.
7550 * as.c (USE_EMULATIONS): Move to before print_version_id.
7551 (struct emulation): Add i386aout.
7552 (show_usage): Split text strings. Reformat -a text. Add --em
7556 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7557 (aout_format_ops): New.
7560 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7561 preprocessor conditional and add aout USE_EMULATIONS tests.
7562 (read_a_source_file): Don't pass error strings to printf as
7566 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7568 (do_data): Same here.
7569 (process_file): And here.
7572 * symbols.c (colon): Rewrite "already defined" fatal message
7573 code for aout with USE_EMULATIONS.
7576 * config/obj-aout.c (OBJ_HEADER): Define.
7577 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
7579 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7580 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7582 (obj_aout_type): Expand S_SET_OTHER here too.
7583 (obj_read_begin_hook): Remove.
7584 (aout_pop_insert): New.
7585 (obj_aout_s_get_other): New.
7586 (obj_aout_s_get_desc): New.
7587 (aout_format_ops): New.
7590 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7591 gets aout_pseudo_table.
7592 (aout_pseudo_table): Declare.
7593 (obj_read_begin_hook): Define.
7596 * config/obj-coff.c (obj_pseudo_table): Rename to
7598 (coff_pop_insert): Use coff_pseudo_table.
7599 (coff_sec_sym_ok_for_reloc): Remove.
7600 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7601 and comment all zero entries and remove #if 0 code.
7604 * config/obj-coff.h (obj_pop_insert): Define.
7605 (coff_pseudo_table): Declare.
7608 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7609 s_get_size, s_set_size. Comment all zero entries.
7612 * config/obj-elf.c (elf_s_get_other): New function.
7613 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7614 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7615 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7617 (obj_elf_parse_section_letters): Don't pass error strings to
7618 printf as format arg.
7621 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7623 (elf_s_get_other): Declare.
7624 (S_GET_OTHER) Define as elf_s_get_other if not already
7626 (S_SET_OTHER): Only define when not already defined.
7627 (elf_obj_read_begin_hook): Declare.
7628 (obj_read_begin_hook): Define.
7629 (elf_obj_symbol_new_hook): Declare.
7630 (obj_symbol_new_hook): Define.
7633 * config/obj-multi.h: Add copyright header and protect against
7634 multiple inclusion. Add * to all function pointers.
7635 (OBJ_HEADER): If defined, include it rather than other defines
7637 (obj_frob_file_after_relocs): Test for NULL.
7638 (obj_symbol_new_hook): Here too.
7639 (obj_sec_sym_ok_for_reloc): And here.
7640 (S_GET_OTHER): Define.
7641 (S_GET_DESC): Define.
7642 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7643 (OBJ_MAYBE_ELF): Update comment.
7645 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7646 OBJ_AOUT preprocessor conditional and handle emulation by
7647 testing OUTPUT_FLAVOR.
7648 (i386_displacement): Here too.
7649 (md_section_align): Similarly here.
7650 (i386_target_format): Conditionally compile when more than one
7651 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7652 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7653 (i386_displacement): Here too.
7656 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7657 Define TARGET_FORMAT for aout only when not multi.
7660 * config/te-multi.h: Delete file as it's identical to te-generic.h
7662 2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
7664 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7665 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7668 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7670 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7673 2000-01-13 Clinton Popetz <cpopetz@cygnus.com>
7675 * config/tc-mips.c (mips_do_align): New function.
7676 * config/tc-mips.h (md_do_align): Define.
7678 2000-01-10 Philip Blundell <philb@gnu.org>
7680 * doc/c-arm.texi (ARM Options): Fix typo.
7681 (ARM-Chars): Correct description of `#'. Mention that `;' is a
7682 line separator for Linux.
7683 * doc/as.texinfo (Comments): Mention the ARM.
7685 2000-01-10 Philip Blundell <pb@futuretv.com>
7687 * configure.in (arm*-*-conix*): New target.
7688 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7690 * configure: Regenerate.
7692 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7694 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7695 (obj_elf_visibility): New function.
7697 * doc/as.texinfo (Visibility): New node: document visibility
7700 For older changes see ChangeLog-9899