3 * config/tc-ia64.c (errata_nop_necessary_p): Prototype.
4 (make_unw_section_name): Constify local variables.
6 * config/tc-ia64.c (has_suffix_p): New.
7 (note_register_values): Use it instead of strstr.
11 * config/tc-hppa.c (pa_ip): Handle new 'c' mode completers,
16 * config/tc-sparc.h (TC_PARSE_CONS_EXPRESSION): Define.
17 (sparc_cons): Provide prototype.
18 * config/tc-sparc.c (tc_gen_reloc): Handle BFD_RELOC_*_PCREL and
19 BFD_RELOC_SPARC_PLT{32,64}. Enumerate for which relocs
20 reloc->addend = fixp->fx_addnumber shouldn't be done instead of
21 enumarating for which pc relative ones it should be done.
22 (sparc_cons_special_reloc): New variable.
23 (sparc_cons): New function.
24 (cons_fix_new_sparc): Use sparc_cons_special_reloc.
25 * testsuite/gas/sparc/pcrel.s: New test.
26 * testsuite/gas/sparc/pcrel.d: Expected output.
27 * testsuite/gas/sparc/pcrel64.s: New test.
28 * testsuite/gas/sparc/pcrel64.d: Expected output.
29 * testsuite/gas/sparc/plt.s: New test.
30 * testsuite/gas/sparc/plt.d: Expected output.
31 * testsuite/gas/sparc/plt64.s: New test.
32 * testsuite/gas/sparc/plt64.d: Expected output.
33 * testsuite/gas/sparc/sparc.exp: Add pcrel, pcrel64, plt and plt64
39 * config/tc-mips.c (file_mips_gp32): Initialize to invalid value.
40 (file_mips_fp32): Likewise.
41 (md_begin): Compatibility handling for -mipsN option.
45 * config/tc-sh.c (parse_at): Reject @(r0) and @(r0,).
49 * config/tc-ppc.c (md_parse_option): Make -maltivec default
50 to generating PowerPC instructions.
54 * configure.in (mips-dec-netbsd*): Delete.
55 * configure: Regenerate.
57 * configure.in (arm-*-netbsdelf*): Add target.
58 * configure: Regenerate.
62 * config/tc-mips.h (TC_HANDLE_FX_DONE): Remove redundant
67 * configure.in (assign object format): Bug fix for setting
69 * configure: Regenerate.
73 * configure.in (m68k-*-netbsdelf*): New target.
74 (m68k-*-netbsd*): Also include ELF support.
75 (m68k-*-netbsdaout*): New alias for m68*-*-netbsd*.
76 * configure: Regenerate.
80 * gasp.c (main): Protoype.
84 * config/tc-alpha.c (alpha_handle_align): Encode unop with RB as $sp.
88 * cgen.c: Add prototype for queue_fixup.
89 (gas_cgen_parse_operand): Move initilisastion of errmsg to avoid
90 possible longjmp corruption.
91 * cgen.h: Add prototype for gas_cgen_md_operand.
95 * config/obj-elf.c (obj_elf_init_stab_section): References are
96 kept to section name strings. Don't alloca them!
100 * config/tc-d10v.c (get_operands): Mark OPERAND_PLUS after
101 OPERAND_ATSIGN as O_absent.
106 * configure.in: Add support for xstormy16.
107 * configure: Regenerated.
108 * Makefile.am: Add support for xstormy16.
109 * Makefile.in: Regenerated.
110 * config/tc-xstormy16.c: New file.
111 * config/tc-xstormy16.h: New file.
115 * tc-arm.c (do_arit, do_cmp, do_mov, do_ldst, do_ldstt, do_ldmstm)
116 (do_branch, do_swi, do_adr, do_adrl, do_empty, do_mul, do_mla)
117 (do_swap, do_msr, do_mrs, do_mull, do_ldstv4, do_bx, do_blx)
118 (do_bkpt, do_clz, do_lstc2, do_cdp2, do_co_reg2, do_smla, do_smlal)
119 (do_smul, do_qadd, do_pld, do_ldrd, do_co_reg2c, do_cdp, do_lstc)
120 (do_co_reg, do_fpa_ctrl, do_fpa_ldst, do_fpa_ldmstm, do_fpa_monadic)
121 (do_fpa_dyadic, do_fpa_cmp, do_fpa_from_reg, do_fpa_to_reg, do_mia)
122 (do_mar, do_mra, do_c_binops, do_c_binops_1, do_c_binops_2)
123 (do_c_binops_3, do_c_triple, do_c_triple_4, do_c_triple_5, do_c_quad)
124 (do_c_quad_6, do_c_dspsc, do_c_dspsc_1, do_c_dspsc_2, do_c_shift)
125 (do_c_shift_1, do_c_shift_2, do_c_ldst, do_c_ldst_1, do_c_ldst_2)
126 (do_c_ldst_3, do_c_ldst_4, do_branch25): Delete redundant argument,
128 (struct asm_opcode): Adjust parms field accordingly.
129 (md_assemble): Don't pass dummy second argument when calling worker
131 (build_arm_ops_hsh): Add prototype
136 * tc-arm.c (struct asm_opcode): Delete comp_suffix and flags. Add
137 cond_offset. Rename variants->variant.
138 (insns): Adjust for new format. Explicitly code each variant that
139 takes flags. Remove temporary instructions.
140 (struct arm_it): Remove redundant field suffix.
141 (s_flag, ldr_flags, str_flags, byte_flag, cmp_flags, ldm_flags)
142 (stm_flags, lfm_flags, sfm_flags, round_flags, fix_flags, except_flag)
144 (struct asm_flg): Delete.
145 (LONGEST_INST): Delete.
146 (V4_STR_BIT): Define.
147 (struct thumb_opcode): Rename variants->variant.
148 (do_empty): Renamed from do_nop.
149 (ldst_extend): Delete argument hwse. Split code for half-word and
150 signed byte instructions to ...
151 (ldst_extend_v4): ... here.
152 (ld_mode_required_here): Use ldst_extend_v4.
153 (do_ldrd): Simplify now that this is only called for ldrd. No
154 need to test for XScale, which was wrong anyway. Don't reject r12
155 as a target register. Add test that ldrd doesn't update an index
157 (do_pld): Don't allow post-indexed or write-back addressing modes.
158 Adjust call to ldst_extend.
159 (do_adr): Split code for adrl to ...
161 (do_cmp): No need to fold in COND_BIT.
162 (do_ldst): Simplify. Split code for ldrt/strt into do_ldstt. Split
163 code to handle half-word and signed byte instructions to ...
164 (do_ldstv4): ... here.
165 (do_ldstt): New function. Handle load/store with translate.
166 (do_ldmstm): Write feature modification bits directly into
168 (do_fpa_ldst): Remove suffix handling code.
169 (do_fpa_dyadic, do_fpa_monadic, do_fpa_from_reg): Likewise.
170 (do_fpa_ldmstm): Type of access is now held in inst.instruction.
171 (build_arm_ops_hsh): New function.
172 (md_begin): Call it. Don't build the ARM opcode directly.
173 (md_assemble): Simplify ARM instruction handling.
177 * tc-sh.c (parse_at): Corrected incorrect op->type selection due
182 * config/tc-d10v.c (write_2_short): Don't skip dummy fixups, so
183 that we can tell which operand refers to the insn put in the L
184 container and mark it as such, so that the relocation type can be
189 * config/tc-mips.c (mips_cpreturn_offset): Better comment.
190 (load_register): Better error message. Cast away signedness
191 mismatches. Add casts needed for varargs.
192 (load_address): Replace checks of HAVE_64BIT_ADDRESS with dbl.
193 Remove superfluous casts.
194 (macro): Cast away signedness mismatches. Remove superfluous casts.
195 (s_cpload): Fix wrong comment.
196 (s_mips_weakext): Standardize output message.
197 (get_number): Likewise.
201 * config/tc-mips.c (append_insn): Add jump address range overflow
206 * config/tc-mips.c (md_parse_option): Fix comment. Allow -mabi option
208 (show): Document -mabi option.
212 * config/tc-arm.c (md_parse_option): Only clear cpu part when
213 specifying 'xscale' cpu (don't change the fpu part).
217 * config/tc-d10v.c (find_opcode): Reject SP operand if
218 OPERAND_NOSP flag is present.
222 * config/tc-mips.c (tc_gen_reloc): One missed BFD_RELOC_MIPS_GPREL.
226 * config/tc-mips.c (macro_build): Replace BFD_RELOC_MIPS_GPREL
227 by BFD_RELOC_GPREL16.
228 (load_address): Likewise.
230 (md_apply_fix): Likewise. Replace BFD_RELOC_MIPS_GPREL32 by
232 (s_gpword): Replace BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32.
233 (tc_gen_reloc): Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
234 *config/tc-mips.h: Replace BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16.
238 * config/tc-d10v.c (get_operands): Emit OPERAND_PLUS for
241 * config/tc-d10v.c (find_opcode): Reject non-SP operand if
246 * tc-sh.c (parse_at): Removed case-sensitivity of index register
251 * write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
252 in reloc if it has non-zero addend.
253 * config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
254 * config/tc-sparc.c (md_apply_fix3): Likewise.
258 * as.c (parse_args): Call md_after_parse_args if defined.
259 * config/tc-ia64.h (md_after_parse_args): Define.
260 * config/tc-ia64.c (ia64_after_parse_args): Reject --gstabs.
261 * doc/internals.texi (CPU backend): Document md_after_parse_args.
265 * config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
266 * write.c (adjust_reloc_syms): Don't handle relocs against
267 SEC_MERGE section symbols specially.
268 (fixup_segment): Likewise.
272 * config/tc-mips.c (mips_need_elf_addend_fixup): New, extracted from...
273 (md_apply_fix3): ...here. Don't prevent the symbol value being
274 subtracted twice from GPREL addends.
275 (tc_gen_reloc): Add the symbol value to a GPREL addend if it was
276 subtracted by the previous function.
280 * config/tc-avr.c (md_apply_fix3): Fix typo introduced by
281 md_apply_fix3 change.
285 * config/tc-m88k.c (md_apply_fix3): Match local variable `val' to
286 usage after md_apply_fix3 cleanups.
290 * doc/c-mmix.texi: Use texinfo 4 features.
291 (MMIX-mmixal): Fix typo.
295 * config/tc-cris.c (md_apply_fix3): Cast value, not pointer, in
300 * stabs.c (stabs_generate_asm_lineno): Remember file and line number
301 from one call to the next, and eliminate consecutive duplicates
302 (thereby emitting only one line symbol per source line).
303 * dwarf2dbg.c (dwarf2_gen_line_info): Ditto.
307 * config/tc-m68k.c (md_apply_fix3): Change val back to a signed type.
311 * config/tc-hppa.c (md_apply_fix3): Fix a typo.
315 * config/tc-alpha.c (md_apply_fix3): Fix a typo.
319 * write.c (fixup_segment): Remove references to md_apply_fix and
321 * cgen.c, config/obj-coff.c, config/tc-*.c: Update all occurances
322 of md_apply_fix to md_apply_fix3.
323 Make all md_apply_fix3 functions void.
324 * cgen.h, config/obj-coff.h, tc-*.h: Remove all definitions of
325 MD_APPLY_FIX3 and TC_HANDLE_FX_DONE.
326 * doc/internals.texi: Update references to md_apply_fix3.
327 * tc.h: Update prototype for md_apply_fix3.
331 * config/tc-i386.h (md_end): Define.
332 (i386_elf_emit_arch_note): Declare.
333 (CpuUnknown): Delete.
334 * config/tc-i386.c (default_arch): Constify.
335 (smallest_imm_type): Remove CpuUnknown test.
336 (md_assemble): Don't bother checking cpu_arch_flags non-zero.
337 (i386_elf_emit_arch_note): New function.
339 * po/POTFILES.in: Regenerate.
343 * config/tc-mips.c (mips_ip): Re-allow %hi() op for non-ELF assembler.
347 * frags.c (frag_grow): Revert last change.
349 * dwarf2dbg.c (get_frag_fix): Align last frag size.
351 * config/tc-ppc.c (ppc_insert_operand): Pass (ppc_cpu | ppc_size)
353 (md_assemble): Likewise.
357 * frags.c (frag_grow): Use frag_make_room() to grow the
362 * config/tc-sparc.c (md_apply_fix3): Do not remove the symbol's
363 value from the addend for fixups against local symbols in
364 SEC_MERGE sections - it was not added in, in the first place.
368 * write.c (relax_segment): Convert symbol address into an octet
369 offset prior to adding to the frag address, which is an octet
370 offset. Add comments to that effect.
371 * config/tc-tic54x.c: Fix bugs causing tests to fail.
372 * config/tc-tic54x.h: Ditch PARAMS macro.
376 * config/obj-elf.c (obj_elf_version): Ensure terminating NUL is
377 put in note section. Use sizeof instead of hard-coded constants.
381 * config/tc-mips.c (support_64bit_objects): Define for OBJ_ELF only.
382 (md_longopts): Allow OPTION_MABI for ELF compilation only. RE-allow
383 OPTION_GP32, OPTION_GP64, OPTION_FP32 for non-ELF compilation.
384 Sort options a bit more logical.
385 (md_parse_option): Allow OPTION_32, OPTION_N32, OPTION_N64,
386 OPTION_MABI only for elf targets.
390 * config/tc-mips.c (set_at): Add cast needed for varargs.
391 (load_register): Likewise.
392 (macro): Likewise. Some code reformatting.
393 (macro2): Add cast needed for varargs.
394 (mips16_macro): Likewise.
398 * config/tc-mips.c (md_assemble): Remove superflous casts.
399 (append_insn): Likewise.
400 (mips16_macro_build): Likewise.
402 (mips16_ip): Likewise.
403 (s_cpload): Likewise.
404 (mips_relax_frag): Likewise.
408 * config/tc-mips.c (mips_abi_level): Move in front of
410 (mips_set_options): Add members gp32, fp32, abi.
411 (file_mips_gp32): New flag.
412 (file_mips_fp32): New flag.
413 (mips_opts): Initialize the new members.
416 (HAVE_32BIT_GPRS): Use the new values from mips_opts.
417 (HAVE_32BIT_FPRS): Likewise.
418 (HAVE_NEWABI): Likewise.
419 (HAVE_64BIT_OBJECTS): Likewise.
420 (md_begin): Likewise. Save default (file) values.
421 (md_parse_option): Use the new values from mips_opts.
422 (s_mipsset): Likewise. Fix logic to keep the ABI selection if
423 possible. Let .set mipsN work together with .set push/pop.
424 Enhance error messages.
425 (mips_elf_final_processing): Use file_mips_* for header processing.
429 * config/tc-avr.c (mcu_types): Update for new devices.
433 * doc/Makefile.am (POD2MAN): Use 'GNU Development Tools' for
435 * doc/Makefile.in: Rebuild.
436 * doc/as.texinfo: Do not put man SEEALSO in document;
437 Use @command for commands, @option for options; Reorganize usage
438 to clearly identify target specific options.
442 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.
446 * config/tc-mips.c (my_getSmallParser): Fix small parser bug.
450 * config/tc-s390.c (tc_s390_force_relocation): Force all relocations
451 that need the global offset table.
452 (md_apply_fix3): Add code to undo opertions done in fixup_segment
453 triggered by TC_FORCE_RELOCATION.
454 * config/tc-s390.h (TC_FORCE_RELOCATION): Replace macro code with
455 a call to function tc_s390_force_relocation.
456 (TC_FIX_ADJUSTABLE): Define.
460 * configure.in (mips-*-netbsd*): Add support for target.
461 * configure: Regenerate.
465 * configure.in (ALL_LINGUAS): Add 'fr'.
466 * configure: Regernate.
467 * po/fr.po: New file. Obtained from the translation project web
472 * tc-arm.c: Re-arrange prototypes by architecture.
473 (insns): Re-arrange instructions by archtitecture. Pld instruction
475 (tinsns): blx and bkpt are part of ARMv5T.
476 (do_fp_{ctrl,ldst,ldstm,dyadic,monadic,cmp,from_reg,to_reg}): Rename
477 to do_fpa_*. All callers changed.
479 * tc-arm.c (insns): Add two temporary instructions to handle
484 * config/tc-m68hc11.c (build_jump_insn): Allocate worst case storage
485 for bra/bsr and use frag_variant(), this ensure that the possible
486 16-bit BFD_RELOC_16 will be in the same frag.
490 * config/tc-mips.c (HAVE_32BIT_ADDRESSES): If compiling embedded
491 PIC code, assume pointers the same size as GPRs.
492 (macro): In M_LA_AB handling for embedded PIC code, support
493 "la $treg,foo-bar($breg)". In load/store handling
494 (label ld_st) support "<op> $treg,<sym>-<local_sym>($breg)"
495 which is used by the compiler for switch statements.
496 In load/store double multi-instruction macro handling
497 (label ldd_std) add a comment that no special handling
498 is currently done for embedded PIC.
499 (mips_ip): In 'o' (16-bit offset) case, only accept 16
504 General cleanup of feature definitions.
505 * tc-arm.c (ARM_EXT_LONGMUL, ARM_EXT_HALFWORD, ARM_EXT_THUMB): Delete.
506 (ARM_2UP, ARM_ALL, ARM_3UP, ARM_6UP): Delete.
507 (FPU_CORE, FPU_FPA10, FPA_FPA11, FPU_ALL, FPA_MEMMULTI): Delete.
508 (ARM_EXT_V{1,2,2S,3,3M,4,4T,5T,5ExP}): New defines.
509 (ARM_EXT_V{5,5E}): Synchronize with above.
510 (ARM_ARCH_V*): Define a complete set in terms of above features.
511 (ARM_{1,2,3,250,6,7,8,9,STRONG}): Define in terms of architecture.
512 (FPU_FPA_EXT_V[12]): Define.
513 (FPU_ARCH_FPE, FPU_ARCH_FPA): Define in terms of above.
515 (FPU_DEFAULT): Default to FPA.
516 (CPU_DEFAULT): For XScale, this is now just ARM_ARCH_XSCALE; for
517 Thumb, this is now ARM_ARCH_V5T.
518 (insns): Rework for new feature defines.
520 (opcode_select, do_ldst, md_begin, md_parse_option): Likewise.
524 * configure.in: Handle sh*eb-*-linux* and sh*-*-linux*.
525 * configure: Regenerate.
526 * Makefile.in: Regenerate.
527 * doc/c-sh.texi (SH Options): Added descriptions.
531 * configure.in: Update for MMIX port.
532 * Makefile.am: Ditto. Regenerate dependencies.
533 * Makefile.in: Regenerate.
534 * configure: Regenerate.
535 * config/tc-mmix.h, config/tc-mmix.c: New files.
536 * doc/Makefile.am (CPU_DOCS): Add c-mmix.texi
537 * doc/Makefile.in: Regenerate.
538 * doc/all.texi: @set MMIX.
539 * doc/as.texinfo: Ditto. Add MMIX gas manpage option overview.
541 * doc/c-mmix.texi: New file.
545 * config/tc-mips.c (hilo_interlocks, cop_interlocks): Make
546 these evaluate to true if mips_arch indicates SB-1.
550 * as.c (parse_args): Print the date as well for --version.
554 * config/tc-mips.c (md_show_usage): Print "sb1" for Broadcom
555 SB-1 CPU for consistency.
556 (mips_cpu_info_table): Tweak comment about SB-1.
560 * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
561 (cirrus_parse_offset): Likewise.
565 * config/tc-arm.c: Restore line_comment_chars.
569 * config/tc-arm.c (comment_chars): Remove semi-colon accidentally
574 * write.c (fixup_segment): Handle fixups for SEC_MERGE sections as
575 for undefined symbols.
579 * doc/as.texinfo (MIPS ISA options): Added accidentally
580 omitted "-mips64" option to list of options.
584 * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400,
585 -m7410, -m7450 and -m7455 options.
589 * config/tc-ppc.c (PPC_HA, PPC_HIGHERA, PPC_HIGHESTA): Simplify.
590 (ppc_size): Select PPC_OPCODE_64 if 64 bit.
591 (md_begin): Don't set ppc_size here.
592 (ppc_target_format): Test ppc_size as well as BFD_DEFAULT_TARGET_SIZE.
593 (md_shortopts): Constify.
594 (md_longopts): Likewise.
595 (md_longopts_size): Likewise.
596 (ppc_elf_suffix): Only allow 64-bit relocs when ppc_size specifies
598 (ppc_machine): Explain why this function is a nop.
602 * bit_fix.h: Comment typo fix.
603 * config/tc-mips.c: Likewise.
604 * config/tc-sh.c: Likewise.
605 * config/tc-arc.c (arc_code_symbol): Remove unnecessary test.
607 * configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
608 that autoheader doesn't duplicate config.in entries.
609 (DEFAULT_ARCH): Ditto.
610 * configure: Regenerate.
611 * config.in: Regenerate.
616 * config/tc-m68k.c (m68k_ip): Correct absolute jmp opcodes.
621 * config/tc-sh.c (shl): Remove.
623 (little): Remove shl handling. Emit error for endian mismatch.
624 (md_show_usage): Add description of -big.
625 (md_parse_option): Handle OPTION_BIG. Remove shl handling.
627 (md_pseudo_table): Add .big.
628 (md_longopts): Add -big.
629 (md_begin): Don't set target_big_endian here.
630 * config/tc-sh.h (TARGET_BYTES_BIG_ENDIAN): Remove.
631 (LISTING_HEADER, COFF_MAGIC, TARGET_FORMAT): Use target_big_endian.
633 * configure.in (endian): Default is big.
634 (sh-*-pe*): Little endian.
635 (cpu_type): Set sh for target sh*.
636 * configure: Regenerate.
640 * config/tc-mips.c (md_apply_fix): Preliminary handling of NewABI
645 * config/tc-arm.c: Replace CONST with const.
647 * cgen.c: Tidy up formatting.
651 * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455
652 flags, equivalent to -m7400. New -maltivec to enable AltiVec
653 instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable
654 64-bit and 32-bit BookE support, respectively. Change -m403 and
655 -m405 to set PPC403 option.
656 (md_show_usage): Adjust for new options.
657 * doc/all.texi: Set PPC.
658 * doc/as.texinfo: Add PPC support and pull in c-ppc.texi.
659 * doc/c-ppc.texi: New file.
660 * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi.
661 * doc/Makefile.in: Regenerate.
665 * read.c (s_bad_endr): New function. Issues a warning message
666 about a bad use of the .rept pseudo op.
667 (po_table[]): Add .endr.
668 * read.h: Prototype s_bad_endr.
670 * CONTRIBUTORS: Update contact email address.
674 * config/tc-alpha.c: Fix comment typos.
675 * config/tc-cris.c: Likewise.
676 * config/tc-hppa.c: Likewise.
677 * config/tc-i370.c: Likewise.
678 * config/tc-mips.c: Likewise.
679 * config/tc-mn10200.c: Likewise.
680 * config/tc-mn10300.c: Likewise.
681 * config/tc-sh.c: Likewise.
682 * config/tc-tahoe.c: Likewise.
683 * config/tc-v850.c: Likewise.
687 * app.c: Fix comment typos.
688 * bit_fix.h: Likewise.
690 * itbl-ops.c: Likewise.
694 * input-file.c: Include safe-ctype.h.
695 (input_file_open): Use ISSPACE instead of isspace.
699 * config/tc-mips.c (mips_cpreturn_offset): New variable.
700 (mips_cpreturn_register): Likewise.
701 (mips_gp_register): Likewise.
702 (s_cpsetup): New function prototype.
703 (s_cplocal): Likewise.
704 (s_cpreturn): Likewise.
705 (s_gpvalue): Likewise.
706 (mips_pseudo_table): Add .cpsetup, .cplocal, .cpreturn, .gpvalue
708 (macro): Don't warn about .cprestore for NewABI.
709 (md_pcrel_from): Code cleanup.
710 (mips_force_relocation): Force output of some NewABI relocations even
711 without a defined symbol.
712 (s_cpload): Ignore .cpload for NewABI.
713 (s_cpsetup): Handle .cpsetup.
714 (s_cplocal): Handle .cplocal.
715 (s_cprestore): Ignore .cprestore for NewABI.
716 (s_cpreturn): Handle .cpreturn.
717 (s_gpvalue): Handle .gpvalue.
718 (s_cpadd): Ignore .cpadd for NewABI.
719 (nopic_need_relax): Take g_switch_value into account as gp
721 (tc_gen_reloc): Don't handle BFD_RELOC_MIPS_{CALL,GOT}* for NewABI.
725 * config/tc-mips.c (my_getSmallParser): New function prototype.
726 (small_ex_type): Named this enum, more return values for
727 my_getSmallExpression.
728 (mips_ip): Allow SPC and HT between arguments. Handle some NewABI
729 triple relocations. Protect some parts with ifdef OBJ_ELF.
730 (percent_op_match): New struct, lookup table for %some_reloc().
731 (my_getSmallParser): New function, parses nested percent_ops also.
732 (my_getSmallExpression): Rewite to support nested percent_ops.
737 (load_address): Support both 32- and 64-bit addresses.
738 (macro): Call load_register correctly. Expand 64-bit loads ans stores.
739 (macro2): Call load_address correctly.
743 * config/tc-z8k.c: Include opcodes/z8k-opc.h after bfd.h
744 since z8k-opc.h now uses the PARAMS macro.
748 * config/tc-arm.c: Change MAVERIK to MAVERICK.
752 * config/obj-elf.c: Make use of elf_group_name and elf_next_in_group
754 (obj_elf_change_section): Rename "group" to "group_name".
755 (obj_elf_section): Likewise.
756 (elf_frob_file): Don't use sec->lineno for SHT_GROUP section to store
757 first member section; Instead use elf_next_in_group.
761 * config/obj-elf.c: (obj_elf_change_section): Add "group" param.
762 Set elf_section_data group from it. Warn if group name changed.
763 (obj_elf_parse_section_letters): Parse 'G' too.
764 (obj_elf_section): Parse group name.
765 (struct group_list): New.
766 (build_group_lists): New function.
767 (elf_frob_file): Create SEC_GROUP section(s).
769 * config/obj-elf.c: (elf_copy_symbol_attributes): Zap trailing
774 * doc/arm/c-arm.texi (ARM Options): Add arm9e documentation.
776 * config/tc-arm.c (ARM_EXT_MAVERIK): New macro.
777 (cirrus_regtype): New enum.
778 (LONGEST_INST): Change to 10.
785 (insns): Add cirrus dsp instructions.
786 (ARM_EXT_MAVERIKSC_REG): New.
787 (cirrus_register): New.
788 (cirrus_mvf_register): New.
789 (cirrus_mvd_register): New.
790 (cirrus_mvfx_register): New.
791 (cirrus_mvdx_register): New.
792 (cirrus_mvax_register): New.
793 (ARM_EXT_MAVERIKsc_register): New.
794 (reg_table): Add cirrus registers.
795 (cirrus_valid_reg): New.
796 (cirrus_reg_required_here): New.
797 (do_c_binops_1): New.
798 (do_c_binops_2): New.
799 (do_c_binops_3): New.
800 (do_c_triple_4): New.
801 (do_c_triple_5): New.
816 (cirrus_parse_offset): New.
818 (md_parse_option): Add arm9e.
819 (md_show_usage): Same.
823 * config/tc-ppc (ppc_bf, ppc_biei) : Set first .bi lineno value to
825 * config/obj-coff.c (coff_frob_symbol) : XCOFF does not use endndx.
829 * config/obj-elf.c: Standardize error/warning messages - don't
830 capitalise, no final period or newline, don't say "ignoring" for
831 as_bad messages. In some cases, change the wording to that used
832 elsewhere for similar messages.
833 (obj_elf_section_name): New function, split out from ..
834 (obj_elf_section): .. here. Correctly mask off SHF_MERGE if
835 entsize not specified.
839 * doc/as.texinfo: Document M and S ELF section flags.
843 * subsegs.c (subseg_text_p): Return 0 for absolute section.
844 * read.c (do_align): If in absolute section, warn about and ignore
845 non-zero fill pattern.
849 * config/tc-mn10300.c (tc_gen_reloc): Don't free
850 reloc->sym_ptr_ptr if it's not allocated.
854 * config/tc-mips.c (prev_insn_reloc_type): Make it an array to hold a
856 (prev_insn_fixp): Likewise.
857 (append_insn): Changed prototype to accept a relocation pointer.
858 (imm_reloc): Make it an array.
859 (offset_reloc): Likewise.
860 (md_assemble): Handle triple relocations.
861 (append_insn): Likewise. Add handling for some NewABI relocations.
862 (mips_no_prev_insn): Handle triple relocations.
863 (macro_build): Likewise. Add handling for some NewABI relocations.
864 Move handling for the 'u' case to append_insn().
865 (mips16_macro_build): Handle triple relocations.
866 (macro_build_lui): Likewise. Don't handle _gp_disp as special symbol
868 (mips_ip): Handle triple relocations.
869 (mips16_ip): Likewise.
870 (mips_force_relocation): Force handling of triple relocations
871 without symbols for NewABI.
872 (md_apply_fix): Add handling for some NewABI relocations.
876 * config/tc-i386.c (parse_register): If not producing code for
877 x86_64, reject x86_64 register name matches.
878 (md_assemble): Remove now redundant check for x86_64 regs.
882 * config/tc-ppc.c (md_assemble <DS relocs>): Test ppc_size as well
883 as BFD_DEFAULT_TARGET_SIZE.
885 (ppc_is_toc_sym): Likewise.
886 (md_apply_fix3): Likewise.
890 * config/tc-mips.c (mips_64): Remove.
891 (mips_target_format): Move downwards in file, use HAVE_64BIT_OBJECTS
893 (mips_abi_level, mips_abi): New enum.
894 (mips_32bit_abi): Remove.
895 (HAVE*PRS): Use mips_abi instead of mips_32bit_abi.
896 (HAVE_NEWABI): New define.
897 (HAVE_64BIT_OBJECTS): New define.
898 (HAVE_32BIT_ADDRESSES): Don't return true for 64bit objects.
899 (HAVE_64BIT_ADDRESSES): New define, inverse of HAVE_32BIT_ADDRESSES.
900 (support_64bit_objects): New prototype.
901 (md_begin): Use mips_abi instead of mips_32bit_abi. Don't write
902 .reginfo section for n32, use .MIPS.options instead.
903 (support_64bit_objects): New function, code from md_parse_option.
904 (md_longopts): Add -n32 option.
905 (md_parse_option): Use mips_abi instead of mips_32bit_abi/mips64.
906 Add -n32 option. Protect with OBJ_ELF.
907 (s_mipsset): Use mips_abi instead of mips_32bit_abi.
908 (mips_elf_final_processing): Likewise. Don't write .reginfo section
909 for n32, use .MIPS.options instead.
913 * po/POTFILES.in: Regenerate.
914 * configure: Regenerate.
918 * config/tc-ppc.c (md_apply_fix3 <BFD_RELOC_CTOR>): Make it 64
919 bits if target is 64 bit.
921 * doc/as.texinfo (listing): Fix typo.
923 * as.c (print_version_id): Use BFD_VERSION_STRING in place of
925 * Makefile.am (Makefile): Depend on bfd/configure.in.
927 * Makefile.in: Regenerate.
931 * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
932 and "ams" for compatibility.
936 * config/tc-sh.c (md_pcrel_from_section): Transformed from
937 md_pcrel_from. Handle pc-relativeness against link-time
938 symbol. Handle relativeness to elsewhere than the fixup.
939 * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
940 (md_pcrel_from_section): Prototype.
942 * Makefile.am: Update dependencies with "make dep-am".
943 * Makefile.in: Regenerate.
947 * config/tc-m68hc11.c (cmp_opcode): Define prototype.
948 (print_opcode_format, skip_whites): Likewise.
949 (convert_branch, m68hc11_new_insn): Likewise.
950 (build_dbranch_insn, build_indexed_byte): Likewise.
951 (build_reg_mode, find, find_opcode): Likewise.
952 (print_insn_format): Fix call to print_opcode_format.
953 (md_assemble): Fix call to build_dbranch_insn.
957 * config/tc-arm.c: Add missing prototypes.
961 * input-file.c (input_file_open): When reading the
962 first line looking for #NO_APP, prepare for the possibility
963 of finding #APP instead. Also fix algorithm to allow
964 white-space to follow either #NO_APP or #APP directives.
968 * listing.c (buffer_line): Don't write past the end of `line' when
973 * config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
974 relocation for differences between symbols in a section other
975 than the one in which the difference is to be placed; apply
976 the relocation instead.
980 * config/tc-arc.c: Add missing prototype.
981 (md_atof): Change type to int. Add missing prototype.
982 * config/tc-arc.h: Prototype exported functions.
986 * as.c: Add missing function prototype.
987 * config/obj-aout.c: Fix compile time warning.
991 * config/tc-openrisc.c: Don't include <ctype.h>.
995 * gas/config/tc-s390.c: Add option -mwarn-areg-zero.
999 * config/tc-i370.c: Fix typo in last change.
1003 * doc/as.texinfo (Symbol Names): Improve documentation on local
1004 labels and add documenation about dollar labels.
1008 * as.h: Don't include <ctype.h>.
1009 * as.c (main): For gettext, also set the LC_CTYPE locate facet.
1010 * atof-generic.c: Include "safe-ctype.h" instead of <ctype.h>.
1011 (atof_generic): Use ISDIGIT instead of isdigit.
1012 * config/m68k-parse.y: Include "safe-ctype.h".
1013 (yylex): Use ISDIGIT/ISALNUM instead of isdigit/isalnum.
1014 * config/obj-elf.c: Include "safe-ctype.h".
1015 (obj_elf_vtable_inherit): Use ISSPACE instead of isspace.
1016 * config/obj-vms.c: Include "safe-ctype.h".
1017 (Write_VMS_MHD_Records): Use TOUPPER instead of islower/toupper.
1018 (VMS_Case_Hack_Symbol): Use ISUPPER/ISLOWER/TOUPPER/TOLOWER
1019 instead of isupper/islower/toupper/tolower.
1020 * config/tc-a29k.c: Include "safe-ctype.h" instead of <ctype.h>.
1021 (insert_sreg): Use TOUPPER instead of islower/toupper.
1022 (machine_ip): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead of
1023 isalpha/isalnum/isupper/tolower.
1024 (a29k_unrecognized_line, md_operand): Use ISDIGIT instead of
1026 * config/tc-alpha.c: Include "safe-ctype.h" instead of <ctype.h>.
1027 (md_undefined_symbol, s_alpha_ent): Use ISDIGIT instead of isdigit.
1028 * config/tc-arc.c: Include "safe-ctype.h" instead of <ctype.h>.
1029 (md_assemble): Use ISSPACE/ISALNUM instead of isspace/isalnum.
1030 (arc_extoper): Use TOLOWER instead of isupper/tolower.
1031 * config/tc-arm.c: Include "safe-ctype.h" instead of <ctype.h>.
1032 (arm_psr_parse): Use ISALPHA instead of isalpha.
1033 (accum0_required_here): Use ISALNUM instead of isalnum.
1034 (do_ldrd): Use ISSPACE instead of isspace.
1035 (decode_shift): Use ISALPHA instead of isalpha.
1036 (insert_reg): Use TOUPPER instead of islower/toupper.
1037 (arm_reg_parse): Use ISALPHA instead of isalpha.
1038 (arm_parse_reloc): Use ISALNUM/ISPUNCT/TOLOWER instead of
1039 isalnum/ispunct/tolower.
1040 * config/tc-avr.c: Include "safe-ctype.h" instead of <ctype.h>.
1041 (md_parse_option): Use TOLOWER instead of tolower.
1042 (avr_operand): Use ISDIGIT/TOLOWER instead of isdigit/tolower.
1043 * config/tc-cris.c: Include "safe-ctype.h" instead of <ctype.h>.
1044 (cris_process_instruction): Use ISLOWER instead of islower.
1045 (get_gen_reg): Use ISALNUM/ISDIGIT instead of isalnum/isdigit.
1046 (get_spec_reg): Use TOLOWER/ISALNUM instead of isupper/tolower/isalnum.
1047 (get_flags): Use ISSPACE instead of isspace.
1048 * config/tc-d10v.c: Include "safe-ctype.h" instead of <ctype.h>.
1049 (do_assemble): Use TOLOWER instead of tolower.
1050 * config/tc-d30v.c: Include "safe-ctype.h" instead of <ctype.h>.
1051 (do_assemble): Use TOLOWER instead of tolower.
1052 (d30v_start_line): Use ISSPACE instead of isspace.
1053 * config/tc-fr30.c: Include "safe-ctype.h" instead of <ctype.h>.
1054 (fr30_is_colon_insn): Use TOLOWER instead of tolower.
1055 * config/tc-h8300.c: Include "safe-ctype.h" instead of <ctype.h>.
1056 (skip_colonthing, get_operand): Use ISDIGIT instead of isdigit.
1057 * config/tc-h8500.c: Include "safe-ctype.h" instead of <ctype.h>.
1058 (start_label): Use ISALPHA instead of isalpha.
1059 * config/tc-hppa.c: Include "safe-ctype.h" instead of <ctype.h>.
1060 (pa_ip): Use ISUPPER/ISLOWER/TOLOWER instead of
1061 isupper/islower/tolower.
1062 (pa_parse_number): Use ISDIGIT instead of isdigit.
1063 (pa_chk_field_selector): Use TOLOWER instead of tolower.
1064 (pa_stringer): Use ISDIGIT instead of isdigit.
1065 * config/tc-i370.c: Include "safe-ctype.h" instead of <ctype.h>.
1066 (register_name): Use ISALPHA instead of isalpha.
1067 (i370_elf_suffix): Use ISALNUM/TOLOWER instead of
1068 isalnum/islower/tolower.
1069 (i370_addr_offset): Use ISDIGIT/ISALPHA instead of
1071 (i370_addr_cons): Use ISALPHA/ISXDIGIT instead of
1073 (md_assemble): Use ISSPACE instead of isspace.
1074 * config/tc-i386.c: Include "safe-ctype.h" instead of <ctype.h>.
1075 (md_begin): Use ISDIGIT/ISLOWER/ISUPPER/TOLOWER/ISALPHA
1076 instead of isdigit/islower/isupper/tolower/isalpha.
1077 (output_invalid): Use ISPRINT instead of isprint.
1078 * config/tc-i860.c: Include "safe-ctype.h" instead of <ctype.h>.
1079 (i860_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1080 * config/tc-i960.c: Include "safe-ctype.h" instead of <ctype.h>.
1081 (get_args): Use ISALNUM instead of isalnum.
1082 * config/tc-ia64.c: Include "safe-ctype.h".
1083 (dot_pred_rel): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1084 (ia64_unrecognized_line): Use ISDIGIT instead of isdigit.
1085 (ia64_parse_name): Likewise.
1086 * config/tc-m32r.c: Include "safe-ctype.h" instead of <ctype.h>.
1087 (assemble_two_insns): Use ISSPACE/ISALNUM/ISUPPER/TOLOWER
1088 instead of isspace/isalnum/isupper/tolower.
1089 * config/tc-m68hc11.c: Include "safe-ctype.h" instead of <ctype.h>.
1090 (md_assemble): Use TOLOWER/ISALNUM instead of tolower/isalnum.
1091 * config/tc-m68k.c: Include "safe-ctype.h" instead of <ctype.h>.
1092 (mklower_table): Remove variable.
1093 (mklower): Remove macro.
1094 (insert_reg): Use TOUPPER instead of islower/toupper.
1095 (md_begin): Remove initialization of mklower_table.
1096 (s_reg): Use ISALNUM instead of isalnum.
1097 (mri_assemble): Use ISUPPER/TOLOWER instead of isupper/tolower.
1098 (parse_mri_condition): Use TOLOWER instead of isupper/tolower.
1099 (build_mri_control_operand): Use TOLOWER instead of tolower.
1100 (s_mri_else, s_mri_break, s_mri_next, s_mri_for): Likewise.
1101 * config/tc-m88k.c: Include "safe-ctype.h" instead of <ctype.h>.
1102 (md_assemble): Use ISSPACE instead of isspace.
1103 (get_imm16): Use ISALNUM instead of isalnum.
1104 (get_cnd): Use ISDIGIT/ISUPPER/TOLOWER instead of
1105 isdigit/isupper/tolower.
1106 (get_bf_offset_expression): Use ISALPHA/ISUPPER/TOLOWER
1107 instead of isalpha/isupper/tolower.
1108 (hexval): Use ISDIGIT/ISLOWER/ISUPPER instead of
1109 isdigit/islower/isupper.
1110 * config/tc-mcore.c: Include "safe-ctype.h" instead of <ctype.h>.
1111 (mcore_s_section): Use ISSPACE instead of isspace.
1112 (parse_reg): Use ISSPACE/TOLOWER/ISALNUM instead of
1113 isspace/tolower/isalnum.
1114 (parse_creg): Use ISSPACE/TOLOWER instead of isspace/tolower.
1115 (parse_psrmod): Use TOLOWER instead of isascii/tolower.
1116 (parse_exp, parse_mem, md_assemble): Use ISSPACE instead of
1118 * config/tc-mips.c: Include "safe-ctype.h" instead of <ctype.h>.
1119 (mips_ip): Use ISSPACE/ISDIGIT instead of isspace/isdigit.
1120 (mips16_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1121 (my_getSmallExpression): Use ISDIGIT/TOLOWER instead of
1123 (tc_get_register): Likewise.
1124 (get_number): Use ISDIGIT/ISXDIGIT instead of isdigit/isxdigit.
1125 (s_mips_ent): Use ISDIGIT instead of isdigit.
1126 * config/tc-mn10200.c: Include "safe-ctype.h" instead of <ctype.h>.
1127 (md_assemble): Use ISSPACE instead of isspace.
1128 * config/tc-mn10300.c: Include "safe-ctype.h" instead of <ctype.h>.
1129 (md_assemble): Use ISSPACE instead of isspace.
1130 * config/tc-ns32k.c: Don't include <ctype.h>.
1131 * config/tc-pdp11.c: Include "safe-ctype.h".
1132 (mklower): Remove function.
1133 (parse_reg): Use TOLOWER instead of mklower.
1134 * config/tc-pj.c: Include "safe-ctype.h".
1135 (md_assemble): Use ISSPACE instead of isspace.
1136 * config/tc-ppc.c: Include "safe-ctype.h" instead of <ctype.h>.
1137 (register_name): Use ISALPHA instead of isalpha.
1138 (ppc_elf_suffix): Use ISALNUM/TOLOWER instead of
1139 isalnum/islower/tolower.
1140 (md_assemble): Use ISSPACE instead of isspace.
1141 (ppc_canonicalize_symbol_name): Use ISLOWER/TOUPPER instead of
1143 * config/tc-s390.c: Include "safe-ctype.h" instead of <ctype.h>.
1144 (register_name): Use ISALPHA instead of isalpha.
1145 (s390_elf_suffix, s390_lit_suffix): Use ISALNUM instead of isalnum.
1146 (md_gather_operands, md_assemble, s390_insn): Use ISSPACE instead of
1148 * config/tc-sh.c: Include "safe-ctype.h" instead of <ctype.h>.
1149 (sh_elf_suffix): Use ISALNUM/TOLOWER instead of
1150 isalnum/islower/tolower.
1151 (IDENT_CHAR): Use ISALNUM instead of isalnum.
1152 (parse_reg): Use TOLOWER instead of tolower.
1153 (find_cooked_opcode): Use TOLOWER instead of isupper/tolower.
1154 * config/tc-sparc.c: Include "safe-ctype.h" instead of <ctype.h>.
1155 (sparc_ip): Use ISLOWER/ISDIGIT instead of islower/isdigit.
1156 (parse_keyword_arg): Use ISALNUM instead of isalnum.
1157 * config/tc-tahoe.c: Include "safe-ctype.h".
1158 (tahoe_reg_parse): Use ISDIGIT instead of isdigit.
1159 (tip_op): Use TOLOWER instead of isupper/tolower.
1160 * config/tc-tic30.c: Include "safe-ctype.h".
1161 (md_begin): Use ISLOWER/ISDIGIT/ISUPPER/TOLOWER/ISLOWER/
1162 ISALPHA instead of islower/isdigit/isupper/tolower/islower/isalpha.
1163 (tic30_operand): Use TOLOWER instead of tolower.
1164 (tic30_find_parallel_insn): Likewise.
1165 (output_invalid): Use ISPRINT instead of isprint.
1166 * config/tc-tic54x.c: Include "safe-ctype.h".
1167 (tic54x_asg, tic54x_eval): Use ISALPHA instead of isalpha.
1168 (lookup_version): Use TOUPPER instead of toupper.
1169 (tic54x_var): Use ISALPHA instead of isalpha.
1170 (tic54x_mlib): Use ISSPACE instead of isspace.
1171 (subsym_iscons): Use TOUPPER instead of toupper.
1172 (get_operands): Use ISSPACE instead of isspace.
1173 (is_type): Use TOUPPER/ISDIGIT instead of toupper/isdigit.
1174 (encode_indirect, encode_operand): Use TOUPPER instead of toupper.
1175 (next_line_shows_parallel): Use ISSPACE instead of isspace.
1176 (subsym_get_arg, subsym_substitute): Use ISDIGIT instead of isdigit.
1177 (tic54x_start_line_hook, md_assemble, tic54x_start_label): Use
1178 ISSPACE instead of isspace.
1179 * config/tc-tic80.c: Include "safe-ctype.h".
1180 (md_assemble): Use ISSPACE instead of isspace.
1181 * config/tc-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1182 (system_register_name): Use ISDIGIT instead of isdigit.
1183 (md_assemble): Use ISSPACE instead of isspace.
1184 * config/tc-vax.c: Include "safe-ctype.h" instead of <ctype.h>.
1185 (vax_reg_parse): Use TOLOWER/ISDIGIT instead of
1186 isupper/tolower/isdigit.
1187 (vip_op): Use TOLOWER instead of isupper/tolower.
1188 * config/tc-w65.c: Don't include <ctype.h>.
1189 * config/tc-z8k.c: Include "safe-ctype.h" instead of <ctype.h>.
1190 (tohex): Use ISDIGIT/ISLOWER instead of isdigit/islower.
1191 (whatreg): Use ISDIGIT instead of isdigit.
1192 * ecoff.c: Include "safe-ctype.h" instead of <ctype.h>.
1193 (ecoff_directive_ent, ecoff_stab): Use ISDIGIT instead of isdigit.
1194 * expr.c: Include "safe-ctype.h" instead of <ctype.h>.
1195 (integer_constant): Use ISALNUM/TOUPPER instead of
1196 isalnum/islower/toupper.
1197 (operand): Use TOLOWER instead of isupper/tolower.
1198 * gasp.c: Include "safe-ctype.h" instead of <ctype.h>.
1199 (sb_strtol, level_0, change_base, doinstr): Use ISDIGIT instead
1201 (process_assigns, whatcond): Use TOUPPER instead of toupper.
1202 (chartype_init): Use ISALPHA/ISDIGIT instead of isalpha/isdigit.
1203 (main): For gettext, also set the LC_CTYPE locate facet.
1204 * hash.c: Include "safe-ctype.h".
1205 (main): Use TOLOWER instead of isupper/tolower.
1206 * itbl-lex.l: Don't include <ctype.h>.
1207 * listing.c: Include "safe-ctype.h" instead of <ctype.h>.
1208 (listing_newline): Use ISCNTRL instead of isascii/iscntrl. Don't
1209 omit non-ASCII characters.
1210 (debugging_pseudo): Use ISSPACE instead of isspace.
1211 * macro.c: Include "safe-ctype.h" instead of <ctype.h>.
1212 (buffer_and_nest): Use ISALNUM instead of isalnum.
1213 (get_token): Use ISALPHA/ISALNUM instead of isalpha/isalnum.
1214 (define_macro): Use ISUPPER/TOLOWER instead of isupper/tolower.
1215 (macro_expand_body): Use ISALNUM/ISDIGIT/ISUPPER/ISALPHA
1216 instead of isalnum/isdigit/isupper/isalpha.
1217 (check_macro): Use ISALPHA/ISALNUM/ISUPPER/TOLOWER instead
1218 of isalpha/isalnum/isupper/tolower.
1219 * read.c: Include "safe-ctype.h" instead of <ctype.h>.
1220 (read_a_source_file): Use ISUPPER/TOLOWER/ISDIGIT instead of
1221 isupper/tolower/isdigit.
1222 (s_mri_common): Use ISDIGIT instead of isdigit.
1223 (s_mri_sect): Use ISDIGIT/TOUPPER instead of isdigit/toupper.
1224 (s_float_space): Use ISALPHA instead of isalpha.
1225 (ignore_rest_of_line): Use ISPRINT instead of isprint.
1226 (float_cons): Use ISALPHA instead of isalpha.
1227 (next_char_of_string): Use ISDIGIT/ISXDIGIT instead of
1229 * symbols.c: Include "safe-ctype.h" instead of <ctype.h>.
1230 (save_symbol_name): Use ISLOWER/TOUPPER instead of
1232 (symbol_find_base): Use TOUPPER instead of islower/toupper.
1233 (decode_local_label_name): Use ISDIGIT instead of isdigit.
1237 * tc-s390.c (s390_insn): Add code to cope with 6 byte O_constants
1238 in 64 bit mode and make format "e" work.
1242 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.
1244 * write.c (set_symtab): Update bfd_alloc declaration. Use a temp
1245 var to ensure bfd_alloc arg is the right type.
1246 (write_object_file): Cast args of bfd_seek. Replace bfd_write with
1249 * config/obj-coff.c: Replace calls to bfd_write with calls to
1250 bfd_bwrite. Cast args of bfd_seek.
1252 * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned
1255 * config/tc-mn10300.c (set_arch_mach): Make param unsigned.
1257 * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with
1262 * config/tc-sh.h (sh_force_relocation): Prototype.
1263 (struct fix): Forward declare.
1264 * config/tc-sh.c (type sh_operand_info): Move to top of file.
1265 (cons, s_align_bytes): Remove old-type declarations.
1266 (sh_elf_suffix, parse_reg, dot, parse_exp, parse_at, get_operand,
1267 get_operands, get_specific, insert, build_relax,
1268 insert_loop_bounds, build_Mytes): Prototype.
1269 (little): Make static. Prototype.
1270 (check, tc_Nout_fix_to_chars): Delete unused functions.
1274 * config/tc-mips.c (md_parse_option): Remove setting mips_64 via
1279 * configure.in: Add arm-openbsd target.
1280 * configure: Regenerate.
1284 * configure.in: Change machine triplets from mips-*-linux-gnu* to
1289 * config/tc-mips.c (append_insn): Don't rightshift BFD_RELOC_16_PCREL.
1293 * config/tc-alpha.c (alpha_elf_section_letter): New.
1294 (alpha_elf_section_flags): New.
1295 * config/tc-alpha.h (md_elf_section_letter): New.
1296 (md_elf_section_flags): New.
1297 * config/tc-ia64.c (ia64_elf_section_letter): New.
1298 * config/tc-ia64.h (md_elf_section_letter): New.
1302 * config/obj-elf.c (obj_elf_parse_section_letters): Use 'M' instead
1303 of 'm', 'S' instead of 's'. Update bad_msg.
1304 * config/tc-ppc.c (ppc_section_letter): Update bad_msg.
1305 * config/tc-i370.c (i370_sectioN_letter): Update bad_msg.
1309 * expr.c (expr): Move code setting "retval" to the end of the loop,
1310 and rearrange for efficiency. For "PIC code" subtraction, use
1311 "rightseg" rather than recalculating. For "symbol OP symbol"
1312 subtract, set "retval" to absolute_section if symbols in same
1314 * symbols.c (resolve_symbol_value): Resolve "sym +/- expr" to an
1315 O_symbol. Simplify a +/- b code. Allow equality and non-equality
1316 comparisons on symbols from any section. Allow other comparison
1317 operators as for subtraction.
1318 (symbol_equated_reloc_p): New predicate function.
1319 * symbols.h (symbol_equated_reloc_p): Declare.
1320 * write.c (relax_segment <rs_machine_dependent>): Ensure segment
1321 for expression syms is set correctly.
1322 (adjust_reloc_syms): Use symbol_equated_reloc_p.
1323 (write_relocs): Likewise.
1324 (write_object_file): Likewise.
1325 * config/tc-mips.c (md_estimate_size_before_relax): Likewise.
1326 * config/tc-i386.c (md_assemble <Output jumps>): Don't lose part
1327 of a complex expression when setting up frag_var.
1331 * config/tc-alpha.c (alpha_reloc_op_tag): Replace need_seq with
1332 require_seq and allow_seq. Let !literal omit the sequence number.
1333 (tokenize_arguments): Reject sequence numbers of !allow_seq.
1337 * config/tc-sparc.c (md_apply_fix3): Handle relocs against SEC_MERGE
1338 section symbols the same way as externs.
1342 * config/tc-mips.c (s_mipsset): Reallow unrestricted use of .set mipsX
1347 * config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL.
1348 (macro_build): Use BFD_RELOC_16_PCREL_S2 only for embedded
1349 PIC, BFD_RELOC_16_PCREL for the rest.
1350 (mips_ip): Likewise.
1351 (md_pcrel_from): return the right offset for the differently shifted
1353 (md_apply_fix): Handle BFD_RELOC_16_PCREL.
1357 * config/tc-ia64.c (FUNC_IPLT_RELOC): New.
1358 (pseudo_func): Add @iplt.
1359 (pseudo_opcode): Add data16 and data16.ua.
1360 (md_begin): Set iplt pseudo.
1361 (ia64_cons_fix_new): Handle 16 byte iplt reloc specially.
1365 * config/tc-alpha.c (struct alpha_insn): Make sequence scalar long.
1366 (MACRO_LITERAL, MACRO_BASE, MACRO_BYTOFF, MACRO_JSR): Remove.
1367 (alpha_macros): Remove occurrences of same.
1368 (O_lituse_addr, O_gprel): New.
1369 (DUMMY_RELOC_LITUSE_*): New.
1370 (s_alpha_ucons, s_alpha_arch): Prototype.
1371 (alpha_reloc_op): Construct elements via DEF macro.
1372 (ALPHA_RELOC_SEQUENCE_OK): Remove.
1373 (struct alpha_reloc_tag): Rename from alpha_literal_tag; rename
1374 members to not be literal specific.
1375 (next_sequence_num): New.
1376 (md_apply_fix3): Cope with missing GPDISP_LO16. Adjust for
1377 added/removed BFD relocations.
1378 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1379 (alpha_adjust_symtab_relocs): Handle GPDISP relocs as well.
1380 (tokenize_arguments): Parse ! relocations properly.
1381 (find_macro_match): Delete unused macro argument types.
1382 (assemble_insn): Add reloc parameter; emit that instead of the
1383 default as appropriate.
1384 (get_alpha_reloc_tag): New. Split from ...
1385 (emit_insn): ... here. Allocate a reloc tag for GPDISP.
1386 (assemble_tokens): Don't search macros if user relocation present.
1387 Copy reloc sequence number to insn struct.
1388 (emit_ldgp): Remove user reloc handling.
1389 (load_expression, emit_lda, emit_ldah, emit_ir_load): Likewise.
1390 (emit_loadstore, emit_ldXu, emit_ldil, emit_stX): Likewise.
1391 (emit_sextX, emit_division, emit_jsrjmp, emit_retjcr): Likewise.
1392 * config/tc-alpha.h (tc_adjust_symtab): Always define.
1393 (struct alpha_fix_tag): Name members less literal specific.
1397 * tc-h8300.c (tc_gen_reloc): Give an error if we try to take the
1398 address of two symbols in different sections.
1403 * config/tc-mips.c (mips_cpu_info): Add support for mipsisa32,
1404 5kc, and 20kc. Clean up old entries.
1409 * config/tc-h8300.c (build_bytes): For OBJ_ELF, make relocation's
1410 offset match H8 ELF spec.
1411 (md_section_align): Alternate implementation for BFD_ASSEMBLER.
1412 (md_apply_fix): Fix argument and return types for BFD_ASSEMBLER.
1414 * tc-h8300.c (relocation mappings): Remove. Moved to tc-h8300.h.
1415 (build_bytes): Mark fixups for PCrel branches as signed. For
1416 OBJ_ELF, make sure the reloc's offset points to the first byte
1418 (md_convert_frag): Update definiton based on BFD_ASSEMBLER.
1419 * tc-h8300.h (relocation mappings): Add.
1423 * tc-h8300.c (tc_crawl_symbol_chain, tc_headers_hook): Don't
1424 define for BFD_ASSEMBLER.
1425 (tc_reloc_mangle): Likewise.
1426 (tc_gen_reloc): New function for BFD_ASSEMBLER.
1430 * config/tc-h8300.c (h8300hmode): Record the machine type
1431 if BFD_ASSEMBLER is defined.
1432 (h8300smode, md_begin): Similarly.
1436 * configure.in (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1437 default from coff to elf.
1438 * configure: Regenerate.
1442 * tc-h8300.c: If OBJ_ELF, include elf/h8.h, and define
1443 assorted coff relocations to the corresponding elf relocations.
1444 * tc-h8300.h (TARGET_ARCH, TARGET_FORMAT): Define appropriately.
1446 * configure.in: Add case for h8300-*-elf.
1447 * configure: Regenerate.
1451 * doc/internals.texi (MD_PCREL_FROM_SECTION): Change
1452 documentation to reflect reality.
1456 * config/tc-mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
1457 (macro): Reflect change to MAX_GPREL_OFFSET.
1464 * configure.in: Recognise powerpc*le*, not just powerpcle*.
1465 * configure: Regenerate.
1466 * config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
1467 PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
1468 (md_assemble): Use them.
1469 (ppc_machine): Support stub for ELF64 as well as XCOFF.
1470 (md_pseudo_table): Add "llong", "quad".
1471 (md_parse_option): Match default_cpu of powerpc*.
1472 (ppc_arch): Likewise.
1473 (ppc_subseg_align): Only for OBJ_XCOFF.
1474 (ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
1475 (md_begin): Select PPC_OPCODE_64 for 64 bit.
1476 (ppc_insert_operand): Don't bother testing 'file' before calling
1477 as_bad_where. Use as_bad_where for operand->insert errors.
1478 (mapping): Add ELF64 relocation modifiers.
1479 (ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
1480 expressions with abs_symbol.
1481 (ppc_elf_cons): Correct offset for little endian targets.
1482 (ppc_elf_frob_symbol): New.
1483 (md_assemble): Add support for 64 bit ELF relocs.
1484 (ppc_tc): Ensure 8 byte alignment when 64 bit.
1485 (ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF. Match
1486 ".toc" section for 64 bit ELF.
1487 (ppc_fix_adjustable): New. Macro body moved from tc-ppc.h.
1488 (md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED. Only do
1489 the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF. For 64 bit,
1490 use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
1491 Expand on comments, error message. Add support for 64 bit relocs,
1492 and use PPC_HI etc. macros.
1493 * config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
1494 (HANDLE_ALIGN): Define to generate nops in code sections rather
1496 (TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
1497 (ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
1498 (tc_fix_adjustable): Move body of macro to tc-ppc.c.
1499 (ppc_fix_adjustable): Declare.
1500 (tc_frob_symbol): Define.
1501 (ppc_elf_frob_symbol): Declare.
1505 * config/tc-s390.c: Add missing prototypes
1506 (md_gather_operands): Make static.
1510 * config/tc-mips.h (MAX_GPREL_OFFSET): Change it to the maximum
1511 allowed value, not the word beyond maximum.
1512 * config/tc-mips.c (macro_build_lui): Code cleanup.
1513 (macro): Reflect change to MAX_GPREL_OFFSET.
1514 (mips_ip): Check explicitly against S_EX_NONE.
1515 (my_get_SmallExpression): parse for %gp_rel, not %gprel.
1516 (md_apply_fix): Code cleanup.
1520 * config/tc-ppc.h: Fix prototype declaration.
1524 * config/tc-ia64.c (dot_endp): Set function symbol sizes.
1525 * config/obj-elf.c (obj_elf_size): When size is constant, free
1526 and clear symbol_get_obj(sym)->size if any.
1530 * config/tc-mips.c (md_begin): Warn about incompatibility between
1531 -march=FOO and -mipsN option, continue with default ISA.
1535 * config/tc-mips.c (md_parse_option): #ifdef the
1536 traditional/non-traditional names as it is done in mips_target_format.
1540 * config/tc-alpha.h (MD_APPLY_FIX3): Define.
1541 * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
1542 use seg parameter instead of now_seg.
1546 * config/tc-mips.c (show): Add the missing prototype.
1550 * config/tc-mips.c (S_EX_*): New enum for my_getSmallExpression()
1552 (mips_ip): Use the new return values instead of characters. Add
1553 support for %higher and %highest.
1556 (my_getSmallExpression): Make parsing case insensitive and more
1557 reliable. Add support for %higher and %highest. Further support to
1558 parse %gprel and %neg is implemented but currently deactivated.
1562 * ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
1563 (ecoff_build_symbols): Likewise.
1564 * read.c (s_lcomm_internal): Fix signed/unsigned warning.
1568 * config/tc-mips.c (mips_elf_final_processing): Set elf header flags
1569 for n32 ABI if appropriate.
1573 * config/tc-mips.c (cons_fix_new_mips): Remove.
1574 * config/tc-mips.h (TC_CONS_FIX_NEW): Remove.
1575 (cons_fix_new_mips): Remove.
1579 * expr.c (operand)[LITERAL_PREFIXDOLLAR_HEX]: Treat $L as
1580 a label, not a hex constant.
1584 * config/tc-v850.h: Add missing prototypes.
1588 * config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
1593 * config/tc-sparc.c (cons_fix_new_sparc): Move
1594 `sparc_no_align_cons = 0;' to...
1595 (s_uacons): ...here so that sparc_no_align_cons will get
1600 * config/tc-mips.c: Fix a comment typo.
1604 * config/tc-mips.c (move_register): New function.
1605 (macro_build): Remove OPCODE_IS_MEMBER's gp32 argument.
1606 (mips_ip): Likewise.
1607 (macro2): Use move_register rather than macro_build for moves.
1608 (mips16_macro): Likewise.
1609 (macro): Likewise. Handle M_MOVE.
1613 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1615 * configure: Regenerate.
1619 * as.h (alloca): Don't declare if __GNUC__. Remove an old comment.
1620 Comment indentation of #pragma.
1621 * macro.c (alloca): Likewise.
1623 * config/tc-ppc.c: Revert 2001-08-08.
1627 * symbols.c: Add missing prototypes.
1628 * config/e-i386elf.c: Likewise.
1629 * config/e-i386coff.c: Likewise.
1630 * config/e-i386aout.c: Likewise.
1631 * config/obj-coff.c: Likewise.
1632 (def_symbol_in_progress, stack): Move definition.
1633 * config/obj-elf.c: Add missing prototypes.
1634 (obj_elf_change_section): Make static.
1635 (obj_elf_parse_section_letters): Likewise.
1636 (obj_elf_section_word): Likewise.
1637 (obj_elf_section_type): Likewise.
1642 * config/tc-ppc.c (md_apply_fix3): Replace haphazard code for
1643 determining reloc type with code reading operands->reloc field.
1647 * config/obj-elf.c (elf_copy_symbol_attributes): Make it a global
1648 function, and expand old obj-elf.h OBJ_COPY_SYMBOL_ATTRIBUTES here.
1649 * config/obj-elf.h (elf_copy_symbol_attributes): Declare.
1650 (OBJ_COPY_SYMBOL_ATTRIBUTES): Call elf_copy_symbol_attributes.
1652 * output-file.c (output_file_create): Don't try to open a second
1653 time as it's unnecessary. FOPEN_W was undefined too.
1657 * config/tc-mips.c (macro_build): Replace magic constants by defines.
1658 (mips_ip): Likewise. Typo.
1662 * config/tc-mips.c (mips_abi_string): Initialize with NULL instead
1664 (RELAX_ENCODE): Replace bfd_vma by valueT.
1665 (load_address): Formatting.
1666 (macro): Likewise. Code cleanup. Typo.
1667 (macro2): Formatting.
1668 (md_parse_option): Typo.
1669 (s_mipsset): Reorder cases to look nicer.
1670 (md_estimate_size_before_relax): Formatting. Code cleanup.
1671 (mips_elf_final_processing): Check against NULL instead of 0.
1672 (md_obj_end): Remove ugly `' in message string.
1673 (s_mips_ent): Remove ugly `' in message string.
1677 * config/tc-mips.c (md_begin): Take -mcpu value into account even when
1678 -mipsX is specified. Make both -mcpu/-march and -mcpu/-mtune pairs
1679 mutually exclusive (if they are different).
1680 (md_parse_option): Warn if an -march/-mtune/-mcpu/-m<cpu> option is
1685 * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
1690 * doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
1691 * config/tc-mips.c (mips_fp32, mips_32bit_abi): New static variables.
1692 (md_long_opts): Add -mfp32 option.
1693 (md_parse_option): Handle it. Set mips_32bit_abi given -mabi=32.
1694 (md_show_usage): Show usage for -mfp32 and -mgp32.
1695 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): New macros.
1696 (HAVE_64BIT_GPRS, HAVE_64BIT_FPRS): New macros, inverse of the above.
1697 (HAVE_32BIT_ADDRESSES): New macro.
1698 (load_register): Use HAVE_32BIT_GPRS to determine the register width.
1699 (load_address): Use HAVE_32BIT_ADDRESSES to determine the address size.
1700 (s_cprestore, s_cpadd): Likewise.
1701 (macro): Use HAVE_32BIT_GPRS to determine the width of registers
1702 used in branch and M_LI_D macros. Use HAVE_64BIT_FPRS to determine
1703 the width registers used in M_LI_DD macros. Use HAVE_32BIT_ADDRESSES
1704 to determine the width of addresses in load, store and jump macros.
1705 (macro2): Use HAVE_32BIT_GPRS to determine the width of registers
1706 used in set instructions; do not check the address size for them.
1707 Use HAVE_32BIT_ADDRESSES to determine the width of addresses in
1708 unaligned load and store macros.
1709 (mips_ip): Use the new macros to check the width of a register when
1710 processing float constants. Force a constant into memory if it is
1711 destined for an FPR and the FPRs are wider than the GPRs. Warn about
1712 odd FPR numbers if HAVE_32BIT_FPRS. Use HAVE_32BIT_GPRS rather
1713 than mips_gp32 to select synthetic instructions.
1714 (macro_build): Use HAVE_32BIT_GPRS rather than mips_gp32 to select
1715 synthetic instructions.
1719 * config/tc-z8k.c (parse_reg): If a string starts with "r", "rl",
1720 "rh", "rr", "rq", or "sp" then don't automatically assume
1721 it's a register name. Check whether there is a number
1726 * config/tc-i386.c (lex_got): Match lower case relocation tokens.
1727 Don't allocate more space than necessary for the input line copy.
1731 * read.c: Standardize error/warning messages - don't capitalise, no
1732 final period or newline, don't say "ignored" or "zero assumed" for
1733 as_bad messages. In some cases, change the wording to that used
1734 elsewhere for similar messages.
1737 * atof-generic.c: Likewise.
1740 * depend.c: Likewise.
1741 * dwarf2dbg.c: Likewise.
1742 * ecoff.c: Likewise.
1744 * frags.c: Likewise.
1745 * input-file.c: Likewise.
1746 * input-scrub.c: Likewise.
1747 * listing.c: Likewise.
1748 * output-file.c: Likewise.
1749 * stabs.c: Likewise.
1750 * subsegs.c: Likewise.
1751 * symbols.c: Likewise.
1752 * write.c: Likewise.
1753 * ecoff.c (ecoff_directive_end): Test for missing name by
1754 comparing input line pointers rather than reading string.
1755 (ecoff_directive_ent): Likewise.
1756 * read.c (s_set): Likewise.
1757 (s_align): Report a warning rather than an error for
1758 alignment too large.
1759 (s_comm): Check for missing symbol name.
1760 (s_lcomm_internal): Likewise.
1762 (s_globl): Use is_end_of_line instead of looking for '\n'.
1763 (s_lcomm_internal): Likewise.
1764 (ignore_rest_of_line): Report a warning rather than an error.
1768 * config/tc-ppc.c (ppc_elf_validate_fix): It's OK to have
1769 any kind of relocation against a not-loaded section.
1773 * config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
1774 to include '@' in symbol names when parsing versioned symbols
1775 rather than calling get_symbol_end multiple times.
1776 * config/tc-i370.c (register_name): Format fixes. Don't call
1777 get_symbol_end after parsing number.
1778 * config/tc-mn10200.c (data_register_name): Format fixes. Hoist
1779 code out of conditional.
1780 (address_register_name): Likewise.
1781 (other_register_name): Likewise.
1782 * config/tc-mn10300.c (r_register_name): Likewise.
1783 (xr_register_name): Likewise.
1784 (data_register_name): Likewise.
1785 (address_register_name): Likewise.
1786 (other_register_name): Likewise.
1787 * config/tc-ppc.c (register_name): Likewise.
1788 * config/tc-s390.c (register_name): Likewise.
1792 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix bsr
1793 and bra relax: update fragP->fr_fix after the fixup.
1797 * read.c (s_set): Check for missing symbol name.
1801 * write.c (relax_segment <rs_space>): Account for fr_fix.
1805 * config/tc-mips.c (md_estimate_size_before_relax): Make sure
1806 we treat weak like extern only for ELF.
1807 (mips_fix_adjustable): Make sure we don't adjust extern/weak
1808 symbols only for ELF.
1812 * config/tc-mips.c: Fix spelling error in comment.
1816 * app.c (LEX_IS_PARALLEL_SEPARATOR): New macro.
1817 (IS_PARALLEL_SEPARATOR): New macro.
1818 (do_scrub_begin): Set up characters in tc_parallel_separator_chars
1819 as LEX_IS_PARALLEL_SEPARATOR, if it is defined.
1820 (do_scrub_chars): Handle LEX_PARALLEL_SEPARATOR chars like
1821 LEX_LINE_SEPARATOR except that we go to state 1 (as if the label has
1826 * Makefile.am (DEP_FLAGS): Define, add -DOBJ_MAYBE_ELF.
1827 (DEP1, DEPTC, DEPOBJ, DEP2): Use it.
1828 Update dependencies with "make dep-am".
1829 * Makefile.in: Regenerate.
1830 * doc/Makefile.in: Regenerate.
1834 * config/tc-alpha.h: Fix formatting.
1835 * config/tc-arc.c: Likewise.
1836 * config/tc-d10v.h: Likewise.
1837 * config/tc-hppa.c: Likewise.
1838 * config/tc-i370.c: Likewise.
1839 * config/tc-i386.h: Likewise.
1840 * config/tc-i960.h: Likewise.
1841 * config/tc-ia64.c: Likewise.
1842 * config/tc-ia64.h: Likewise.
1843 * config/tc-m32r.c: Likewise.
1844 * config/tc-m68k.c: Likewise.
1845 * config/tc-m88k.c: Likewise.
1846 * config/tc-ns32k.c: Likewise.
1847 * config/tc-pdp11.c: Likewise.
1848 * config/tc-pj.h: Likewise.
1849 * config/tc-s390.c: Likewise.
1850 * config/tc-sparc.c: Likewise.
1851 * config/tc-sparc.h: Likewise.
1852 * config/tc-tic80.c: Likewise.
1853 * config/tc-w65.h: Likewise.
1857 * symbols.c (S_GET_VALUE): Don't treat O_constant and local
1858 symbols specially. Always resolve, adding fr_address to value.
1859 * write.c (write_object_file): Don't add fr_address to sym values.
1860 (relax_frag): Likewise.
1861 (relax_segment): Likewise.
1862 * config/obj-ieee.c (do_symbols): Likewise.
1863 * config/tc-cris.c (md_convert_frag): Likewise.
1864 * config/tc-fr30.c (md_convert_frag): Likewise.
1865 * config/tc-i386.c (md_convert_frag): Likewise.
1866 * config/tc-m32r.c (md_convert_frag): Likewise.
1867 * config/tc-m68hc11.c (md_convert_frag): Likewise.
1868 * config/tc-mcore.c (md_convert_frag): Likewise.
1869 * config/tc-mips.c (mips16_extended_frag): Likewise.
1870 * config/tc-ns32k.c (md_convert_frag): Likewise.
1871 * config/tc-m68k.c (md_convert_frag_1): Likewise.
1872 (BRANCHBWL, BRABSJUNC, BRABSJCOND, BRANCHBW, FBRANCH, DBCCLBR,
1873 DBCCABSJ, PCREL1632, PCINDEX, ABSTOPCREL): Decrement.
1874 (md_relax_table): Remove first four entries. Format.
1875 (md_estimate_size_before_relax): Remove old_fix. Don't bother
1876 setting fr_var. Simplify byte branch checks.
1880 * config/tc-hppa.c (pa_parse_nonneg_cmpsub_cmpltr): Remove
1881 "isbranch" param as all calls have it set.
1882 (pa_parse_neg_cmpsub_cmpltr): Likewise.
1883 (pa_parse_nonneg_add_cmpltr): Likewise. Remember result of
1884 strcasecmp in "nullify" var.
1885 (pa_parse_neg_add_cmpltr): Likewise.
1886 (pa_ip): Don't "save_s" unnecessarily. Update calls to above
1887 functions. Don't print wrong conditions in error messages.
1891 * config/tc-s390.c (s390_force_relocation): Removed.
1893 * config/tc-s390.h: Remove double declaration of
1894 TC_FORCE_RELOCATION.
1898 * config/tc-mips.c (s_mips_end): Remove unused variables.
1899 (s_mips_frame): Add ATTRIBUTE_UNUSED.
1903 * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
1905 (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
1907 * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1911 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
1913 (line_comment_chars): Set to '/' if TE_NetBSD.
1917 * configure.in (i386-*-netbsdelf*): New target.
1918 * configure: Regenerate.
1922 * config/obj-coff.c (coff_frob_symbol): Don't merge if the storage
1923 class of the non-debug symbol is C_NULL.
1927 * doc/as.texinfo (Incbin): Fix grammatical errors.
1931 * depend.c: Use FOPEN_.. macros in calls to fopen().
1932 * input-file.c: As above.
1933 * itbl-ops.c: As above.
1934 * listing.c: As above.
1935 * output-file.c: As above.
1940 * read.c (s_incbin): New .incbin function.
1941 * read.c (potable): Add "incbin" pseudo-op.
1942 * read.h: Add s_incbin prototype.
1943 * doc/as.texinfo (incbin): Document .incbin pseudo-op.
1944 * NEWS: Mention new feature.
1948 * ecoff.c (add_file): Only set debug_type to DEBUG_NONE if it is
1953 * cgen.c (gas_cgen_save_fixups): Modified to allow more than one
1954 set of fixups to be stored.
1955 (gas_cgen_restore_fixups): Modified to allow the fixup chain to be
1956 restored to be chosen from any that are saved.
1957 (gas_cgen_swap_fixups): Modified to allow the current set of
1958 fixups to be swapped with any other set that has been saved.
1959 (gas_cgen_initialize_saved_fixups_array): New routine.
1960 * cgen.h: Modifed prototypes for gas_cgen_save_fixups,
1961 gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions
1962 or MAX_SAVED_FIXUP_CHAINS.
1963 * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup
1964 store, swap and restore fuctions to reflect the new interface.
1968 * config/tc-m68k.c (md_estimate_size_before_relax): Catch and
1969 ignore empty, ineffectual alignment frags when deciding if a
1970 branch can be short.
1974 * config/tc-ia64.c (special_section): Add SPECIAL_SECTION_INIT_ARRAY
1975 and SPECIAL_SECTION_FINI_ARRAY.
1976 (special_section_name): Add .init_array and .fini_array.
1977 (md_pseudo_table): Add init_array and fini_array.
1978 (md): Add pointer_size and pointer_size_shift fields.
1979 (setup_unwind_header): New static function.
1980 (output_unw_records): Modify to use setup_unwind_header.
1981 (generate_unwind_image, dot_endp): Modify to use md.pointer_size and
1982 md.pointer_size_shift.
1983 (md_begin): Initialize md.pointer_size and md.pointer_size_shift.
1987 * README (Supported platforms): m88k no longer suffers bitrot.
1989 * config/tc-m88k.c (md_pseudo_table): Remove redundant "global".
1993 * struc-symbol.h (struct local_symbol): Rename lsy_offset to
1994 lsy_value. Correct typos in comments.
1995 * symbols.c (local_symbol_make): Update for name change.
1996 (local_symbol_convert): Likewise.
1998 (S_GET_VALUE): Likewise.
1999 (S_SET_VALUE): Likewise.
2000 (print_symbol_value_1): Likewise.
2001 (resolve_symbol_value): Likewise. Don't divide local sym values
2002 by OCTETS_PER_BYTE twice.
2006 * config/tc-ia64.c (md_pseudo_table): Add 2byte, 4byte, and 8byte.
2008 * config/tc-ia64.c (is_conditional_branch): Rewrite to exclude mod
2013 * read.c (s_fill): Correct spelling error in comments.
2015 * doc/c-m88k.texi: New file.
2016 * doc/Makefile.am (CPU_DOCS): Add c-m88k.texi.
2017 * doc/Makefile.in: Regenerate.
2018 * doc/all.texi: Set M880X0.
2019 * doc/as.texinfo: Hook in m88k-dependent documentation.
2023 * doc/c-mips.texi (MIPS Opts): Document 12000 as valid cpu.
2025 * config/tc-mips.c (mips_cpu_info_table): Add rm5200, rm5231, rm5261,
2026 and rm5721 as valid cpu strings.
2027 (md_show_usage): Add rm5200, rm5231, rm5261, rm5721.
2031 * config/tc-mips.c (md_apply_fix): Prevent addend from becoming zero
2032 if it's expected to be non-zero.
2036 * config/tc-sh.c (sh_frob_section): Replace symbol_get_frag() with
2039 * write.c (TC_FINALIZE_SYMS_BEFORE_SIZE_SEG): Default to 1.
2040 (write_object_file): Set finalize_syms to
2041 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG just before size_segs is
2044 * doc/internals.texi: Document
2045 TC_FINALIZE_SYMS_BEFORE_SIZE_SEG.
2049 * config/tc-ppc.c: Formatting fixes.
2053 * config/tc-m88k.c: Back out warning fixes from 2001-06-24, as
2054 they cause some subtle breakage. Will fix them again later.
2058 * config/obj-coff.c (obj_coff_ln): Treat a .ln directive
2059 outside of a function as a .appline directive.
2064 * config/tc-mips.c (mips_arch): New. Use mips_arch instead
2065 of mips_cpu for the ISA selection.
2066 (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
2067 (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
2068 (mips_tune): New. Use mips_tune for scheduling and optimization
2070 (append_insn): Use mips_tune and mips_arch.
2071 (macro_build): Ditto.
2073 (md_begin): Handle mips_arch, mips_tune and mips_cpu. For
2074 backwards compatability mips_cpu generates arch and tune.
2075 (md_show_usage): Document new behavior.
2077 * doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
2084 * write.c (write_object_file): Do not set finalize_syms until
2085 after the segments have been sized. Some backends may still
2086 need to access the syms's frags in order to adjust relaxed
2089 * config/tc-arm.c (do_ldst): Use MVN to build simple inverted
2094 * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
2095 subtract MD_PCREL_FROM_SECTION for 68k.
2096 (fixup_segment <Difference of 2 syms different seg>): Only fudge
2097 by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.
2101 * write.c (fixup_segment <Difference of 2 syms same seg>): If
2102 pcrel, subtract MD_PCREL_FROM_SECTION value.
2106 * stabs.c (generate_asm_file): Make local variable `len' a size_t.
2110 * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
2111 section symbols the same way as externs.
2115 * config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
2116 (emit_relocations): Ditto.
2118 (md_begin): Reformat comments to conform to the GNU standards.
2119 (md_assemble): Ditto.
2121 * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
2122 (md_parse_option): Mark parameters as unused.
2123 (md_show_usage): Ditto.
2124 (calcop): Adjust type of `reg_prefix' to char.
2126 (getval): Adjust type of local `c' to char.
2127 (md_create_short_jump): Mark from_addr, to_addr params as unused.
2128 (md_create_long_jump): Ditto.
2129 (md_estimate_size_before_relax): Mark parameters as unused.
2131 * config/tc-m88k.c (md_pseudo_table): Properly terminate the table
2132 to allay a possible compiler warning.
2136 * doc/internals.texi (CPU backend): Document md_atof.
2140 * config/tc-hppa.c (pre_defined_registers): Add %mrp (millicode
2141 return pointer) alias for %r2 or %r31, depending on 32 or 64 bit
2146 * config/tc-arm.c (cplong_flag): Rename to long_flag. All uses
2148 (insns): Remove entry for adrl. Add long_flag for adr.
2149 (do_adr): Handle `l' suffix.
2154 * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
2155 (md_apply_fix): Use it here. Replace printf with equivalent
2157 (tc_gen_reloc): Use as_bad_where instead of as_bad.
2158 (md_apply_fix): Here too.
2159 * config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
2160 * config/tc-m68k.c (tc_gen_reloc): Likewise.
2161 (md_convert_frag_1): Likewise.
2165 * config/tc-ppc.c (ppc_comm): Change default alignment to 4 bytes.
2169 * doc/Makefile.am (info): Depend on $(MANS).
2170 (as.1): Remove the prefix `$(srcdir)/'.
2171 * doc/Makefile.in: Regenerated.
2177 * config/tc-arm.c (do_msr): Remove restriction on usage of
2182 * dwarf2dbg.c (dwarf2_finish): Output file info even when no
2187 * config/tc-arm.c (thumb_shift): Improve wording of error message.
2188 (do_t_arit): Likewise.
2192 * config/tc-sh.c (md_pseudo_table): Only intercept the .file and
2193 .loc pseudos if the dfwarf2 functions are available.
2194 (md_assemble): Only call dwarf2_emit_insn if it is available.
2196 * expr.c: Fix typo in comment.
2200 * doc/as.texinfo (Infix Ops): Document that comparison and
2201 combiner operators can be used as infix operators.
2205 * config/tc-m68k.c (parse_mri_control_operand): Fix handling
2207 (swap_mri_condition): Add HS (alias fo CC) and LO (alias for CS).
2208 (reverse_mri_condition): Likewise.
2209 (swap_mri_condition): Issue warning for conditions that can not be
2211 (build_mri_control_operand): Fix order of operands (swapped).
2212 (build_mri_control_operand): Allow upper case extension in structured
2214 (s_mri_else): Likewise.
2215 (s_mri_next): Likewise.
2216 (s_mri_for): Likewise.
2217 (s_mri_if): Fix handling comment ('*') in mri mode.
2218 (s_mri_while): Likewise.
2219 * macro.c (macro_expand): Allow macro invocation with empty
2224 * config/tc-arm.c: Fix test for overlow of literal pool.
2228 * NEWS: Updated for the new -n option for the MIPS assembler.
2230 * config/tc-mips.c (md_show_usage): Add -n.
2232 * doc/as.texinfo: Document the new -n option.
2233 * doc/c-mips.texi: Likewise.
2234 * doc/as.1: Regenerated.
2238 * config/obj-coff.c (obj_coff_section): Formatting fix.
2240 * config/tc-i386.c (md_assemble): Accept branch hints as ",pt" and
2245 * config/tc-mips.c (warn_nops): New variable. Set to 0 to
2246 disable warning about all NOPS that the assembler generates.
2247 (macro): Warn NOPS generated only if warn_nops is not 0.
2248 (md_shortopts): Add `n'.
2249 (md_parse_option): Set warn_nops to 1 for `n'.
2253 * config/tc-mips.c (mips_ip): Properly handle illegal operands.
2257 * config/tc-mips.c (md_apply_fix): Don't adjust common
2258 extern/weak symbols for ELF.
2259 (md_estimate_size_before_relax): Treat weak like extern for
2261 (mips_fix_adjustable): Don't adjust extern/weak symbols for
2266 * Makefile.am: 'som' is not wrongly spelled 'some'.
2267 * Makefile.in: Regenerate.
2269 * config/tc-mips.c (mips16_mark_labels): Reduce number of calls to
2270 S_GET_VALUE by using a temp.
2271 (append_insn): Likewise, and for S_SET_VALUE too.
2272 (mips_emit_delays): Likewise.
2273 (my_getExpression): Likewise.
2274 (md_apply_fix): Likewise. Use "valueT" rather than "long" for "value".
2275 (mips16_extended_frag): Remove code concerned with avoiding
2276 locking in a frag address now that symbols are not finalized until
2277 relaxation is complete. Cater for first relaxation pass having
2278 bogus addresses. Use relax_marker to reliably determine whether a
2279 symbol frag has been reached on the current pass.
2283 * configure.in: Move "mips-*-linux-gnu*" before "mips-*-gnu*".
2284 * configure: Regenerate.
2288 * configure.in: Use MIPS_STABS_ELF for Linux/mips and remove
2290 * configure: Regenerate.
2294 * config/tc-mips.c (mips_pseudo_table): Add "extern" if
2295 MIPS_STABS_ELF is defined.
2299 * as.c (show_usage): Remove L from listing options. It is not a
2304 * config/tc-z8k.c: Removed many warnings by removing unused
2305 variables and tagging unused parameters as such.
2306 (md_begin): Fixed a typo (","instead of ";").
2307 (struct ctrl_table): Add parentheses to initialize array
2309 (struct flag_table): Likewise.
2310 (struct intr_table): Likewise.
2311 (struct table): Likewise.
2312 (check_operand): "#if 0"'ed since it doesn't seem to be used.
2316 * config/tc-m68k.c (md_show_usage): Add all supported ColdFire
2317 options to list (e.g. m5206e, m5307, m5407).
2321 * config/tc-s390.h (TC_FORCE_RELOCATION): Always emit relocations
2322 BFD_RELOC_VTABLE_INHERIT and BFD_RELOC_VTABLE_ENTRY.
2326 * config/tc-i386.c (md_assemble): Handle Pentium4 branch hints.
2327 <JumpByte, JumpDword insn output>: Remove dead code.
2331 * as.c (parse_args): Correct option name "listing-lhs-width2".
2335 * symbols.c (S_SET_EXTERNAL): Do not override a section symbol's
2340 * read.c (emit_leb128_expr): Call md_cons_align.
2344 * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA16,
2345 BFD_RELOC_SPARC_UA32 and BFD_RELOC_SPARC_UA64.
2346 (tc_gen_reloc): Likewise.
2347 (sparc_cons_align): Don't clear sparc_no_align_cons.
2348 (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA{16|32|64} for
2349 BFD_RELOC_{16|32|64} iff sparc_no_align_cons is set.
2353 * write.c (relax_segment <rs_space>): Check the section of a
2354 symbol to determine whether it is absolute rather than comparing
2355 its frag against zero_address_frag as listings play tricks with
2358 * config/tc-m68k.c (md_assemble): Ensure variable part of frag is
2359 allocated in the same chunk as the fixed part.
2363 * write.c (relax_segment <rs_space>): Calculate growth using
2364 addresses before stretch. Prevent repeated error messages.
2366 Use as_bad_where and as_warn_where to pinpoint errors.
2370 * symbols.c (resolve_symbol_value): Always set segment, even when
2371 not finalizing symbol value.
2373 * config/obj-ieee.c (write_object_file): Set finalize_syms.
2374 * config/obj-coff.c (write_object_file): Likewise.
2375 * (size_section): Remove rs_space assert as fr_symbol is no longer
2377 (fill_section): Likewise.
2379 * configure.in: Replace linuxoldld with linux*oldld.
2380 * configure: Regenerate.
2383 * config/tc-i386.c (md_convert_frag): Don't die on local symbols
2384 that have been finalized.
2386 * symbols.c (resolve_symbol_value): Clear sy_resolving before
2387 taking exit_dont_set_value.
2389 * write.c (relax_segment <rs_space>): Don't zap fr_symbol when
2394 * config/obj-coff.c (add_lineno): xcoff allows negative line
2396 * config/tc-ppc.c (ppc_stabx): fix generated symbol
2400 * write.c (write_object_file): Set finalize_syms = 1 before
2405 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add ISA_MIPS64 as 64 bit
2406 architecture, remove erraneous ISA_MIPS32.
2407 (md_show_usage): Add MIPS r12k support.
2408 (mips_cpu_info_table): Add MIPS r12k support.
2412 * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
2415 * symbols.c (resolve_symbol_value): Remove "finalize" param,
2416 instead use finalize_syms directly. Don't treat expressions
2417 specially with regard to finalize_syms. Update calls to self.
2418 (resolve_local_symbol): Update call to resolve_symbol_value.
2419 (S_GET_VALUE): Likewise. Return resolve_symbol_value if
2421 * symbols.h (resolve_symbol_value): Update prototype.
2422 * config/obj-aout.c (obj_crawl_symbol_chain): Update call
2423 to resolve_symbol_value.
2424 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2425 * config/obj-coff.c (do_relocs_for): Likewise.
2426 (yank_symbols): Likewise.
2427 (fixup_segment): Likewise.
2428 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2429 * config/tc-mips.c (md_convert_frag): Likewise.
2430 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2431 (ppc_fix_adjustable): Likewise.
2432 * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise.
2433 (dwarf2dbg_convert_frag): Likewise.
2434 * ehopt.c (eh_frame_estimate_size_before_relax): Likewise.
2435 (eh_frame_convert_frag): Likewise.
2436 * expr.c (make_expr_symbol): Likewise.
2437 * write.c (adjust_reloc_syms): Likewise.
2438 (write_object_file): Likewise.
2439 (relax_segment): Likewise.
2440 (fixup_segment): Likewise.
2441 (finalize_syms): Init to zero, and update comment.
2442 (write_object_file): Set finalize_syms to 1 rather than 2.
2443 * doc/internals.texi (sy_value): Mention finalize_syms.
2444 (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
2446 * config/tc-m68k.c (relaxable_symbol): Only treat external symbols
2447 as relaxable if embedded system, make weak syms non-relaxable.
2449 (tc_m68k_fix_adjustable): ..so it can be used here.
2450 (md_apply_fix_2): Sign extend without conditional.
2452 * config/tc-v850.c: Update copyright.
2456 * cgen.c (gas_cgen_tc_gen_reloc): Changed error message when
2457 howto entry is not found.
2461 * config/tc-mn10300.c (mn10300_force_relocation): Don't
2462 optimize differences between symbols in code sections to
2464 (mn10300_fix_adjustable): Don't adjust to section+offset
2465 relocations pointing at symbols in code sections.
2469 * config/tc-arc.c (md_assemble): Correct dwarf2_emit_insn param
2471 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn before
2472 opcodes are output rather than after. Delete insn_size.
2473 * config/tc-v850.c (md_assemble): Similarly, but delete
2478 * ehopt.c (eh_frame_convert_frag): Fix missed subtype adjustment
2483 * ehopt.c (get_cie_info): Rename from eh_frame_code_alignment;
2484 also collect whether to expect an FDE augmentation.
2485 (check_eh_frame): Rewrite as a state machine. Track where in
2486 an FDE we are located, skip any augmentation.
2487 (eh_frame_estimate_size_before_relax): Get code alignment from
2488 the fragment subtype.
2489 (eh_frame_relax_frag, eh_frame_convert_frag): Likewise.
2490 * read.c (emit_leb128_expr): Call check_eh_frame.
2494 * config/tc-mn10300.c (md_assemble): Anchor dwarf2 line info
2495 before a relaxable insns.
2499 * config/tc-mn10300.c (tc_gen_reloc): Don't reject differences
2500 between symbols if the base symbol is in the current section;
2501 emit a PC-relative relocation instead.
2505 * config/tc-arc.c: Update copyright and tidy source comments.
2506 (md_pseudo_table): Add directive .cpu back as an alias for
2507 .option. Add .file and .line for dwarf2 support.
2508 (arc_mach_type): Make bfd_mach_arc_6 default.
2509 (md_longopts): Add entry 'pre-v6' representing old command line
2510 option when assembling for 'arc5' core versions.
2511 (md_parse_option): Make OPTION_ARC same as OPTION_ARC6, for new
2513 (arc_code_symbol): Make symbol value for @h30 fixup expression
2514 equal to O_constant.
2515 (md_assemble): Call dwarf2_emit_insn.
2516 Include "dwarf2dbg2.h". Formatting fixes throughout file.
2517 * config/tc-arc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
2518 * doc/c-arc.texi (ARC_CORE_DEFAULT): Update to new default.
2522 * config/tc-ia64.c (special_linkonce_name): New.
2523 (make_unw_section): Map .gnu.linkonce.t.FOO text section into
2524 .gnu.linkonce.ia64unw{,i}.FOO.
2525 (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
2526 (dot_endp): Add comment about it.
2530 * config/tc-arm.c (arm_handle_align): When truncating an aligned
2531 block, ensure that the low order bits of the alignment are
2536 * config/obj-vms.c (obj_crawl_symbol_chain): Don't take address of
2539 * config/tc-fr30.c (md_estimate_size_before_relax): Return size of
2540 current variable part of frag.
2541 * config/tc-m32r.c (md_estimate_size_before_relax): Likewise.
2542 * config/tc-openrisc.c (md_estimate_size_before_relax): Likewise.
2543 * config/tc-m68hc11.c (RELAX_STATE): Define.
2544 (RELAX_LENGTH): Define.
2545 (md_estimate_size_before_relax): Handle non-relaxable cases
2546 separately from relaxable cases for clarity, and return correct
2547 size for multi-pass relaxation.
2548 * config/tc-tahoe.c (RELAX_LENGTH): Correct.
2549 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2550 (md_convert_frag): Remove "length_code".
2551 * config/tc-vax.c (RELAX_STATE): Define.
2552 (RELAX_LENGTH): Define.
2553 (md_relax_table): Add missing entry.
2554 (md_estimate_size_before_relax): As for tc-m68hc11.c.
2555 (md_convert_frag): Remove "length_code".
2556 * config/tc-ns32k.c (md_estimate_size_before_relax): Simplify and
2557 don't bother setting fr_var. Return correct size for multi-pass
2559 * config/tc-v850.c (md_estimate_size_before_relax): Rewrite.
2560 (md_convert_frag): Don't bother clearing fr_var.
2561 (md_pseudo_table): Correct initialization.
2562 * config/tc-h8500.c (md_convert_frag): Don't bother clearing fr_var.
2563 (md_estimate_size_before_relax): No need to set fr_var.
2564 * config/tc-mcore.c (md_convert_frag): Don't bother clearing fr_var.
2565 (md_estimate_size_before_relax): No need to set fr_var.
2569 * config/tc-ia64.c (generate_unwind_image): Align the fragment
2570 beginning a function's unwind info block.
2574 * config/tc-mn10300.c (md_apply_fix3): Accept PC-relative relocs.
2578 * config/tc-m68k.c: Instead of replacing -1 by 64 in assignment to
2579 fx_pcrel_adjust explicitly sign extend when reading it.
2583 * config/tc-m68k.c (md_estimate_size_before_relax): Set fr_var
2584 from md_relax_table, and combine some switch cases.
2588 * config/tc-mn10300.c (md_assemble): Subtract operand->shift
2589 from offset in non-pcrel operands too.
2593 * config/tc-arm.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
2594 * config/tc-arm.c (arm_handle_align): Do not insert more than
2595 MAX_MEM_FOR_RS_ALIGN_CODE bytes.
2596 (arm_frag_align_code): Use MAX_MEM_FOR_RS_ALIGN_CODE.
2600 * Makefile.am (TARG_ENV_HFILES): Add te-hppa64.h and te-hppalinux64.h.
2602 * Makefile.in: Regenerate.
2603 * configure.in: Remove duplicate mips-*-ecoff* entry.
2604 * configure: Regenerate.
2606 * config/obj-ecoff.c (obj_pseudo_table): Fix terminating entry.
2607 (n_names): Cast away type mismatch.
2608 (ecoff_sec_sym_ok_for_reloc): Add unused attribute.
2609 (obj_ecoff_frob_symbol): Likewise.
2610 * ecoff.c: (add_file): Add unused attribute.
2611 (ecoff_directive_begin): Likewise.
2612 (ecoff_directive_bend): Likewise.
2613 (ecoff_directive_def): Likewise.
2614 (ecoff_directive_dim): Likewise.
2615 (ecoff_directive_scl): Likewise.
2616 (ecoff_directive_size): Likewise.
2617 (ecoff_directive_type): Likewise.
2618 (ecoff_directive_tag): Likewise.
2619 (ecoff_directive_val): Likewise.
2620 (ecoff_directive_endef): Likewise.
2621 (ecoff_directive_end): Likewise.
2622 (ecoff_directive_ent): Likewise.
2623 (ecoff_directive_extern): Likewise.
2624 (ecoff_directive_file): Likewise.
2625 (ecoff_directive_fmask): Likewise.
2626 (ecoff_directive_frame): Likewise.
2627 (ecoff_directive_mask): Likewise.
2628 (ecoff_directive_loc): Likewise.
2629 (mark_stabs): Likewise.
2630 (ecoff_stab): Likewise.
2631 (ecoff_frob_symbol): Cast away type mismatch.
2632 (ecoff_padding_adjust): Likewise.
2633 (ecoff_build_symbols): Likewise.
2634 (ecoff_build_procs): Likewise.
2635 (ecoff_build_aux): Likewise.
2636 (ecoff_build_strings): Likewise.
2637 (ecoff_build_fdr): Likewise.
2638 (ecoff_build_debug): Likewise.
2639 * itbl-ops.c (itbl_assemble): Variable initialization.
2643 * config/tc-i386.c (i386_displacement): Call as_bad for bad GOTOFF
2644 expressions rather than triggering an assert.
2648 * config/tc-openrisc.c: New file.
2649 * config/tc-openrisc.h: Likewise.
2651 * Makefile.am: Add OpenRISC target.
2652 * Makefile.in: Regenerated.
2654 * configure.in (openrisc-*-*): Add target.
2655 * configure: Regenerated.
2659 * config/tc-arm.c (arm_frag_align_code): Change error message to
2660 more explanatory version.
2664 * config/tc-mips.c (md_parse_option): Also accept
2665 elf64-tradbigmips and elf64-tradlittlemips for OPTION_64.
2669 * config/tc-ia64.c (dot_spillmem_p): Fix output_spill_?sprel_p()
2670 argument passing order: predicate goes last, not first.
2674 * configure.in: Add arm-vxworks.
2675 * configure: Regenerate.
2679 * config/tc-arm.c (arm_handle_align): New Function: Generate
2680 no-op filled alignment frags.
2681 (arm_frag_align_code): New Function: Create a code alignment frag.
2682 (arm_init_frag): New Function: Initialse the target dependent
2685 * config/tc-arm.h (TC_FRAG_TYPE): Define.
2686 (TC_FRAG_INIT): Define.
2687 (HANDLE_ALIGN): Define.
2688 (md_do_align): Define.
2692 * config/obj-coff.c (do_linenos_for): Check to see if the filename
2693 symbol has been initialised before extracting its symbol index.
2697 * configure: Regenerated with the right version of autoconf.
2701 * config/tc-z8k.c (build_bytes): 12 and 16 bit displacements now
2702 generate R_CALLR and R_REL16 relocations
2706 * config/tc-d10v.h (tc_frob_label): Update the symbol's frag
2707 since frag_now can change after d10v_cleanup is called.
2711 * configure.in: Add the em type for FreeBSD targets.
2712 * configure: Regenerate.
2716 * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
2717 * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
2719 * config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
2720 pc-relative relocations not placed at the end of the instruction.
2724 * tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
2729 * config/obj-elf.c (obj_elf_change_section): Add entsize argument,
2730 handle SHF_MERGE and SHF_STRINGS.
2731 (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
2732 (obj_elf_section): Allow additional argument specifying entity size.
2733 * write.c (adjust_reloc_syms): Keep relocations against local symbols
2734 in SEC_MERGE sections.
2738 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.
2742 * expr.c (operand): Pass &c to md_parse_name().
2743 * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.
2747 * config/tc-mips.c: Support ELF64 for traditional MIPS targets.
2749 * Makefile.am: (TARG_ENV_HFILES): Add tc-mips.h.
2750 * Makefile.in: Regenerated.
2752 * configure.in: Use traditional MIPS targets for Linux/MIPS.
2753 * configure: Regenerated.
2757 * config/tc-mn10300.c (xr_registers): Added `pc'.
2761 * configure.in: Add h8500-*-coff and h8500-*-rtems targets.
2762 * configure: Regenerate.
2764 * config/tc-h8500.c (md_estimate_size_before_relax): Add missing
2765 cases, and always return size based on current fr_subtype.
2766 (md_begin): Move initialization of md_relax_table..
2767 (md_relax_table): ..to static initializer. Set rlx_length for
2768 UNDEF_WORD_DISP cases.
2769 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2770 (md_begin): Likewise.
2771 (md_relax_table): Likewise.
2772 * config/tc-mcore.c (md_estimate_size_before_relax): Likewise.
2773 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2774 Set rlx_backward and rlx_forward to zero for unused states.
2775 * config/tc-sh.c (md_estimate_size_before_relax): Likewise.
2776 (md_relax_table): Set rlx_length for UNDEF_WORD_DISP cases.
2777 (UNCOND12, UNCOND32): Remove duplicate defines.
2781 * config/tc-cris.c (md_estimate_size_before_relax) <case
2782 ENCODE_RELAX (STATE_CONDITIONAL_BRANCH, STATE_UNDF)>: Don't emit
2783 32-bit branch, just set fragP->fr_subtype. Set fragP->fr_var.
2784 <all cases>: Always set fragP->fr_var using md_cris_relax_table.
2785 Add cases to cover all relax states.
2786 (cris_insn_first_word_frag): New.
2787 (md_assemble): Call cris_insn_first_word_frag to get the first
2788 frag in an insn, not frag_more. Don't call dwarf2_emit_insn at
2789 end. Drop variable insn_size.
2790 (gen_bdap): Call cris_insn_first_word_frag, not frag_more.
2791 (cris_sym_leading_underscore): Wrap first as_bad parameter in _().
2792 (cris_sym_no_leading_underscore, s_cris_file, s_cris_loc): Ditto.
2794 * write.c (write_object_file): Reset broken word state before
2799 * listing.c (listing_listing): Enable listing on EDICT_NOLIST_NEXT
2800 for one line if not already enabled.
2801 * cond.c (s_elseif): Correct conditional assembly listing.
2804 * cond.c (s_endif): Correct handling of "if .. elseif .." trees.
2805 Don't abort on NULL current_cframe.
2809 * dwarf2dbg.c (dwarf2_directive_file): Fix warnings.
2810 (dwarf2dbg_convert_frag): Pass `finalize_syms' to resolve_symbol_value.
2811 * config/obj-aout.c (obj_crawl_symbol_chain): Likewise.
2812 * config/obj-bout.c (obj_crawl_symbol_chain): Likewise.
2813 * config/obj-coff.c (do_relocs_for): Likewise.
2814 (yank_symbols): Likewise.
2815 (fixup_segment): Likewise.
2816 * config/tc-ppc.c (ppc_frob_symbol): Likewise.
2817 (ppc_fix_adjustable): Likewise.
2818 * config/tc-mips.c (md_convert_frag): Likewise.
2819 * config/obj-vms.c (obj_crawl_symbol_chain): Likewise.
2820 * ehopt.c (eh_frame_convert_frag): Likewise.
2821 * expr.c (make_expr_symbol): Likewise.
2823 * frags.h (struct frag): Add last_fr_address. Reorder fields for
2825 * symbols.c (resolve_symbol_value): Don't fix expression values
2826 until relaxation is complete.
2827 (resolve_local_symbol): Pass `finalize_syms' to resolve_symbol_value.
2828 (S_GET_VALUE): Likewise, and return unresolved expression value.
2829 * write.c (finalize_syms): New.
2830 (relax_and_size_seg): Split into..
2831 (relax_seg): New function, returns 1 if anything changed..
2832 (size_seg): And the remainder of relax_and_size_seg.
2833 (fixup_segment): Arrange for final resolution of sym values.
2834 (adjust_reloc_syms): Likewise.
2835 (write_object_file): Likewise, and repeatedly call relax_seg until
2836 nothing more changes.
2837 (relax_segment): Return 1 if anything changed. Use correct types
2838 for rs_org `target' and `after'.
2839 * write.h (finalize_syms): Declare.
2840 (relax_segment): Update prototype.
2842 * config/tc-sh.c (md_estimate_size_before_relax): Add extra
2843 do-nothing cases to switch to avoid abort on a second relaxation
2844 pass, and tidy code a little.
2845 * config/tc-cris.c (md_estimate_size_before_relax): Likewise.
2846 * config/tc-h8500.c (md_estimate_size_before_relax): Likewise.
2847 * config/tc-w65.c (md_estimate_size_before_relax): Likewise.
2848 * config/tc-i386.c (UNCOND_JUMP, COND_JUMP, COND_JUMP86): Decrement.
2849 (md_relax_table): Remove first four unused entries. Increment
2850 rlx_length by one throughout table, and update comments to suit.
2851 (md_estimate_size_before_relax): Return size of current variable
2852 part of frag to reflect reality when relaxing more than once.
2853 * config/tc-mcore.c (COND12, UNCD12): Rename to DISP12 throughout.
2854 (COND32, UNCD32): Rename to DISP32 throughout.
2855 (UNDEF_WORD_DISP): Renumber to 3.
2856 (md_estimate_size_before_relax): Add extra do-nothing cases.
2857 * config/tc-mn10200.c (md_estimate_size_before_relax): Rewrite.
2858 * config/tc-mn10300.c (md_estimate_size_before_relax): Rewrite.
2859 * config/tc-ns32k.c (md_estimate_size_before_relax): Add cases to
2860 handle word and dword branches.
2864 * config/tc-cris.h (tc_fix_adjustable): Allow only
2865 BFD_RELOC_CRIS_32_GOTREL of the PIC relocs.
2866 * config/tc-cris.c (cris_get_pic_suffix): Correct reloc type in
2867 example in comment to valid type.
2871 * read.c (equals): Set to local for COFF only if it hasn't been
2876 * config/tc-hppa.c (DEFAULT_LEVEL): Define.
2877 (md_begin): Use it when setting default architecture.
2881 * read.c (equals): (for COFF) default symbols to being local.
2885 * configure.in (cris-*-*): Change default emulation to criself.
2886 (cris-*-*aout*): New rule.
2887 * configure: Regenerate.
2891 * config/tc-s390.c (tc_s390_fix_adjustable): Add test for
2892 BFD_RELOC_390_GOTENT.
2893 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Add test for
2894 BFD_RELOC_390_GOTENT.
2898 * config/tc-s390.h (TC_FORCE_RELOCATION): Define.
2899 * config/tc-s390.c (s390_force_relocation): New function: Force
2900 relocations for VTINHERIT relocs.
2904 * doc/as.texinfo: Put @c man begin to generate the as man page.
2905 When generating man, define all the variables. Re-organize some
2906 options to obtain better indentation of man page.
2907 * doc/Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
2908 (as.1): Build from as.texinfo.
2909 * doc/Makefile.in: Regenerate.Index: binutils/Makefile.am
2913 * config/tc-i386.c (i386_scale): Accept an absolute expression for
2914 scale factor, and return the end of the expression.
2915 (i386_operand): Modify for above.
2919 * doc/as.texinfo: Document --listing-XXX command line switches.
2920 Explain why listings behave differently when -pipe is used.
2924 * write.c (fix_new_exp): Print an error if passed a register.
2928 * config/tc-cris.c: Tweak attribution. Fix typos. PIC support.
2929 (PIC_SUFFIX_CHAR): New macro.
2930 (cris_get_pic_suffix, cris_get_pic_reloc_size): New functions.
2931 (pic): New variable.
2932 (md_longopts): New option --pic.
2933 (OPTION_PIC): Define.
2934 (md_estimate_size_before_relax): Tweak longish comment.
2935 (md_create_long_jump): Make the long jumps generate ADD.D offset,PC.
2936 (md_assemble): Handle a PIC relocation on prefix and normal
2937 instruction operands.
2938 <output_instruction.insn_type == CRIS_INSN_BRANCH>: Handle
2939 "complex" operand expressions. Call frag_more outside
2940 gen_cond_branch_32 parameter list.
2941 (cris_process_instruction): Handle PIC relocs on parsed
2942 operand expressions. Validize PIC reloc sizes.
2943 (get_autoinc_prefix_or_indir_op): Handle PIC suffix.
2944 (gen_bdap): Handle "complex" operand expressions.
2945 (gen_cond_branch_32): Use as_warn_where, not as_warn. Use
2946 ADD.D offset,PC as jump instruction if generating PIC. Generate
2947 error instead of crashing on complex expressions.
2948 (cris_number_to_imm): Add segT parameter. All callers changed.
2949 Use segT parameter, not now_seg, for segment of fixup. Handle
2950 PCREL relocations but check that they are fully resolved.
2951 (md_parse_option): Handle OPTION_PIC.
2952 (tc_gen_reloc): Handle PIC relocs.
2953 (md_show_usage): Update for --pic.
2954 (md_apply_fix3): Renamed from md_apply_fix.
2955 (md_pcrel_from): Accept emitting PCREL relocs when ELF.
2956 (md_cris_force_relocation): Force relocation for PIC relocs.
2958 * config/tc-cris.h: Tweak attribution.
2959 (MD_APPLY_FIX3): Define.
2960 (IS_CRIS_PIC_RELOC): New macro.
2961 (TC_RELOC_RTSYM_LOC_FIXUP): Define.
2962 (tc_fix_adjustable): Don't adjust a globally visible symbol when
2964 (tc_frob_symbol): Avoid emitting undefined symbols.
2968 * frags.h (struct frag): Add relax_marker.
2969 * write.c (is_dnrange): Delete.
2970 (relax_frag): Use correct types for `aim', `target', `address'.
2971 Delete `offset', `was_address'. Test `relax_marker' instead of
2972 using fragile (and slow) address test.
2973 (relax_segment): Init and flip `relax_marker'.
2977 * config/tc-i386.c (md_assemble <REGISTER_WARNINGS>): Correct
2982 * config/tc-m68hc11.c (md_pseudo_table): Recognize xrefb to comply
2983 with 'Motorola specification for assembly language input standard'.
2987 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.
2988 (dwarf2_directive_loc): Don't use them.
2989 (dwarf2_directive_file): Reject duplicate file definitions.
2990 (get_filenum): Zero allocated memory.
2991 (out_file_list): Complain about missing file definitions.
2995 * read.c (do_org): Handle complex expressions.
2996 * cgen.c (gas_cgen_finish_insn): Likewise.
3000 * config/tc-ia64.c (md): New member keep_pending_output.
3001 (ia64_flush_pending_output): Flush only if md.keep_pending_output
3003 (dot_xdata): Turn on md.keep_pending_output for the duration of
3005 (dot_xfloat_cons): Ditto.
3006 (dot_xstringer): Ditto.
3007 (dot_xdata_ua): Ditto.
3008 (dot_xfloat_cons_ua): Ditto.
3012 * config/tc-ia64.c (ia64_unrecognized_line, case '['): Add local
3017 * config/tc-sh.c (parse_reg): Match capital MACH and MACL.
3021 * stabs.c (s_stab_generic): Don't corrupt the notes obstack by
3022 blindly freeing string if it isn't at the top of the obstack.
3026 * config/tc-i386.c (RELOC_ENUM): Define. Use throughout file.
3027 (NUM_FLAG_CODE): Define.
3028 (lex_got): New function.
3029 (got_reloc): New global var.
3030 (x86_cons_fix_new): New function.
3031 (x86_cons): New function.
3032 (i386_immediate): Use lex_got here, replacing inline code. Change
3033 "ignoring junk.." error message to "junk.."
3034 (i386_displacement): Likewise.
3035 * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Define.
3036 (x86_cons): Declare.
3037 (TC_CONS_FIX_NEW): Define.
3038 (x86_cons_fix_new): Declare.
3042 * config/tc-arm.c (md_begin): Always set machine type based on
3047 * config/tc-i386.c (struct _i386_insn): Rename disp_reloc to reloc.
3048 (md_assemble) <smallest displacement>: Use correct field of i.op[]
3050 <JumpInterSegment output>: Use correct i.disp_reloc[].
3051 <immediate output>: Likewise.
3055 * config/tc-arm.c (md_apply_fix3): Clear bit zero of offset in
3060 * config/tc-m68k.c : Add 5407 to archs[] table.
3061 (HAVE_LONG_BRANCH): Add mcf5407.
3062 (select_control_regs): Recognize 5407.
3066 * config/tc-m32r.c (expand_debug_syms): Call frag_align_code rather
3071 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): New macro.
3072 (gen_to_words): Print warnings if NaNs are found and the target CPU
3073 does not support them. Allow largest exponent to be used in normal
3074 numbers if TC_LARGEST_EXPONENT_IS_NORMAL evaluates to true.
3078 * config/tc-i386.c (tc_gen_reloc): Remove ugly hack which is not needed
3079 anymore since we use bfd_elf_generic_reloc now.
3080 (md_apply_fix3): Only apply hack for partial_inplace if not using RELA.
3084 * configure.in (BFD_VERSION): New.
3085 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3086 * configure: Regenerate.
3087 * Makefile.am: Run "make dep-am"
3088 * Makefile.in: Regenerate.
3089 * doc/Makefile.in: Regenerate.
3093 * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set
3094 SEC_NEVER_LOAD when the 'n' flag is used.
3095 Add SEC_NEVER_LOAD to matchflags.
3099 * symbols.c (decode_local_label_name): Initialize message_format
3100 only when an error is reported (perf pb due to I18N).
3104 * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if
3105 BFD_ASSEMBLER is not defined.
3109 * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
3110 done if it's against a symbol.
3114 * config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
3115 target formats if applicable.
3116 * config/te-ia64aix.h: New. Configuration for AIX5 on IA-64.
3117 * Makefile.am (TARG_ENV_HFILES): Added config/te-ia64aix.h.
3118 * Makefile.in: Regenerated.
3119 * configure.in: Added configuration for ia64-*-aix*.
3120 * configure: Regenerated.
3124 * config/tc-ia64.c (enum operand_match_result): New type.
3125 (operand_match): Change return type to operand_match_result.
3126 Fix all returns appropriately, adding support for returning the
3127 out-of-range result.
3128 (parse_operands): New locals result, error_pos, out_of_range_pos,
3129 curr_out_of_range_pos. Rewrite operand matching loop to give better
3134 * config/tc-ia64.c (struct unwind): Add member "prologue_count".
3135 (dot_proc): Clear unwind.prologue_count to zero.
3136 (dot_prologue): Increment unwind.prologue_count.
3137 (dot_restore): If second operand is omitted, use
3138 unwind.prologue_count -1 for "ecount" (# of additional regions to
3139 pop). Decrement unwind.prologue_count by number of regions
3144 * doc/as.texinfo (Section): Note that some flags to the COFF
3145 version of .section remove attributes rather than setting them.
3149 * config/tc-pdp11.c: Fix formatting.
3150 * config/tc-pdp11.h: Likewise.
3154 * config/tc-i386.c (tc_i386_fix_adjustable): Fix GOTPCREL GOT
3159 * configure.in (cpu_type, arch): Add a generic FreeBSD specification as
3160 all FreeBSD platforms should look the same at this level.
3161 * configure: Rebuilt.
3162 * config/tc-i386.c: Add support for old FreeBSD a.out hosts.
3166 * Makefile.am: Add PDP-11 target.
3167 * configure.in: Likewise.
3168 * config/tc-pdp11.c: New file.
3169 * config/tc-pdp11.h: New file.
3170 * doc/Makefile.am: Add PDP-11 documentation.
3171 * doc/all.texi: Likewise.
3172 * doc/as.texinfo: Likewise.
3173 * doc/c-pdp11.texi: New file.
3177 * cgen.c (gas_cgen_md_apply_fix3): Support BFD_RELOC_64.
3181 * config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
3182 reloc instead of a 0 reloc.
3183 (md_apply_fix3): Check for BFD_RELOC_UNUSED instead of 0, and mark it
3185 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Likewise.
3189 * write.c (is_dnrange): Stop as soon as the address becomes
3191 (relax_frag): Add segment parameter. Only call symbol_get_frag
3192 once. Only call is_dnrange if the symbol is in the same segment,
3193 and the symbol address is larger.
3194 (relax_segment): Pass segment to md_relax_frag and relax_frag.
3195 * write.h (relax_frag): Update declaration.
3196 * config/tc-fr30.c (fr30_relax_frag): Add segment parameter. Pass
3198 * config/tc-m32r.c (m32r_relax_frag): Likewise.
3199 * config/tc-m32r.h (md_relax_frag): Add segment parameter.
3200 (m32r_relax_frag): Update declaration.
3201 * config/tc-mips.h (md_relax_frag): Add segment parameter.
3202 * config/tc-tic54x.h (md_relax_frag): Likewise.
3203 * doc/internals.texi (CPU backend): Update documentation for
3208 * doc/c-i386.texi (i386-Arch): Add "jumps"/"nojumps" blurb.
3209 Mention effect of < 386 architectures on jump promotion.
3210 (i386-Jumps): xref above. Don't assume long disp is 32 bits.
3212 * config/tc-i386.c (no_cond_jump_promotion): New.
3213 (set_cpu_arch): Parse "jumps" arch modifier.
3214 (insn_size): Modify usage comment.
3215 (ENCODE_RELAX_STATE): Reformat and protect macro arg.
3216 (SIZE_FROM_RELAX_STATE): Rename to DISP_SIZE_FROM_RELAX_STATE.
3217 (TYPE_FROM_RELAX_STATE): New define.
3218 (UNCOND_JUMP, COND_JUMP): Renumber.
3219 (md_relax_table): Reorder to suit.
3220 (COND_JUMP86): New define.
3221 (md_relax_table): Handle COND_JUMP86 cases. Add a few comments.
3222 (md_assemble): Create frag var for jumps of max size, encode relax
3223 state for COND_JUMP86.
3224 (md_estimate_size_before_relax): Handle COND_JUMP86 cases, and
3225 leave conditional jumps small if no_cond_jump_promotion.
3226 (md_convert_frag): Likewise.
3228 * expr.c (operator): Don't bump input_line_pointer for two char
3229 operators. Instead return operator size via new param num_chars.
3230 (expr): Use above to parse multi-char operators correctly.
3234 * config/tc-i386.c (i386_displacement): Fix handling of
3235 BFD_RELOC_X86_64_GOTPCREL.
3236 (i386_validate_fix): Likewise.
3240 * config/tc-arm.c (do_ldst): Improve warnings for unpredictable
3241 ldrt/strt instructions.
3245 * config/tc-mips.c (macro): For M_LA_AB emit a
3246 BFD_RELOC_MIPS_CALL16 relocation or a
3247 BFD_RELOC_MIPS_CALL_HI16/BFD_RELOC_MIPS_CALL_LO16 pair instead of
3248 BFD_RELOC_MIPS_GOT16 and
3249 BFD_RELOC_MIPS_GOT_HI16/BFD_RELOC_MIPS_GOT_LO16, respectively for
3250 loading the jump register when generating SVR4_PIC code.
3254 * configure.in: Make 'mipself' and 'mipsecoff' emulations
3255 map to MIPS-specific files, as they used to do before the
3256 change on 2000-05-21.
3257 * configure: Regerate.
3261 * config/tc-mips.c (md_parse_option): Don't try to compile
3262 ELF-only option code if not ELF.
3266 * config/tc-ia64.h (md_elf_section_type): New macro.
3267 (ELF_TC_SPECIAL_SECTIONS): Drop .IA_64.unwind and .IA_64.unwind_info
3268 (they're now handled via ia64_elf_section_type.
3270 * config/tc-ia64.c (unwind): New members saved_text_seg,
3271 saved_text_subseg, and force_unwind_entry.
3272 (optimize_unw_records): New function to optimize away unnecessary
3274 (ia64_elf_section_type): New function.
3275 (output_unw_records): Generate unwind info only if the size is
3276 non-zero or if it's forced for some other reason (e.g.,
3277 handlerdata or a personality routine).
3278 (generate_unwind_image): Don't switch back to previous
3279 section---stay inside the unwind info section instead so that
3280 handlerdata that may follow goes into the right place.
3281 (dot_handlerdata): Force generation of unwind entry and save the
3282 current active text segment before generating unwind image.
3283 (dot_unwentry): Force generation of unwind entry.
3284 (dot_personality): Ditto.
3285 (dot_endp): Generate unwind table entry only if there is
3286 some unwind info or the unwind entry was forced.
3288 * config/tc-ia64.c (make_unw_section_name): New macro to form
3289 unwind section name.
3290 (generate_unwind_image): Add "text_name" argument. Use it to
3291 form unwind section name.
3292 (dot_handlerdata): Determine current segment (section) name and
3293 pass it to generate_unwind_image().
3294 (dot_endp): Determine current segment (section) name and use
3295 it to determine the appropriate unwind section name.
3296 (ia64_md_do_align): Add missing ATTRIBUTE_UNUSED declarations to
3297 n, fill, and max arguments.
3301 * Makefile.am: Add linux target for S/390.
3302 * configure.in: Likewise.
3303 * config/tc-s390.c: New file.
3304 * config/tc-s390.h: New file.
3308 * config/tc-sh.c (md_pseudo_table): Add uaquad. Use s_uacons for
3309 2byte, 4byte and 8byte.
3313 * config/tc-hppa.c (pa_build_unwind_subspace): Don't call
3314 md_number_to_chars with size > sizeof (valueT).
3318 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): Do fixup if
3319 there is no relocation.
3323 * config/tc-ia64.h (TC_RELOC_RTSYM_LOC_FIXUP): New. Defined.
3325 * config/tc-ia64.c (md_parse_option): Only accept the valid
3326 ia64 options on "-axxx".
3330 * config/tc-ia64.c (errata_nop_necessary_p): Return 0 instead of
3331 aborting for invalid operands.
3335 * config/tc-hppa.c (fix_new_hppa): Pass in unwind directly rather
3336 than via pointer. Update all callers.
3337 (UNWIND_LOW32): Define.
3338 (UNWIND_HIGH32): Define.
3339 (pa_build_unwind_subspace): Use the above macros instead of dumping
3340 bitfields directly. Call frag_more once rather than multiple times.
3341 (md_assemble): Use UNWIND_LOW32.
3342 (pa_entry): Likewise
3343 (pa_procend): Likewise.
3344 (process_exit): Use UNWIND_HIGH32.
3348 * config/tc-m68hc11.h (LISTING_HEADER): Use m68hc11_listing_header
3349 function to select the header according to the cpu.
3350 (md_after_pass_hook, md_do_align): Remove.
3351 (md_cleanup, m68hc11_cleanup): Remove.
3352 (md_pcrel_from_section): Declare.
3353 * config/tc-m68hc11.c (build_dbranch_insn): Remove insn_size.
3354 (build_jump_insn, build_insn): Likewise.
3355 (m68hc11_listing_header): New function.
3356 (m68hc11_cleanup): Remove.
3360 * config/tc-m68hc11.c (relaxable_symbol): Relax externally visible
3361 symbols because there is no support for shared libraries and these
3362 symbols can't be overridden (unless they are weak).
3366 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
3367 for the compilation unit with a zero byte.
3371 * config/tc-hppa.c (pa_ip): Support 12 bit branches to absolute
3372 destinations. Correct range check for 17 and 22 bit branches.
3376 * config/tc-m68k.c (tc_gen_reloc): Do not abort if tcbit is
3377 still set. Issue an error message instead.
3378 (md_estimate_size_before_relax): Delete unused variable
3379 'buffer_address'. Fixup parentheses around if statement.
3383 * as.c: Fix formatting.
3384 * ehopt.c: Likewise.
3385 * messages.c: Likewise.
3386 * stabs.c: Likewise.
3387 * symbols.c: Likewise.
3391 * config/tc-m32r.c (m32r_handle_align): Declare type of fragp.
3395 * config/tc-alpha.c: Fix formatting.
3399 * config/tc-alpha.c: Fix formatting.
3403 * config/tc-alpha.c: Fix formatting.
3407 * config/tc-arm.c (ldm_flags): Remove redundant bit from "fa" and
3409 (stm_flags): Remove redundant bit from "ed" and "da" flags.
3413 * configure.in (cpu_type, arch): Match i386 too.
3414 * configure: Rebuilt.
3418 * config/tc-i386.c: Fix formatting.
3422 * config/tc-hppa.c (tc_gen_reloc): Use SEGREL32 instead of DIR32
3423 relocs for .PARISC.unwind section.
3425 * config/tc-hppa.c (pa_build_unwind_subspace): Build unwind
3426 depending on section flags, not just for .text.
3430 * config/tc-ia64.c (ia64_flush_insns): Handle unwind directives
3431 not immediately followed by an instruction.
3435 * config/tc-m68hc11.c: Fix formatting.
3439 * symbols.c (colon): Change 'already defined symbol' from a
3440 fatal error to an ordinary error. There is no reason why this
3441 error should be fatal.
3443 * message.c (as_fatal): Delete output file, if one has been
3448 * config/tc-hppa.h (TARGET_FORMAT): Add hppa-linux variants.
3452 * config/tc-alpha.c: Fix formatting.
3453 * config/tc-arc.c: Likewise.
3454 * config/tc-arc.h: Likewise.
3455 * config/tc-d10v.c: Likewise.
3456 * config/tc-i370.c: Likewise.
3457 * config/tc-i386.c: Likewise.
3458 * config/tc-i960.c: Likewise.
3459 * config/tc-m68k.c: Likewise.
3460 * config/tc-ppc.c: Likewise.
3461 * config/tc-sparc.c: Likewise.
3462 * config/tc-tahoe.c: Likewise.
3463 * config/tc-vax.c: Likewise.
3465 * config/tc-arc.c: Fix formatting.
3467 * config/tc-arc.c: Fix formatting.
3471 * config/tc-hppa.c (pa_build_unwind_subspace): Use SEGREL32 for
3472 both 32 and 64 bit ELF.
3474 * config/tc-hppa.c (pa_ip): Store `a' flag in bit zero of operand
3475 and don't bother storing `m' for "ce" completer. Tidy handling of
3476 'J' and 'K' operands to suit. Handle '<' and '>' operands.
3480 * config/tc-i386.h (TARGET_MACH): New macro.
3481 (i386_mach): Declare.
3482 * config/tc-i386.c (i386_mach): New function.
3486 * doc/as.texinfo: Fix spelling and cross-references.
3488 * doc/c-arm.texi: Fix typos. Say that `;' is a line separator
3489 character for all systems, not just GNU/Linux. Make it explicit
3490 that `-k' doesn't affect code generation, just ELF flags.
3494 * config/tc-i386.c (md_assemble): Check cpu_flags even for nullary
3499 * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
3503 * as.c (print_args): Update copyright date to 2001.
3507 * doc/c-arc.texi: New file.
3508 Some sections to be expanded.
3512 * config/tc-i386.c (md_longopts): Recognize "--64" only for ELF.
3513 (md_parse_option): Always accept "--32".
3517 * as.h (TC_ARC): Ensure struc-symbol.h included.
3518 * as.c (dwarf2dbg.h): Include to remove implicit declaration
3520 * struc-symbol.h (SYMBOLS_NEED_BACKPOINTERS): Define.
3521 (TARGET_SYMBOL_FIELDS) added.
3523 * doc/Makefile.am (CPU_DOCS): Added c-arc.texi.
3524 * doc/c-arc.texi: New file.
3525 Some sections to be expanded.
3526 * doc/as.texinfo: Update command-line options.
3527 Removed outdated text for ARC dependant features, instead include
3528 text from above file.
3530 * config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS): Define local flag.
3531 (TARGET_SYMBOL_FIELDS): Alias to previous definition.
3532 (targ-cpu.h) header.
3534 * config/tc-arc.c: New updated configuration for
3535 ARC, including selection of core variants, and extensibility of
3536 instructions, registers etc. through directives.
3538 * config/tc-arc.c (arc_extinst): Minor corrections for
3540 (arc_common) Likewise. Make alignment argument optional for local
3541 symbols also, with default of zero.
3545 * config/tc-m68hc11.c (md_estimate_size_before_relax): Fix
3546 STATE_INDEXED_OFFSET when the symbol is undefined (16-bit offset).
3547 (build_indexed_byte): Don't relax indexed byte, use 16-bit offset
3548 and fix_new_exp() instead.
3549 (md_convert_frag): For indexed post byte use the symbol value
3550 rather than the displacement.
3551 (md_relax_table): Fix indexed offset relax.
3555 * config/tc-m68hc11.c (md_estimate_size_before_relax):Don't
3557 (relaxable_symbol): New function.
3561 * config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
3566 * config/tc-arm.c (arm_fix_adjustable): Define for OBJ_COFF.
3567 * config/tc-arm.h (obj_fix_adjustable): Define for OBJ_COFF
3571 * symbols.c (DOLLAR_LABEL_CHAR): New constant - the magic
3572 character used to dollar local symbols.
3573 (LOCAL_LABEL_CHAR): New constant - the magic character used to
3574 local label symbols.
3575 (dollar_label_name): Use DOLLAR_LABEL_CHAR.
3576 (fb_label_name): Prefix local labels with LOCAL_LABEL_PREFIX,
3578 Use LOCAL_LABEL_CHAR.
3579 (decode_local_label_name): Skip LOCAL_LABEL_PREFIX.
3580 Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3581 (S_IS_LOCAL): Use DOLLAR_LABEL_CHAR and LOCAL_LABEL_CHAR.
3585 * config/tc-i386.c (i386_immediate, i386_displacement):
3590 * doc/c-i386.texi (i386-Arch): Remove spaces incorrectly inserted
3595 * doc/as.texinfo (Bug Reporting): Update email address for
3601 * configure.in: Define DEFAULT_ARCH for i386.
3602 * config/tc-i386.c (md_assemble): Return after the error message;
3603 move testing for 64bit operands to proper place.
3607 * doc/as.texinfo: Document '#' as comment character for i386 and
3608 x86_64. Add AMD x86-64 into menu of machine dependent information.
3610 * doc/c-i386.texi: Document x86_64 extensions.
3614 * config/tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
3618 * config/tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.
3619 * NEWS: Add note about Pentium4 support.
3623 * config/tc-i387.c (pi, pte, pt): Update.
3624 (type_names): Add new types.
3628 * config/tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,
3629 CpuUnknown): Renumber
3630 (CpuP4, CpuSSE2): New.
3631 (CpuUnknownFlags): Add CpuP4 and CpuSSE2
3635 * config/tc-alpha.c (alpha_force_relocation): Handle vtable
3637 (alpha_fix_adjustable): Likewise.
3638 (md_apply_fix): Likewise.
3642 * listing.c (listing_message): Allocate string only if it is
3645 * configure: Rebuild.
3649 * doc/internals.texi (Relaxing with a table) <after relaxation>:
3650 Point out caveats with generating fixups for the opcode in a frag.
3654 * configure.in: Add support for x86_64 and x86_64-*-linux-gnu*
3659 * listing.c (calc_hex): Print the variable part only if the
3660 fragment type is rs_fill.
3664 * doc/internals.texi (tc_conditional_pseudoop,
3665 TC_LINKRELAX_FIXUP): Fix typos.
3669 * write.c (subsegs_finish): Fix thinko last change -- don't
3670 "optimize" the alignment == 0 case.
3674 * as.h (rs_align_test): New.
3675 * frags.c (NOP_OPCODE): Move default from read.c.
3676 (MAX_MEM_FOR_RS_ALIGN_CODE): New default.
3677 (frag_align_code): New.
3678 * frags.h (frag_align_code): Declare.
3679 * read.c (NOP_OPCODE): Remove.
3680 (do_align): Use frag_align_code.
3681 * write.c (NOP_OPCODE): Remove.
3682 (get_recorded_alignment): New.
3683 (cvt_frag_to_fill): Handle rs_align_test.
3684 (relax_segment): Likewise.
3685 (subsegs_finish): Align last subseg in section to the
3686 section alignment. Use frag_align_code.
3687 * write.h (get_recorded_alignment): Declare.
3688 * config/obj-coff.c (size_section): Handle rs_align_test.
3689 (fill_section, fixup_mdeps): Likewise.
3690 (write_object_file): Use frag_align_code.
3692 * config/tc-alpha.c (alpha_align): Use frag_align_code.
3693 (alpha_handle_align): New.
3694 * config/tc-alpha.h (HANDLE_ALIGN): New.
3695 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3697 * config/tc-i386.h (md_do_align): Use frag_align_code.
3698 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3700 * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment.
3701 (ia64_handle_align): New.
3702 * config/tc-ia64.h (HANDLE_ALIGN): New.
3703 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3705 * config/tc-m32r.c (m32r_do_align): Remove.
3706 (m32r_handle_align): New.
3707 (fill_insn): Use frag_align_code.
3708 * config/tc-m32r.h (md_do_align): Remove.
3709 (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New.
3710 * config/tc-m88k.c, config/tc-m88k.h: Similarly.
3711 * config/tc-mips.c, config/tc-mips.h: Similarly.
3713 * config/tc-sh.c (sh_cons_align): Use rs_align_test.
3714 (sh_handle_align): Likewise. Handle rs_align_code.
3715 (sh_do_align): Remove.
3716 * config/tc-sh.h (md_do_align): Remove.
3717 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3719 * config/tc-sparc.c (sparc_cons_align): Use rs_align_test.
3720 (sparc_handle_align): Likewise. Handle rs_align_code.
3721 * config/tc-sparc.h (md_do_align): Remove.
3722 (MAX_MEM_FOR_RS_ALIGN_CODE): New.
3726 * config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
3727 when we assemble the first half of a pair.
3731 * config/tc-i386.c (reloc): Update the macro for non-bfd
3733 (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
3737 * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
3741 * config/tc-i386.h (i386_target_format): Define even for ELFs.
3742 (QWORD_MNEM_SUFFIX): New macro.
3743 (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags):
3745 (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber.
3746 (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix,
3748 (Size64, No_qSuf, NoRex64, Rex64): New macros.
3749 (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros.
3750 (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32,
3751 InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc,
3752 SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem):
3754 (Reg, WordReg): Add Reg64.
3755 (Imm): Add Imm32S and Imm64.
3757 (Disp): Add Disp64 and Disp32S.
3758 (AnyMem): Add Disp32S.
3759 (RegRex, RegRex64): New macros.
3760 (rex_byte): New type.
3761 * config/tc-i386.c (set_16bit_code_flag): Kill.
3762 (fits_in_unsigned_long, fits_in_signed_long): New functions.
3763 (reloc): New parameter "signed"; support x86_64.
3764 (set_code_flag): New.
3765 (DEFAULT_ARCH): New macro; default to "i386".
3766 (default_arch): New static variable.
3767 (struct _i386_insn): New fields Operand_PCrel; rex.
3768 (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"
3769 (flag_code): New enum and static variable.
3770 (use_rela_relocations): New static variable.
3771 (flag_code_names): New static variable.
3772 (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64.
3773 (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to
3775 (i386_align_code): Return plain "nop" for x86_64.
3776 (mode_from_disp_size): Support Disp32S.
3777 (smallest_imm_type): Support Imm32S and Imm64.
3778 (offset_in_range): Support size of 8.
3779 (set_cpu_arch): Do not clobber to Cpu64/CpuNo64.
3780 (md_pseudo_table): Add "code64"; use set_code_flat.
3781 (md_begin): Emit sane error message on hash failure.
3782 (tc_i386_fix_adjustable): Support x86_64 relocations.
3783 (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers,
3784 instructions supported on particular arch just partially,
3785 output of 64bit immediates, handling of Imm32S and Disp32S type.
3786 (i386_immedaite): Support x86_64 relocations; support 64bit constants.
3787 (i386_displacement): Likewise.
3788 (i386_index_check): Cleanup; support 64bit addresses.
3789 (md_apply_fix3): Support x86_64 relocation and rela.
3790 (md_longopts): Add "32" and "64".
3791 (md_parse_option): Add OPTION_32 and OPTION_64.
3792 (i386_target_format): Call even for ELFs; choose between
3793 elf64-x86-64 and elf32-i386.
3794 (i386_validate_fix): Refuse GOTOFF in 64bit mode.
3795 (tc_gen_reloc): Support rela relocations and x86_64.
3796 (intel_e09_1): Support QWORD.
3800 * config/tc-i386.c (intel_e09_1): Only flag as a memory operand if
3801 it's not an offset expression.
3802 (intel_e10_1): Ditto. Also, if the operand is an offset expression,
3803 keep the braces '[' and ']' in the output string.
3804 (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier
3805 != FLAT. There is no such op_modifier.
3809 * dwarf2dbg.c: If we don't have <limits.h>, try including <sys/param.h>
3814 * as.h: Fix formatting.
3816 * dwarf2dbg.c: Likewise.
3817 * input-scrub.c: Likewise.
3822 * configure.in (i386-*-msdosdjgpp): Set bfd_gas to yes.
3823 configure: Regenerate.
3827 * dwarf2dbg.c: #include <limits.h> only if it exists.
3831 * config/tc-hppa.c (pa_ip): Correct CHECK_FIELD typo.
3832 (md_apply_fix): Here too.
3836 * config/tc-ia64.h (ia64_init): Add prototype.
3840 * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.
3842 * read.h (outputting_stabs_line_debug): Change it to int.
3843 * stabs.c (outputting_stabs_line_debug): Likewise.
3847 * config/obj-bout.c (obj_crawl_symbol_chain): Don't take
3848 the address of a function result.
3852 * config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
3853 (md_assemble): Call dwarf2_emit_insn.
3854 (shlib): Fix typo SHILB -> SHLIB.
3855 (md_parse_option): Likewise.
3856 (ppc_elf_validate_fix): Likewise:
3857 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
3861 * cgen.h: Fix formatting.
3862 * input-scrub.c: Fix formatting.
3863 * macro.c: Fix formatting.
3864 * config/tc-mips.c: Fix formatting.
3865 * doc/c-mips.texi: Fix formatting.
3869 * config/tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
3870 mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
3872 (intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
3874 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
3877 * i386.h (*_Suf): Remove No_dSuf.
3878 (d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
3880 (i386_optab): Remove 'd' in the suffixes.
3884 * config/tc-i386.c (T_SHORT): Undefine before defining.
3888 * config/tc-mips.c: Fix formatting.
3892 * config/tc-d10v.c (flag_allow_gstabs_packing): New variable.
3893 (md_longopts): New options --gstabs-packing, --no-gstabs-packing.
3894 (md_show_usage): Ditto.
3895 (md_parse_option): Ditto.
3896 (d10v_cleanup): Writes pending instruction only if
3897 ! outputting_stabs_line_debug || ! flag_allow_gstabs_packing.
3898 Fix compile time warning messages.
3900 * doc/c-d10v.texi: Documents new options.
3904 * stabs.c (outputting_stabs_line_debug): New variable.
3905 (stabs_generate_asm_lineno): Set outputting_stabs_line_debug at
3906 function entry and unset at function exit.
3908 * read.h (outputting_stabs_line_debug): New extern declaration.
3910 * as.c: Include dwarf2dbg.h for definition of dwarf2_finish.
3912 * dwarf2dbg.c: Fix compile time warning messages.
3916 * config/tc-a29k.c: Fix formatting.
3917 * config/tc-alpha.c: Likewise.
3918 * config/tc-arm.c: Likewise.
3919 * config/tc-cris.c: Likewise.
3920 * config/tc-hppa.c: Likewise.
3921 * config/tc-i370.c: Likewise.
3922 * config/tc-i386.c: Likewise.
3923 * config/tc-i860.c: Likewise.
3924 * config/tc-i960.c: Likewise.
3925 * config/tc-ia64.c: Likewise.
3926 * config/tc-m68hc11.c: Likewise.
3927 * config/tc-m68k.c: Likewise.
3928 * config/tc-m88k.c: Likewise.
3929 * config/tc-pj.c: Likewise.
3930 * config/tc-ppc.c: Likewise.
3931 * config/tc-sh.c: Likewise.
3932 * config/tc-sparc.c: Likewise.
3933 * config/tc-tahoe.c: Likewise.
3934 * config/tc-vax.c: Likewise.
3938 * config/tc-mips.c (mips_ip): When calculating offsets,
3939 don't accept as constant the difference between the
3940 addresses of symbols in two different sections.
3942 * config/tc-mips.c (macro_build): Add new 'U' and 'J' operand
3944 (validate_mips_insn): Likewise. Also, update 'B' operand
3945 specifier to use OP_*_CODE20 constants and delete 'm' operand
3947 (mips_ip): Remove 'm' operand specifier, add 'U' and 'J'
3948 operand specifiers. Change warning generated by 'B' operand
3949 specifier to reflect its new multi-purpose usage.
3951 * config/tc-mips.c (mips_set_options): Use ISA_UNKNOWN rather than
3952 -1, and update comment.
3953 (file_mips_isa): Likewise.
3954 (mips_cpu): Use CPU_UNKNOWN rather than -1, and update comment.
3955 (ISA_HAS_COPROC_DELAYS, ISA_HAS_64BIT_REGS, gpr_interlocks): Use
3956 ISA_* constants rather than hard-coded numbers.
3957 (mips_cpu_info): New structure.
3958 (mips_cpu_info_table): New table describing CPU and ISA names
3960 (mips_cpu_info_from_name, mips_cpu_info_from_isa,
3961 mips_cpu_info_from_cpu): New functions.
3962 (mips_isa_to_str): New function to get string for ISA name.
3963 (mips_cpu_to_str): Convert to use mips_cpu_info_from_cpu, and
3964 return const char *.
3965 (md_begin): Redo CPU and ISA selection logic, using
3966 mips_cpu_info_from_*. Convert to use ISA_* constants rather
3967 than hard-coded numbers.
3968 (append_insn, mips_emit_delays, macro, macro2): Convert to use
3969 ISA_* constants rather than hard-coded numbers.
3970 (mips_ip): Convert to use mips_isa_to_str to get ISA name.
3971 (md_longopts): Delete OPTION_NO_MIPS32.
3972 (md_parse_option): Convert to use ISA_* constants rather than
3973 hard-coded numbers. Make OPTIONS_MIPS32 case treat MIPS32
3974 as an ISA. Delete OPTION_NO_MIPS32 case. Convert OPTION_MCPU
3975 to use strcasecmp to recognize "default" and to use
3976 mips_cpu_info_from_name to get CPU numbers from argument.
3977 (md_show_usage): Move -mips32 so it's with the rest of the ISA
3978 flags. Change 4Kc, 4Kp and 4Km CPU entries to just be
3980 (s_mipsset): Accept ISA value 32.
3981 * doc/as.texinfo: Clean up MIPS options summary slightly,
3982 remove -no-mips32. Add note about -mips4 and -mips32
3983 specifying those ISA levels. Delete -mips32 and -no-mips32
3984 cpu flag descriptions.
3985 * doc/c-mips.texi: Add -mips32 to list of ISA switches. Clean
3986 up the supported CPU switch list, and replace 4Kc, 4Km, and
3987 4Kp entries with a single mips32-4k entry. Note that you can
3990 * config/tc-mips.c (ISA_HAS_64BIT_REGS): Add checks for ISA_MIPS5 and
3992 (md_longopts, OPTION_MIPS5, OPTION_MIPS64): Add options for
3994 (md_parse_option): Add cases for OPTION_MIPS5 and
3996 (md_show_usage): Mention -mips5 and -mips64 arguments.
3997 (s_mipsset): Add cases for MIPS5 and MIPS64.
3998 (mips_cpu_info_table): Add entries for MIPS5 and MIPS64 ISAs
4000 * doc/as.texinfo: Mention -mips5 and -mips64 options
4002 * doc/c-mips.texi: Likewise. Also update introduction
4003 and ".set" usage information.
4005 * config/tc-mips.c (md_show_usage): Add "sb1" to the
4007 (mips_cpu_info_table): Add SB-1 entries.
4008 * doc/c-mips.texi: Add "sb1" to the list of CPUs
4009 known to the -mcpu option.
4011 * doc/as.texinfo: Correct description of MIPS -mcpu
4012 option, by copying some of the text from doc/c-mips.texi.
4016 * configure.in (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
4018 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4019 (sparc*-*-rtems*): Switched from a.out to ELF.
4020 * configure: Regenerate.
4021 * config.in: Regenerate.
4022 * Makefile.in: Regenerate.
4023 * aclocal.m4: Regenerate.
4024 * po/gas.pot: Regenerate.
4028 * config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
4029 even in non BFD_ASSEMBLER case.
4033 * config/tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
4038 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
4039 until dwarf2_finish; use relaxation to get cross-fragment offsets;
4040 thread multiple subsegments properly; handle multiple code
4041 sections properly; emit proper compilation unit info for assembler
4042 generated debugging.
4044 * as.h (enum _relax_state): Add rs_dwarf2dbg.
4045 * dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
4046 (dwarf2dbg_estimate_size_before_relax): Declare.
4047 (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
4048 * write.c: Include dwarf2dbg.h.
4049 (cvt_frag_to_fill): Handle rs_dwarf2dbg.
4050 (relax_segment): Likewise.
4054 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
4055 jump>: Use as_bad_where instead of as_bad. Tweak error message
4056 accordingly. Stabilize frag by updating fix part and resetting
4058 <undefined symbol, unconditional jump>: Ditto.
4059 (sh_elf_cons): Cast *input_line_pointer to unsigned char when
4060 indexing is_end_of_line[].
4061 (md_assemble): Initialize size to 0.
4062 (md_section_align): Mark parameter seg as unused.
4063 (parse_reg): Parse names case-insensitively.
4067 * config/obj-aout.h: Fix formatting.
4068 * config/obj-bout.h: Likewise.
4069 * config/obj-coff.c: Likewise.
4070 * config/obj-coff.h: Likewise.
4071 * config/obj-elf.h: Likewise.
4072 * config/obj-som.h: Likewise.
4073 * config/obj-vms.c: Likewise.
4074 * config/obj-vms.h: Likewise.
4075 * config/tc-h8300.h: Likewise.
4076 * config/tc-ns32k.h: Likewise.
4077 * config/tc-sparc.h: Likewise.
4078 * config/tc-tic54x.h: Likewise.
4079 * config/tc-z8k.h: Likewise.
4083 * doc/as.1 (COPYING): Mention that the GNU Free Documentation
4084 License is present in the sources, but not the output, and
4085 also available from the GNU website.
4086 (GNU Free Documentation License): Comment out this section.
4090 * Makefile.am (CPU_OBJ_VALID): Add case to filter out invalid coff
4091 targets. Remove i860 from valid a.out targets.
4092 * Makefile.in: Regenerate.
4094 * config/tc-cris.c: Include dwarf2dbg.h.
4095 (md_pseudo_table): Add .file and .loc.
4096 (md_assemble): Call dwarf2_emit_insn if generating ELF.
4097 (s_cris_file, s_cris_loc): New.
4098 * config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4099 * Makefile.am: Regenerate dependencies.
4100 * Makefile.in: Regenerate.
4104 * expr.c (STANDARD_MUL_PRECEDENCE): Correct value.
4105 (MRI_MUL_PRECEDENCE): Likewise.
4106 (op_rank): Fix a comment typo.
4110 * config/tc-m68hc11.c (build_indexed_byte): Print the offset in
4112 (get_operand): Fix analysis for movw/movb instructions.
4116 * configure.in (xscale-elf): Add target.
4117 (xscale-coff): Add target.
4118 * configure: Regenerate.
4120 * config/tc-arm.c (ARM_EXT_V5E): New ARM architecture
4122 (ARM_EXT_XSCALE): New ARM architecture extension.
4123 (ARM_LONGMUL): Rename to ARM_EXT_LONGMUL.
4124 (ARM_HALFWORD): Rename to ARM_EXT_HALFWORD.
4125 (ARM_THUMB): Rename to ARM_EXT_THUMB.
4126 (ARM_ARCH_V4): Remove processor from architecture.
4127 (ARM_ARCH_3M): New architecutre definition.
4128 (ARM_ARCH_V5TE): New architecutre definition.
4129 (ARM_ARCH_XSCALE): New architecutre definition.
4130 (CPU_DEFAULT): Allow to be defaulted to XScale.
4131 (atpcs): New boolean variable.
4132 (ldr_flags): Support 'd' flag for double word loads.
4133 (str_flags): Support 'd' flag for double word stored.
4134 (do_mia): New function.
4135 (do_mar): New function.
4136 (do_mra): New function.
4137 (do_pld): New function.
4138 (do_ldrd): New function.
4139 (do_blx): New function.
4140 (do_bkpt): New function.
4141 (do_clz): New function.
4142 (do_lstc2): New function.
4143 (do_cdp2): New function.
4144 (do_t_blx): New function.
4145 (do_t_bkpt): New function.
4146 (do_smla): New function.
4147 (do_smlal): New function.
4148 (do_smul): New function.
4149 (do_qadd): New function.
4150 (do_co_reg2c): New function.
4151 (LONGEST_INSN): Redefine to 7.
4153 * doc/c-arm.texi: Document -mxscale, -mmarmv5te and -matpcs
4154 command line switches.
4158 * config/tc-ia64.c (pseudo_func): Add missing initializers.
4159 (struct rsrc): Make line unsigned.
4160 (gr_values): Add missing initializer.
4161 (SLOT_NUM_NOT_SET): Add unsigned cast.
4162 (ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
4163 dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
4164 dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
4165 dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
4166 dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
4167 dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
4168 dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
4169 dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
4170 md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
4171 Add ATTRIBUTE_UNUSED to unused parameters.
4172 (convert_expr_to_ab_reg): Add parens.
4173 (convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
4174 (dot_prologue): Initialize grsave when declared.
4175 (md_pseudo_table): Add missing initializers.
4176 (operand_match): Add casts to bfd_vma.
4177 (emit_one_bundle): Delete unused local prev. Make required_template
4179 (specify_resource): Cast i to unsigned.
4180 (note_register_values): Use fprintf_vma.
4181 (print_dependency): Likewise.
4185 * config/tc-ia64.c (generate_unwind_image): Call record_alignment
4186 for unwind info section.
4187 (dot_endp): Likewise for unwind section.
4189 * config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
4194 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
4195 (output_insn): Call dwarf2_emit_insn.
4196 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4200 * ehopt.c (eh_frame_code_alignment): New arg `in_seg', update all
4201 callers. Don't switch segments. Expect CIE == -1 in .debug_frame.
4202 (check_eh_frame): Handle .eh_frame and .debug_frame concurrently.
4206 * config/tc-arm.c (md_pseudo_table): Add support for .line and
4211 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.
4215 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
4216 * config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
4217 tri-state definition of alpha_flag_mdebug.
4218 * config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
4219 (s_alpha_file): Store first .file directive.
4220 (s_alpha_stab): New.
4221 (md_pseudo_table): Add stabs and stabn.
4225 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
4229 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.
4230 (main): Call dwarf2_finish.
4231 * as.h (debug_type): Clarify documentation of the meaning
4233 * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
4234 (print_stats): Fix parenthesis problem.
4235 (now_subseg_size): New.
4236 (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
4237 (dwarf2_directive_file): Don't set debug_type.
4238 (dwarf2_where): Honor DEBUG_DWARF2 first.
4239 (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
4240 do nothing if not emitting dwarf2 debug info, or no work.
4241 * dwarf2dbg.h (dwarf2_emit_insn): Update.
4242 * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
4243 (ecoff_new_file): Likewise.
4244 * read.c (generate_lineno_debug): Kill ecoff hackery. Update
4245 commentary wrt dwarf2.
4247 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
4248 ATTRIBUTE_UNUSED as needed.
4249 (emit_insn): Call dwarf2_emit_insn.
4250 (s_alpha_file): New.
4252 (s_alpha_coff_wrapper): Don't handle them.
4253 (md_pseudo_table): Update for .file and .loc.
4254 * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
4256 * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
4257 don't protect with debug_type.
4258 * config/tc-hppa.c (md_assemble): Likewise.
4259 * config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
4260 * config/tc-mn10300.c (md_assemble): Likewise.
4261 * config/tc-sh.c (md_assemble): Likewise.
4262 * config/tc-v850.c (md_assemble): Likewise.
4264 * config/tc-arm.c (arm_end_of_source): Remove.
4265 * config/tc-hppa.c (pa_end_of_source): Remove.
4266 * config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
4267 * config/tc-mn10300.c (mn10300_finalize): Remove.
4268 * config/tc-sh.c (sh_finalize): Remove.
4269 * config/tc-v850.c (sh_finalize): Remove.
4271 * config/tc-arm.h (md_end): Remove.
4272 * config/tc-hppa.h (md_end): Remove.
4273 (DWARF2_LINE_MIN_INSN_LENGTH): New.
4274 * config/tc-m68hc11.h (md_end): Remove.
4275 * config/tc-mn10300.h (md_end): Remove.
4276 * config/tc-sh.h (md_end): Remove.
4277 * config/tc-v850.h (md_end): Remove.
4279 * config/tc-ia64.c (emit_one_bundle): Don't protect
4280 dwarf2 bits with debug_type.
4281 (md_assemble): Likewise.
4282 (ia64_end_of_source): Don't call dwarf2_finish.
4286 * config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
4287 >= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
4292 * config/obj-elf.c (obj_elf_symver): Don't check the missing
4297 * config/tc-tic30.c: Fix formatting.
4298 * config/tc-tic80.c: Likewise.
4299 * config/tc-v850.c: Likewise.
4300 * config/tc-vax.c: Likewise.
4301 * config/tc-w65.c: Likewise.
4302 * config/tc-z8k.c: Likewise.
4306 * config/tc-v850.c: Support dwarf2.
4307 * config/tc-v850.h: Ditto.
4309 * config/tc-v850.c (cons_fix_new_v850): Don't rely on
4310 parse_cons_expression_v850 to initialize hold_cons_reloc.
4314 * config/tc-ia64.c (struct md): New entries LAST_GROUPS, GROUP_IDX.
4315 (errata_nops_necessary_p): New function.
4316 (emit_one_bundle): Call it. Update the GROUP_IDX field in struct
4321 * config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
4322 return little endian bfd formats.
4326 * config/aout_gnu.h: Fix formatting.
4327 * config/atof-vax.c: Likewise.
4328 * config/m68k-parse.h: Likewise.
4329 * config/m88k-opcode.h: Likewise.
4330 * config/obj-elf.c: Likewise.
4331 * config/tc-arm.c: Likewise.
4332 * config/tc-cris.c: Likewise.
4333 * config/tc-i386.c: Likewise.
4334 * config/tc-ia64.c: Likewise.
4335 * config/tc-mn10300.c: Likewise.
4336 * config/te-386bsd.h: Likewise.
4337 * config/te-hppa.h: Likewise.
4338 * config/te-nbsd.h: Likewise.
4339 * config/te-ppcnw.h: Likewise.
4340 * config/te-sparcaout.h: Likewise.
4341 * config/te-tmips.h: Likewise.
4342 * config/vax-inst.h: Likewise.
4343 * config/vms-conf.h: Likewise.
4347 * config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
4351 * config/obj-elf.c (elf_frob_symbol): Support
4352 ".symver name,name2@@@nodename".
4353 (elf_frob_file_before_adjust): Likewise.
4355 * doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
4356 and ".symver name,name2@@@nodename".
4361 * config/obj-elf.c (obj_elf_symver): Check missing version
4366 * dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT
4367 instead of bfd_vma for non-bfd assemblers.
4371 * itbl-ops.c: Fix comment typos.
4375 * config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
4376 (struct unwind): Add next_slot_frag field.
4377 (slot_index): New parameters slot_frag and first_frag. Add code
4378 to add in frag sizes when different. Add comments.
4379 (fixup_unw_records): New locals first_frag and last_frag. Pass new
4380 arguments to slot_index.
4381 (emit_one_bundle): Set slot_frag field. Set next_slot_number after
4382 loop end. Set next_slot_frag field.
4386 * doc/as.texinfo (.symver): Updated for versioned symbol
4389 * obj.h (format_ops): Add the frob_file_before_adjust field.
4391 * config/obj-aout.c (aout_format_ops): Set the
4392 frob_file_before_adjust field to 0.
4393 * config/obj-coff.c (coff_format_ops): Likewise.
4394 * config/obj-ecoff.c (ecoff_format_ops): Likewise.
4396 * config/obj-elf.c (obj_elf_symver): Allow duplicated version
4398 (elf_frob_file_before_adjust): New function to remove unneeded
4399 versioned symbols from the symbol table.
4400 (elf_format_ops): Set the frob_file_before_adjust field to
4401 elf_frob_file_before_adjust.
4403 * config/obj-elf.h (obj_frob_file_before_adjust): Defined if
4406 * config/obj-multi.h (obj_frob_file_before_adjust): Defined.
4410 * config/tc-arc.h: Avoid warnings for LITTLE_ENDIAN and
4412 * config/tc-arc.c: Use S_IS_LOCAL to test local symbols.
4413 Fix compile time warning messages.
4417 * stabs.c (generate_asm_file): Increase length of xmalloc'ed
4418 buffer in order to avoid buffer overflows.
4422 * config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
4423 Change M to m for -milp32 or -mlp64 to match gcc.
4424 (dot_endp): Use bytes_per_address instead of 8.
4425 (emit_one_bundle): Use number_to_chars_littleendian instead of
4427 (fix_insn): Likewise.
4428 (ia64_init): New function.
4429 (ia64_target_format): New function.
4430 (md_begin): Set endianness, arch, and machine as appropriate.
4431 * config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
4432 Make these macros depend on TE_HPUX macro.
4433 (TARGET_FORMAT): Define.
4434 (HOST_SPECIAL_INIT): Define.
4435 * config/te-hpux.h: New file.
4436 * configure.in: Add "ia64-*-hpux*" target to configure.
4437 * configure: Regenerate.
4441 * as.c: Fix formatting.
4442 * dwarf2dbg.c: Likewise.
4443 * input-file.c: Likewise.
4444 * input-file.h: Likewise.
4445 * input-scrub.c: Likewise.
4446 * itbl-ops.c: Likewise.
4447 * listing.c: Likewise.
4448 * macro.h: Likewise.
4449 * messages.c: Likewise.
4451 * subsegs.c: Likewise.
4452 * subsegs.h: Likewise.
4453 * write.c: Likewise.
4457 * doc/as.texinfo: Add GNU Free Documentation License.
4458 * doc/gasp.texi: Add GNU Free Documentation License.
4459 * doc/as.1: Add GNU Free Documentation License.
4463 * config/tc-arm.c: Add include of "dwarf2dbg.h"
4467 * configure.in: Recognise i[3456]86-chaosdev-storm-chaos.
4468 * configure: Regenerate.
4472 * read.c (original_case_string): New global variable.
4473 (read_a_source_file): Copy opcode string into
4474 original_case_string if clobbering the case of the opcode.
4475 * read.h: Export the definition of original_case_string.
4476 * config/tc-arm.c (md_assembler): When parsing a .req
4477 directive use the original opcode string, not the case
4482 * config/tc-mn10300.c (debug_line): Remove this static
4484 (md_assemble): Call dwarf2_generate_asm_lineno instead of
4485 dwarf2_where and dwarf2_gen_line_info.
4489 * config/tc-arm.c (do_msr): Improve error message.
4493 * config/tc-mn10300.c (md_apply_fix3): Use valuep if fully resolved
4494 or pc-relative, else use fx_offset.
4498 * config/tc-ia64.c (struct md): New field tag_fixups.
4499 (ia64_flush_insns): Handle tag_fixups. Error if dangling
4500 qualifying predicate.
4501 (emit_one_bundle): Delete spurious multiplication by one. Handle
4503 (ia64_start_line): Error if dangling qualifying predicate.
4504 (defining_tag): New static variable.
4505 (ia64_unrecognized_line, case '['): Parse tags.
4506 (ia64_frob_label): Create tag_fixups.
4507 (md_assemble): Reset md.qp.X_op after using it.
4511 * config/tc-sh.c (md_apply_fix [BFD_RELOC_SH_PCDISP12BY2]): Allow 4094.
4515 * config/tc-ia64.c (extra_goodness): Only prefer F in slot 1 and B in slot 2.
4519 * expr.c: Fix formatting.
4520 * flonum-copy.c: Likewise.
4521 * flonum.h: Likewise.
4527 * as.h (OPTION_MD_BASE): Bump to 190.
4528 * as.c (parse_args) <std_longopts>: Add comment about the need to
4529 check OPTION_MD_BASE in as.h.
4531 * config/tc-sh.c (md_apply_fix): For ELF, do not "adjust back" VAL
4536 * configure.in (emulations): Add m68hc12.
4537 * configure: Regenerate.
4538 * po/gas.pot: Regenerate.
4542 * config/tc-arm.c (psrs): Remove lowercase versions of spsr* and
4544 (arm_psr_parse): Handle lowercase CPSR and SPSR.
4548 * dwarf2out.c (dwarf2_generate_asm_lineno): New function: Generate
4549 a DWARF2 line number information sequence.
4551 *dwarf2out.h: Add prototype for dwarf2_generate_asm_lineno.
4553 * read.c (generate_lineno_debug): Update comment describing why
4554 DWARF2 line number debug information is not generated
4555 automatically by this function.
4557 * doc/as.texinfo: Note that --gdwarf2 only works on some targets,
4560 * config/tc-arm.h (md_end): Define.
4561 (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4563 * config/tc-arm.c (output_inst): Call dwarf2_generate_asm_lineno
4564 if generating DWARF2 line numbers.
4565 (arm_end_of_source): New function. Call dwarf2_finish if
4568 * config/tc-hppa.c (md_assemble): Use dwarf2_generate_asm_lineno.
4569 * config/tc-m68hc11.c (m68hc11_new_insn): Use dwarf2_generate_asm_lineno.
4570 * config/tc-sh.c (md_assemble): Use dwarf2_generate_asm_lineno.
4574 * config/tc-i386.c: Fix prototype declarations for functions taking no
4579 * config/tc-i386.c (i386_operand_modifier): Remove.
4580 (build_displacement_string): Remove.
4581 (i386_parse_seg): Remove.
4582 (i386_intel_memory_operand): Remove.
4583 (i386_intel_operand): Re-write using recursive descent parser based
4584 on MASM documentation.
4585 (struct intel_parser_s): New structure.
4586 (intel_parser): New static variable.
4587 (struct intel_token): New structure.
4588 (cur_token, prev_token): New static variables.
4601 (intel_match_token): New function.
4602 (intel_get_token): New function.
4603 (intel_putback_token): New function.
4604 (intel_expr): New function.
4605 (intel_e05): New function.
4606 (intel_e05_1): New function.
4607 (intel_e06): New function.
4608 (intel_e06_1): New function.
4609 (intel_e09): New function.
4610 (intel_e09_1): New function.
4611 (intel_e10): New function.
4612 (intel_e10_1): New function.
4613 (intel_e11): New function.
4617 * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p
4618 instructions to loose any special insn->architecture mask.
4620 * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs.
4621 (sparc_md_end, sparc_arch_types, sparc_arch,
4622 sparc_elf_final_processing): Handle v8plusb and v9b architectures.
4623 (sparc_ip): Handle siam mode operands. Support v9b ASRs (and
4624 request v9b architecture if they are used).
4628 * config/tc-m68k.c: Fix the previous misapplied patch.
4632 * config/tc-m68k.h (RELAX_RELOC_*): New definitions for both
4633 BFD_ASSEMBLER and !BFD_ASSEMBLER.
4634 * config/tc-m68k.c (md_convert_frag_1): Use them instead of
4639 * debug.c: Fix formatting.
4640 * depend.c: Likewise.
4641 * dwarf2dbg.c: Likewise.
4642 * dwarf2dbg.h: Likewise.
4643 * ecoff.c: Likewise.
4646 * flonum-konst.c: Likewise.
4647 * frags.h: Likewise.
4651 * as.c: New option OPTION_TARGET_HELP. Prints all target specific
4653 * doc/as.texinfo: Added notes about this new option.
4657 * config/tc-sh.c (JREG): Remove.
4658 (md_convert_frag): Remove #if 0:d code using JREG.
4662 * config/tc-i386.c (i386_operand_modifier): Only match
4663 modifiers SHORT and FLAT if they are followed by a space.
4664 (parse_register): When `allow_naked_reg' is set, do not confuse
4665 identifiers that start with a register name with a register.
4669 * app.c: Fix formatting.
4672 * bit_fix.h: Likewise.
4679 * config/obj-elf.c (elf_frob_symbol): Revert 2000-10-07 change.
4683 * config/tc-hppa.c (md_apply_fix): Remove plainly wrong assert.
4684 Re-arrange function a little and improve error message.
4686 * write.c (write_relocs): Fix a comment.
4688 * config/obj-elf.c (elf_frob_symbol): Make section syms global on
4693 * config/tc-ia64.c (resources_match): Handle IA64_RS_PRr.
4697 * config/tc-i386.c: Delete some useless comments, reformat others.
4699 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Add check to cover
4700 non-global syms in linkonce sections.
4704 * config/tc-ia64.c (operand_match): Don't use // style comments.
4705 * config/tc-i370.c: Likewise.
4709 Changes to handle varying register prefix and user symbol prefix.
4710 * config/tc-cris.c (SYNTAX_RELAX_REG_PREFIX,
4711 SYNTAX_ENFORCE_REG_PREFIX, SYNTAX_USER_SYM_LEADING_UNDERSCORE,
4712 SYNTAX_USER_SYM_NO_LEADING_UNDERSCORE, REGISTER_PREFIX_CHAR): New.
4713 (s_syntax, cris_force_reg_prefix, cris_relax_reg_prefix,
4714 cris_sym_leading_underscore, cris_sym_no_leading_underscore): New.
4715 (demand_register_prefix): New variable.
4716 (md_pseudo_table): New pseudo ".syntax".
4717 (md_longopts): New options --no-underscore and --underscore.
4718 (cris_target_format): Return elf32-us-cris or elf32-cris depending
4719 on symbols_have_leading_underscore.
4720 (get_gen_reg): Accept or require REGISTER_PREFIX_CHAR.
4721 (get_spec_reg): Ditto.
4722 (cris_number_to_imm) <case BFD_RELOC_VTABLE_ENTRY>: Remove FIXME.
4724 (md_parse_option) <case 'h' 'H'>: Deprecate; add reference to
4726 <case OPTION_NO_US, case OPTION_US>: New.
4727 (md_show_usage): Be brief and reformat to match continuation of
4729 * po/gas.pot: Regenerate.
4733 * config/tc-hppa.c (hppa_force_relocation): If OBJ_SOM, don't
4734 force relocs for 12 bit branches.
4735 (md_apply_fix): Similarly, adjust logic here.
4739 * config/tc-hppa.c (md_apply_fix): Add fmt assertion. Don't
4740 adjust for external and weak syms as we will use a reloc. Allow
4741 for +8 offset when calculating limits of branches.
4742 (hppa_fix_adjustable): Undo 2000-09-23 change.
4743 (hppa_force_relocation): Likewise. Add fx_addsy assertion.
4744 Correct distance calculation.
4745 (tc_gen_reloc): Print the file name and line number if we can't
4749 * config/tc-hppa.c (nonzero_dibits): Define.
4750 (arg_reloc_stub_needed): Check each arg and return value
4751 separately for zero case.
4752 (pa_align): Declare argument `bytes'.
4756 * config/tc-cris.c: Fix formatting.
4757 * config/tc-d10v.h: Likewise.
4758 * config/tc-d30v.c: Likewise.
4759 * config/tc-d30v.h: Likewise.
4760 * config/tc-fr30.c: Likewise.
4761 * config/tc-fr30.h: Likewise.
4762 * config/tc-m68k.c: Likewise.
4763 * config/tc-m68k.h: Likewise.
4764 * config/tc-pj.h: Likewise.
4765 * config/tc-ppc.c: Likewise.
4766 * config/tc-ppc.h: Likewise.
4767 * config/tc-sh.c: Likewise.
4768 * config/tc-sh.h: Likewise.
4769 * config/tc-sparc.c: Likewise.
4770 * config/tc-v850.h: Likewise.
4771 * config/tc-vax.h: Likewise.
4772 * config/tc-w65.h: Likewise.
4773 * config/tc-z8k.h: Likewise.
4777 * config/tc-hppa.c (hppa_fix_adjustable): Do the external and weak
4778 checks only for ELF.
4779 (hppa_force_relocation): Likewise.
4783 * config/tc-ia64.c (dv_sem): Add "stop".
4784 (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
4785 (specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
4786 (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
4788 (mark_resources): Check IA64_RS_PRr.
4792 * config/tc-m68k.c (md_relax_table, m68k_ip, md_convert_frag_1,
4793 md_estimate_size_before_relax): Redesign and clean up the
4794 relaxation mechanism.
4798 * config/tc-ns32k.c: Fix formatting.
4799 * config/tc-ns32k.h: Likewise.
4803 * config/tc-m32r.c: Fix formatting.
4804 * config/tc-m32r.h: Likewise.
4805 * config/tc-m68851.h: Likewise.
4806 * config/tc-m68hc11.c: Likewise.
4807 * config/tc-m68hc11.h: Likewise.
4808 * config/tc-m88k.c: Likewise.
4809 * config/tc-mcore.c: Likewise.
4810 * config/tc-mcore.h: Likewise.
4811 * config/tc-mips.c: Likewise.
4812 * config/tc-mips.h: Likewise.
4813 * config/tc-mn10200.h: Likewise.
4814 * config/tc-mn10300.h: Likewise.
4815 * config/tc-tahoe.c: Likewise.
4816 * config/tc-tahoe.h: Likewise.
4820 * config/tc-vax.c (synthetic_votstrs): Remove jbssi and jbcci.
4821 Likewise in relaxation description comments.
4825 * config/tc-hppa.h (TC_FORCE_RELOCATION_SECTION): Allow
4826 subtraction of two syms without emitting a relocation.
4829 * config/tc-hppa.c (hppa_force_relocation): Force relocations for
4830 global or weak symbols.
4834 * config/tc-h8300.h: Fix formatting.
4835 * config/tc-h8500.c: Likewise.
4836 * config/tc-h8500.h: Likewise.
4837 * config/tc-hppa.h: Likewise.
4838 * config/tc-i370.h: Likewise.
4839 * config/tc-i386.h: Likewise.
4840 * config/tc-i860.c: Likewise.
4841 * config/tc-i860.h: Likewise.
4842 * config/tc-i960.h: Likewise.
4843 * config/tc-ia64.c: Likewise.
4844 * config/tc-ia64.h: Likewise.
4848 * config/tc-a29k.c: Fix formatting.
4849 * config/tc-alpha.c: Likewise.
4850 * config/tc-arc.c: Likewise.
4851 * config/tc-arc.h: Likewise.
4852 * config/tc-arm.c: Likewise.
4853 * config/tc-arm.h: Likewise.
4854 * config/tc-avr.c: Likewise.
4855 * config/tc-avr.h: Likewise.
4856 * config/tc-tic30.c: Likewise.
4857 * config/tc-tic30.h: Likewise.
4858 * config/tc-tic54x.c: Likewise.
4859 * config/tc-tic54x.h: Likewise.
4860 * config/tc-tic80.c: Likewise.
4861 * config/tc-tic80.h: Likewise.
4865 * config/tc-ia64.c (specify_resource): For PR%/PR63, note types of
4866 parallel comparisons for later use.
4867 (struct rsrc): Add parallel comparison type.
4868 (resources_match): Skip special cases of PR usage (non-conflicting
4873 * config/obj-ecoff.c: Fix formatting.
4874 * config/obj-elf.c: Likewise.
4875 * config/obj-elf.h: Likewise.
4876 * config/obj-evax.h: Likewise.
4877 * config/obj-generic.h: Likewise.
4878 * config/obj-hp300.c: Likewise.
4879 * config/obj-hp300.h: Likewise.
4880 * config/obj-ieee.h: Likewise.
4881 * config/obj-vms.c: Likewise.
4882 * config/obj-vms.h: Likewise.
4886 * config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.
4887 (md_parse_option): Ditto.
4888 (md_longopts): Add -mips32 option.
4889 (md_show_usage): Document new options.
4890 (mips_ip): Assemble sdbbp 20 bit 'm' args for MIPS32.
4891 (mips_ip): Assemble mfc0 with a sub-selection code.
4892 (validate_mips_insn): Handle 'H' (OP_*_SEL) and 'm' (OP_*_CODE20).
4893 (mips_cpu_to_str): New function.
4894 (mips_ip): Use mips_cpu_to_str instead of printing numeric cpu value.
4895 Use CPU_* defines instead of hardcoded numbers.
4897 * doc/as.texinfo: Document new options.
4898 * doc/c-mips.texi: Ditto.
4902 * as.h: Fix formatting.
4903 * asintl.h: Likewise.
4904 * bit_fix.h: Likewise.
4905 * config/obj-aout.c: Likewise.
4906 * config/obj-aout.h: Likewise.
4907 * config/obj-bout.c: Likewise.
4908 * config/obj-bout.h: Likewise.
4909 * config/obj-coff.c: Likewise.
4910 * config/obj-coff.h: Likewise.
4911 * dwarf2dbg.h: Likewise.
4913 * flonum.h: Likewise.
4914 * frags.h: Likewise.
4915 * itbl-ops.h: Likewise.
4916 * macro.h: Likewise.
4919 * struc-symbol.h: Likewise.
4920 * subsegs.h: Likewise.
4921 * symbols.h: Likewise.
4923 * write.h: Likewise.
4927 * bignum-copy.c: Fix formatting.
4928 * config/tc-i370.c: Likewise.
4929 * config/tc-i960.c: Likewise.
4930 * config/tc-m68k.c: Likewise.
4931 * ehopt.c: Likewise.
4932 * flonum-copy.c: Likewise.
4933 * flonum-konst.c: Likewise.
4934 * flonum-mult.c: Likewise.
4935 * literal.c: Likewise.
4938 * stabs.c: Likewise.
4939 * subsegs.c: Likewise.
4943 * configure.in (arm*-*-uclinux*): New target.
4944 * configure: Regenerate.
4948 * input-file.c: Fix formatting.
4949 * itbl-ops.c: Likewise.
4950 * messages.c: Likewise.
4954 * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
4959 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4960 * configure: Rebuild.
4964 * atof-generic.c: Fix formatting.
4965 * config/tc-mips.c: Likewise.
4966 * config/tc-vax.c: Likewise.
4967 * input-scrub.c: Likewise.
4971 * config/tc-sh.h (TARGET_FORMAT): Use sh-linux targets.
4972 * configure.in (sh-*-linux*): Added.
4973 * configure: Rebuilt.
4977 * config/tc-hppa.c: Fix formatting.
4979 * ecoff.c: Fix formatting.
4983 * configure: Rebuilt with new libtool.m4.
4987 * cgen.c: Fix formatting.
4988 * config/tc-ia64.c: Likewise.
4992 * aclocal.m4: Regenerate.
4993 * config.in: Regenerate.
4994 * configure: Regenerate.
4995 * po/gas.pot: Regenerate.
4999 * config/tc-cris.c: Correct comment typos.
5003 * config/tc-mn10300.c: Cleanup.
5004 (md_pcrel_from): Enable.
5008 * expr.c (operand): Fix a comment typo.
5009 * write.c (write_relocs): Fix a signed/unsigned warning.
5011 * config/tc-hppa.c (fudge_reg_expressions): New
5012 (hppa_force_reg_syms_absolute): New.
5013 (pa_equ): Allow reg_section expressions.
5014 * config/tc-hppa.c (md_optimize_expr): Define.
5015 (hppa_force_reg_syms_absolute): Prototype.
5017 * config/tc-hppa.c (pa_11_fp_reg_struct): Delete.
5018 (pa_parse_number): Pass in arg to select fp reg parsing.
5019 Return 1 to indicate format checks pass. If strict, then only
5020 accept a register or register symbol. Return value in...
5021 (pa_number): New static for pa_parse_number.
5022 (FP_REG_BASE): Define.
5023 (FP_REG_RSEL): Define.
5024 (pre_defined_registers): Apply FP_REG_BASE and FP_REG_RSEL as
5025 appropriate. White space changes.
5026 (need_pa11_opcode): Don't bother passing any params, get them from
5028 (pa_ip): Modify all calls to pa_parse_number and need_pa11_opcode.
5029 Remove extraneous check in case 'Q'.
5030 (pa_equ): Modify call to pa_parse_number to do strict parsing. If
5031 reg, set section of resulting symbol to reg_section.
5032 (pa_parse_space_stmt): Modify call to pa_parse_number.
5033 (pa_space): Likewise.
5035 * config/tc-hppa.c: (md_apply_fix): Handle vtable relocs.
5036 (hppa_force_relocation): Handle vtable relocs.
5037 (pa_vtable_entry): New.
5038 (pa_vtable_inherit): New.
5039 (md_pseudo_table): Add entries for vtable pseudos.
5040 (hppa_fix_adjustable): Reject reduction of R_PARISC_GNU_VTINHERIT
5041 and R_PARISC_GNU_VTENTRY relocs. Reject reduction of relocs
5043 (tc_gen_reloc): Remove ELF_ARG_RELOC_INSN code.
5044 (pa_type_args): Don't call symbol_get_bfdsym multiple times.
5045 Set STT_PARISC_MILLICODE for OBJ_ELF when encountering a
5047 * config/obj-elf.c (obj_elf_type): Allow md_elf_symbol_type to
5048 specify a symbol type.
5050 * config/tc-hppa.h: Reorganize file a little, grouping OBJ_ELF
5051 dependent things together.
5052 (md_elf_symbol_type): Define.
5054 * config/tc-hppa.c (fix_new_hppa): Elide "$PIC_pcrel$0" pseudo
5056 * config/tc-hppa.h (tc_frob_symbol): Elide "$PIC_pcrel$0" here too.
5058 * config/obj-elf.h (obj_elf_vtable_inherit): Declare.
5059 (obj_elf_vtable_entry): Declare.
5061 * config/obj-elf.c (obj_elf_vtable_inherit): Return struct fix *
5062 and export function.
5063 (obj_elf_vtable_entry): Similarly.
5064 (elf_pseudo_table): Fix the damage with a cast.
5068 * config/tc-ia64.c (emit_one_bundle): Stop collecting insns
5069 for template selection when a label is needed.
5073 * config/tc-ia64.c: Fix formatting.
5077 * configure.in: Increase version number to 2.10.91.
5078 * configure: Regenerate.
5079 * aclocal.m4: Regenerate.
5080 * config.in: Regenerate.
5081 * po/gas.pot: Regenerate.
5082 * Makefile.in: Regenerate.
5086 * config/tc-sh.h [OBJ_ELF] (TC_FIX_ADJUSTABLE): Define.
5087 * config/tc-sh.c (md_apply_fix): Map 32-bit relocations that
5088 become PC-relative to BFD_RELOC_32_PCREL. Reject 16- or 8-bit
5090 (sh_obj_adjustable): Return 1 for PC-relative offsets used in
5095 * config/tc-sh.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
5096 TC_RELOC_GLOBAL_OFFSET_TABLE, TC_RELOC_RTSYM_LOC_FIXUP): Define.
5097 * config/tc-sh.c (sh_elf_cons, sh_elf_suffix): New functions.
5098 [OBJ_ELF] (md_pseudo_table) <long, int, word, short>: Use them.
5099 (GOT_symbol): New variable.
5100 (md_undefined_symbol): Set it.
5104 * config/tc-ia64.c (match): Don't inline.
5105 (extra_goodness): New.
5106 (md_begin): Prefer nop.f and nop.b for best_template.
5110 * as.c: Fix formatting.
5112 * frags.c: Likewise.
5113 * macro.c: Likewise.
5117 * config/tc-mn10300.c: Cleanup and fix warnings.
5118 (md_pseudo_table): Add initializers.
5119 (md_show_usage): Cleanup.
5120 (md_parse_option): Fix warnings.
5121 (md_undefined_symbol): Fix warnings.
5122 (md_conver_frag): Fix warnings.
5123 (tc_gen_reloc): Fix warnings.
5124 (md_apply_fix3): Fix warnings.
5125 (check_operand): Fix warnings.
5129 * acinclude.m4: Include libtool and gettext macros from the
5131 * aclocal.m4, configure: Rebuilt.
5135 * config/tc-ppc.c (md_parse_option): Recognize -m405.
5139 * listing.c: Fix formatting.
5143 * app.c: Fix a comment typo. Fix formatting.
5147 * config/tc-vax.c (md_convert_frag): Correctly calculate the pc relative
5148 offset of the target destination for jmp instructions.
5149 (md_assemble): Change mode to VAX_ABSOLUTE_MODE as per comments.
5153 * NEWS: Mention support for CRIS.
5157 * config/tc-avr.h (TC_IMPLICIT_LCOMM_ALIGNMENT): New macros.
5158 Sets `.lcomm' alignment to zero.
5162 * config/tc-i386.h (OBJ_MAYBE_ELF, OBJ_MAYBE_COFF,
5163 TC_FIX_ADJUSTABLE): Define.
5167 * config/tc-ia64.c (output_unw_records): Set U & E flags only if
5168 unwind.personality_routine is set.
5172 * write.c (TC_FIX_ADJUSTABLE): Remove the duplicate.
5176 * config/tc-i386.h (TC_FIX_ADJUSTABLE): Do *NOT* define if target
5181 * config.in (STRICTCOFF): New for strict COFF.
5183 * configure.in: Define STRICTCOFF for i386-*-msdosdjgpp*,
5184 i386-*-go32* and i386-go32-rtems*.
5185 * configure: Rebuilt.
5187 * config/obj-coff.c (obj_coff_endef): Follow the historical
5188 behavior if STRICTCOFF is not defined.
5190 * doc/internals.texi: Document STRICTCOFF.
5194 * write.c (TC_FIX_ADJUSTABLE): Define to 1, if not defined.
5195 (fixup_segment) Use it instead of TC_DONT_FIX_NON_ADJUSTABLE.
5196 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5197 <OBJ_ELF, OBJ_COFF, TE_PE> (TC_FIX_ADJUSTABLE): Define.
5198 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Remove.
5199 <OBJ_ELF> (TC_FIX_ADJUSTABLE): Define.
5200 * config/tc-i960.h, config/tc-m68k.h, config/tc-v850.h:
5205 * config/tc-mn10300.c: (md_apply_fix): New function.
5206 (mn10300_force_relocation): New function.
5207 (mn10300_fix_adjustable): New function.
5209 * config/tc-mn10300.h: (TC_FORCE_RELOCATION): Define.
5210 (TC_HANDLES_FX_DONE): Define.
5211 (obj_fix_adjustable): Define.
5212 (MD_APPLY_FIX3): Define.
5213 (TC_LINKRELAX_FIXUP): Define.
5215 * write.c: (TC_LINKRELAX_FIXUP): Define if not
5217 (fixup_segment): Use TC_LINKRELAX_FIXUP.
5219 * doc/internals.texi: Document TC_LINKRELAX_FIXUP.
5223 * config/tc-i860.c (md_apply_fix3): Do not insert the immediate
5224 if the fixup resulted in a relocation.
5228 * config/tc-arm.c (decode_shift): Replace as_tsktsk with as_warn.
5229 Make reference to first element of shift_names explicit.
5233 * write.c (fixup_segment) [TC_DONT_FIX_NON_ADJUSTABLE]: Use
5234 obj_fix_adjustable() and tc_fix_adjustable() to tell whether to
5235 add a symbol's address. Removed all target-specific #ifdefs that
5236 used to accomplished the same.
5237 * config/tc-v850.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5238 * config/tc-m68k.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5239 * config/tc-arm.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5240 * config/tc-i960.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5241 * config/tc-i386.h (TC_DONT_FIX_NON_ADJUSTABLE): Define.
5245 * dwarf2dbg.c: Fix formatting.
5249 * config/tc-arm.c (decode_shift): Allow illegal shifts by zero
5250 to be recoded as logical shift lefts by zero.
5254 * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
5255 postincrement modified registers. Handle IA64_OPND_R3_2 addl
5257 (note_register_values): Handle IA64_OPND_R3_2 operands.
5261 * config/tc-i860.c (md_operand): Silly typo fixed.
5265 * config/tc-arm.c (struct asm_shift): Delete.
5267 (enum asm_shift_index): New.
5268 (struct asm_shift_properties): New.
5269 (struct asm_shift_name): New.
5270 (shift_properties[]); New.
5271 (shift_names[]); New.
5273 (decode_shift): Use new structures.
5274 Issue a warning is "ROR #0" is used.
5275 Issue a warning if "ASR #0" or "LSR #0" is used.
5277 (md_begin): Initialise arm_shift_hsh table from new
5278 asm_shift_name array.
5282 * config/tc-sparc.c: Kill all warnings.
5283 (md_parse_option): Set -32/-64 for -xarch=, allow all -A archs
5285 (md_show_usage): Update usage text.
5289 * config/tc-arm.c (do_bx): Warn about "bx px" not being very
5294 * config/tc-sh.h (DWARF2_LINE_MIN_INSN_LENGTH): Defined.
5296 * config/tc-sh.c (md_assemble): Changed so debug_type
5297 test performed for ppi_assemble
5298 * config/tc-sh.c: Included dwarf2dbg.h.
5299 (debug_line): Defined.
5300 (md_assemble): Generates dwarf2 line info.
5301 (sh_finalize): New function. Finalize dwarf2 info.
5302 (assemble_ppi): Returns size of code generated.
5303 (build_Mytes): Returns size of code generated.
5304 (md_pseudo_table): Added "file" and "loc" psuedo ops.
5305 * config/tc-sh.h (md_end): Defined.
5306 (sh_finalize): Declared.
5310 * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
5315 * config/tc-arm.c (do_bx): Allow "bx pc".
5319 * config/tc-ia64.c (md_longopts): Add -mconstant-gp and -mauto-pic.
5320 (md_parse_option): Add OPTION_MCONSTANT_GP and OPTION_MAUTO_PIC.
5321 (md_begin): Change assignment to md.flag to OR in the new bit.
5325 * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Set the debug
5326 flag for storage types C_ARG, C_REGPARM, C_FIELD, C_MOS, C_MOE,
5331 * NEWS: Mention i860 support.
5335 * config/tc-mn10300.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5339 * doc/c-arm.texi (ARM Directives): Fix warnings from makeinfo.
5343 * doc/c-i860.texi (Opcodes for i860): Remove braces from @item
5348 * expr.c: Fix formatting.
5349 * config/obj-bout.c: Likewise.
5353 * doc/c-i860.texi: Flesh out the i860 section more.
5357 * symbols.c: Fix formatting.
5362 * config/tc-i386.c (md_assemble): Skip suffix check if the opcode
5363 modifier has the IgnoreSize bit set.
5368 * configure.in: Use elf on Unixware 7 (i586-sco-sysv5uw7.1.0)
5369 * configure: Regenerate.
5373 * hash.c: Fix formatting.
5378 * config/tc-i860.h: Rework completely for BFD_ASSEMBLER.
5379 (i860_fix_info): New enum.
5380 (MD_APPLY_FIX3): Define.
5381 (WORKING_DOT_WORD): Define.
5382 (TC_HANDLES_FX_DONE): Define.
5383 (DIFF_EXPR_OK): Define.
5384 (LISTING_HEADER): Define.
5385 (TARGET_FORMAT): Select target format based on endian flag.
5386 (TARGET_BYTES_BIG_ENDIAN): Default to little endian.
5387 (target_big_endian): Add external declaration.
5389 * config/tc-i860.c: All existing code reworked completely. Other
5390 new code shown below.
5391 (SYNTAX_SVR4): Define.
5392 (target_warn_expand): New variable.
5393 (md_shortopts): Declare and define (-Qy, -Qn, and -V options).
5394 (md_longopts): Declare and define with new options (-EL, -EB,
5396 (md_show_usage): New function.
5397 (md_operand): New function.
5398 (obtain_reloc_for_imm16): New function.
5399 (md_apply_fix3): New function.
5400 (tc_gen_reloc): New function.
5404 * config/tc-m68hc11.c (build_jump_insn): Make sure the
5405 2 bytes of the jump address are in the same frag.
5406 (find): Accept 68hc12 register indirect modes.
5408 * NEWS: Mention 68HC11 & 68HC12 support.
5412 * config/tc-ia64.c (unwind): Add prologue_mask member.
5413 (dot_vframe): Elide psp_gr record if it overlaps prologue_gr.
5414 (dot_save): Likewise for pfs_gr, rp_gr, and preds_gr.
5415 (dot_body): Clear unwind.prologue_mask.
5416 (dot_prologue): Set it. Accept a register second argument.
5420 * config/atof-ieee.c: Fix formatting.
5421 * config/atof-tahoe.c: Likewise.
5425 * config/tc-sparc.c (md_begin): Fix typo in recent formatting
5428 * doc/as.texinfo (Pseudo Ops): Update to include descriptions
5429 of .popsection, .previous, .pushsection, .subsection,
5430 .version, .vtable_entry, .vtable_inherit and .weak.
5434 * config/tc-cris.c: Fix formatting.
5435 * config/tc-i386.c: Likewise.
5436 * config/tc-sparc.c (sparc_ip): Simplify the code.
5440 * config/tc-cris.c: Rearrange code for readability.
5441 * config/tc-d10v.c: Fix formatting.
5442 * config/tc-m32r.c: Likewise.
5443 * config/tc-sparc.c: Likewise.
5447 * config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
5448 before ia64_find_opcode.
5449 (md_assemble): Likewise.
5453 * config/tc-arm.c (do_mrs): Fix skip of 'cpsr_all' flag.
5454 Undo some formatting fixes.
5458 * config/obj-som.c: Fix formatting.
5459 * config/obj-ieee.c: Likewise.
5460 * config/tc-arm.c: Likewise.
5461 * config/tc-v850.c: Likewise.
5465 * doc/c-m68k.texi (section M680x0 Options): Turn into a table
5466 index by command line option.
5470 * doc/c-m68k.texi (@cindex @samp{--pcrel}): Rewrite option description.
5471 (@node M68K-Branch): Rewrite to match the reality.
5475 * doc/c-i860.texi: New file.
5476 * doc/Makefile.am (CPU_DOCS): Add c-i860.texi.
5477 * doc/Makefile.in: Regenerate.
5478 * doc/all.texi: Add I860 as relevant architecture.
5479 * doc/as.texinfo: Include i860 dependent file c-i860.texi.
5483 * config/tc-d30v.c: Fix formatting.
5487 * config/tc-m68k.c (flag_keep_pcrel, OPTION_PCREL): Add --pcrel option.
5488 (md_convert_frag_1, md_estimate_size_before_relax): When making DBcc
5489 long emit a long branch if available instead of an absolute jump, never
5490 emit absolute jumps for anything with --pcrel.
5492 * doc/c-m68k.texi: Document new command line option.
5496 * config/tc-avr.c: Use PARAMS macro in function declarations.
5497 Don't declare md_pcrel_from_section (already in tc-avr.h).
5498 (avr_operands): Use AVR_UNDEF_P and AVR_SKIP_P macros.
5499 (avr_operand): Don't set (unsigned) op_mask to -1.
5503 * configure.in: Add bits for i860-stardent-{sysv4, elf}*.
5504 * configure: Regenerated.
5505 * config/obj-elf.c (obj_elf_type): Recognize a fifth type
5506 of operand to the .type directive (.e.g, "type").
5510 * as.h (warn_comment, found_comment, found_comment_file): Declare.
5511 * app.c (do_scrub_chars): Record where first comment found.
5512 * read.c (read_a_source_file): Init found_comment on entry, and
5513 notify whether comments found on exit.
5514 * config/tc-hppa.c (md_shortopts): Add "c".
5515 (md_longopts): Add warn-comment.
5516 (md_parse_option): Handle it.
5517 (md_show_usage): Show available options.
5518 * config/tc-hppa.h (WARN_COMMENTS): Define if TE_LINUX
5522 * config/tc-mn10300.c (md_convert_frag): Fix printfs.
5523 (tc_gen_reloc): Add cast when assigning bfd_abs_symbol to
5525 (md_estimate_size_before_relax): Don't fall off end of function.
5529 * config/tc-avr.c: Fix formatting.
5530 * config/tc-ns32k.c: Likewise.
5534 * config/tc-d10v.c (find_opcode): Remove extraneous `='.
5538 * config/tc-d10v.c: Fix formatting.
5539 * config/tc-z8k.c: Likewise.
5540 * config/tc-sparc.c: Likewise.
5544 * cgen.c (queue_fixup): Declare opinfo.
5545 (gas_cgen_parse_operand): Mark unused parameters with ATTRIBUTE_UNUSED.
5546 (gas_cgen_md_operand): Ditto.
5547 (gas_cgen_md_apply_fix3): Ditto.
5551 * config/obj-coff.c (obj_frob_symbol): Don't merge
5552 labels. Don't merge if the symbol isn't constant. Return
5553 immediately if a symbol is merged.
5557 * frags.c (frag_align): Correct absolute section alignment.
5561 * config/obj-coff.c (obj_frob_symbol): revert previous change,
5562 it breaks linking against DLLs.
5566 * configure.in: Add CRIS support.
5567 * configure: Regenerate.
5568 * Makefile.am: (CPU_TYPES): Add cris.
5569 (CPU_OBJ_VALID) [aout]: Add cris.
5570 (MULTI_CPU_TYPES): Add cris.
5571 (MULTI_CPU_OBJ_VALID) [aout]: Add cris.
5572 [coff]: Only i386 and mips are valid.
5573 (TARGET_CPU_CFILES): Add config/tc-cris.c.
5574 (TARGET_CPU_HFILES): Add config/tc-cris.h.
5575 (MULTI_CFILES): Add config/e-crisaout.c and config/e-criself.c.
5576 Regenerate dependencies.
5577 * Makefile.in: Regenerate.
5578 * aclocal.m4: Regenerate.
5579 * as.c: Declare crisaout, criself.
5580 * config/tc-cris.h, config/tc-cris.c: New.
5581 * config/e-criself.c, config/e-crisaout.c: New.
5582 * po/POTFILES.in, po/gas.pot: Regenerate.
5586 * read.c: Fix formatting.
5587 * write.c: Fix formatting.
5591 * sb.c: Include <stdlib.h> if exists for abort ().
5595 * config/tc-hppa.c (hppa_fix_adjustable): Correct LR%/RR% comment.
5596 (arg_reloc_stub_needed): #ifdef OBJ_SOM, not #ifdef SOM.
5597 (pa_type_args): Same here.
5601 * config/obj-coff.c (obj_frob_symbol): Don't merge labels. Don't
5602 merge if the symbol isn't constant. Don't call S_SET_EXTERNAL if
5603 the storage class is already set.
5607 * config/tc-m68hc11.c: Fix formatting.
5608 * config/tc-mn10200.c: Likewise.
5609 * config/tc-mn10300.c: Likewise.
5610 * config/tc-pj.c: Likewise.
5611 * config/tc-tic80.c: Likewise.
5612 * config/tc-w65.c: Likewise.
5616 * expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
5621 * doc/c-mips.texi (MIPS Opts): Remove erroneous space after
5626 * config/tc-hppa.c (hppa_fix_adjustable): Use the same checks for
5627 ELF as are used for SOM (except the 32-bit reloc one) to decide
5628 whether a symbol can be reduced to a section symbol. Expand on
5629 the comment for symbols involved in LR% and RR% expressions.
5633 * config/tc-mips.c (mips_disable_float_construction): New
5634 static variable. Set to true if doubles should not be
5635 constructed by loading two single width fp registers with
5636 halves of the value.
5637 (mips_ip): Test mips_disable_float_construction.
5638 (md_longopts): Add command line switches --construct-floats
5639 and --no-construct-floats.
5640 (md_parse_option): Parse new command line options.
5641 (md_show_usage): Describe new command line options.
5643 * doc/c-mips.texi: Document new command line options.
5647 * configure.in: Remove the test /usr/dde for mips-*-sysv4*MP*
5648 * configure: Regenerate.
5652 * configure.in (DEFAULT_EMULATION setting): Revert part of
5653 2000-07-01 change that set te_multi=multi unless set to tmips.
5654 * configure: Regenerate.
5658 * config/obj-coff.c (coff_frob_section): Add padding to the last
5659 section when aligning it increases its size.
5663 * config/tc-tic54x.c: Fix formatting.
5667 * config/tc-h8500.c: Fix formatting.
5668 * config/tc-tic54x.c: Fix formatting.
5672 * config/tc-hppa.c (md_apply_fix): Check fmt 12 and 22 pc-rel
5673 displacements correctly.
5675 * read.h (s_abort): Add ATTRIBUTE_NORETURN.
5679 * hash.c (hash_insert): Add cast to obstruct_alloc to fix
5686 * config/te-hppalinux64.h: Add a new emulation.
5687 * configure.in (emulations): Add configure bits to support the
5688 64-bit Linux/parisc target.
5689 * configure: Regenerate.
5691 * config/tc-hppa.c (md_parse_option): Support `-V' for ELF.
5692 (md_shortopts): Add `V' for ELF.
5694 * config/tc-hppa.c (arg_reloc_stub_needed): Define as zero except
5695 when SOM or ELF_ARG_RELOC are defined.
5696 (pa_type_args): Only set symbol_arg_reloc_info when SOM or
5697 ELF_ARG_RELOC are defined.
5698 (pa_stringer_aux): Don't pa_check_current_space_and_subspace here..
5699 (pa_stringer): ..Do it here instead. Fix comment typos.
5700 (hppa_force_relocation): Cast enums to int before comparing with
5704 * config/tc-hppa.c: Removed unneeded libbfd.h to fix macro
5705 redifinition warning.
5706 (md_apply_fix): Added cast from enum to int for fixP->fx_r_type.
5707 (hppa_force_relocation): ditto
5708 (md_apply_fix): Added cast to buf to fix warnings.
5710 * config/tc-hppa.h (pa_define_label, parse_cons_expression_hppa,
5711 cons_fix_new_hppa, hppa_force_relocation): Prototype.
5713 * config/tc-hppa.c (reloc_type): It's an enum for OBJ_ELF.
5714 (R_N0SEL, R_N1SEL): Define only for OBJ_SOM.
5715 (tc_gen_reloc): Make `code' a reloc_type and `codes' a
5716 reloc_type** to avoid warnings in switch.
5717 (md_apply_fix): Make insn, val signed. Zap buf_wd and read insn a
5718 little earlier instead.
5720 * config/tc-hppa.c (symbol_arg_reloc_info): Define for both som
5722 (pa_type_args): Use symbol_arg_reloc_info.
5723 (struct pa_it): Make arg_reloc unsigned int.
5724 (struct hppa_fix_struct): Likewise for fx_arg_reloc.
5725 (pa_text, pa_data, pa_comm): Don't compile for TE_LINUX.
5726 (pa_code): Delete. pa_text duplicates this function.
5727 (md_pseudo_table): Call obj_elf_text for ".code" if TE_LINUX.
5728 (fix_new_hppa): Argument offset is offsetT, arg_reloc is unsigned
5730 (cons_fix_new_hppa): Actually change selector to e_fsel when
5731 warning about assuming so.
5732 (tc_gen_reloc): More example elf arg reloc code.
5733 (md_apply_fix): Use arg_reloc_stub_needed for elf too.
5734 (hppa_force_relocation): Likewise.
5736 * config/tc-hppa.h: Use TARGET_ARCH_SIZE to select target include
5738 (pa_end_of_source): Prototype.
5739 (hppa_fix_adjustable): Prototype.
5740 (LABELS_WITHOUT_COLONS): Move it..
5741 * config/te-hppa.h: To here.
5743 * config/te-hppa64.h: New file.
5745 * config/tc-hppa.c: Use TARGET_ARCH_SIZE to select target reloc
5747 (md_apply_fix): Pass stdoutput to bfd_hppa_insn2fmt. Handle
5748 format -10, -16, 16 relocs.
5749 (hppa_elf_mark_end_of_function): Test for null
5750 last_call_info->start_symbol
5752 * config/tc-hppa.c (pa_ip): In case 'V', pass `strict' to
5753 CHECK_FIELD, not INSERT_FIELD_AND_CONTINUE. Don't pass opcode to
5754 re_assesmble_* functions. Delete extraneous statements. Fix
5756 (md_apply_fix): Compare against 1048575 in case 21. Don't pass
5757 insn to re_assemble_*.
5761 * doc/internals.texi (Expressions): Fix typo.
5765 * config/tc-sh.c: Fix formatting.
5766 * config/tc-tic54x.c: Fix formatting.
5767 * depend.c: Fix formatting.
5768 * flonum-konst.c: Likewise.
5769 * flonum-mult.c: Likewise.
5773 * config/tc-sh.c: Fix comments.
5774 * config/obj-vms.c: Fix comments.
5775 * config/tc-a29k.c: Likewise.
5776 * config/tc-alpha.c: Likewise.
5777 * config/tc-h8300.c: Likewise.
5778 * config/tc-h8500.c: Likewise.
5779 * config/tc-i370.c: Likewise.
5780 * config/tc-ia64.c: Likewise.
5781 * config/tc-m68hc11.c: Likewise.
5782 * config/tc-m68k.c: Likewise.
5783 * config/tc-mips.c: Likewise.
5784 * config/tc-ns32k.c: Likewise.
5785 * config/tc-ppc.c: Likewise.
5786 * config/tc-z8k.c: Likewise.
5790 * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New.
5791 Default to '(SEC_LOAD | SEC_DATA)'.
5792 (obj_coff_section) [BFD_ASSEMBLER]: Use it.
5794 * doc/internals.texi (CPU Backend): Describe
5795 TC_COFF_SECTION_DEFAULT_ATTRIBUTES.
5799 * as.c (parse_args): NULL terminate the long option list.
5803 * config/tc-d30v.h: Include "write.h" for fixS.
5804 (d30v_start_line, md_pcrel_from_section): Add function prototypes.
5808 * config/tc-d30v.c (write_2_short): Further changes to warning
5809 messages produced when combining EITHER_BUT_PREFER_MU attributed
5818 * config/tc-arm.c (psrs): Accept combinations of flags.
5822 * config/tc-avr.c: Change _ () to _() around all strings marked
5823 for translation (exception from the usual coding style).
5824 (avr_opt): New struct variable, how the new switches are set.
5825 (OPTION_MMCU): Define as 'm' and actually use.
5826 (md_longopts): Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
5827 (show_mcu_list): New function, display the list of known MCUs.
5828 (md_show_usage): Document the new switches. Call show_mcu_list.
5829 (avr_set_arch): Change 'm' to OPTION_MMCU.
5830 (md_parse_option): Call show_mcu_list if unknown MCU specified.
5831 Handle the new switches.
5832 (avr_operands): Disable warnings for undefined combinations of
5833 operands if -mall-opcodes. Disable warnings for skipping two-word
5834 instructions if enhanced core or -mno-skip-bug.
5835 (avr_operand): Accept all addressing modes on avr1 if -mall-opcodes.
5836 (md_apply_fix3): Reject 8K wrap if >8K or -mno-wrap.
5837 (md_assemble): Accept opcodes not supported by MCU if -mall-opcodes.
5838 (avr_ldi_expression): Warn about implicit lo8().
5839 * config/tc-avr.h (md_pcrel_from_section): Add prototype.
5843 * configure.in: Add entry for mips-*-sysv4*MP*
5844 * configure: Rebuild
5845 * config/tc-mips.c (mips_target_format): Return elf32-tradbigmips or
5846 elf32-tradlittlemips for traditional mips targets.
5847 * config/tc-mips.c (md_estimate_size_before_relax): Duplicate the
5848 test for Link Once sections as in adjust_reloc_syms.
5849 * config/te-tmips.h: New file for traditional mips targets. Define
5854 * config/obj-coff.c (obj_coff_setcion) [BFD_ASSEMBLER]: If the
5855 flags argument is not present, don't change an existing section's
5856 section's attributes. If the flags argument is present, warn if the
5857 attributes don't match the section's current attributes. When
5858 long section names are supported, set SEC_LINK_ONCE and
5859 SEC_LINK_DUPLICATES_DISCARD for a new .gnu.linkonce section.
5863 * config/obj-aout.c (obj_aout_type): Do not ignore for undefined
5864 symbols; create them.
5868 * write.c (set_segment_vma): New: Set vma and lma for a segment.
5869 (write_object_file) [BFD_ASSEMBLER && OBJ_COFF && TE_GO32]: Use it.
5873 * config/tc-mips.c (mips_ip): handle "(foo-.-4)" type of
5874 expressions. Ignore the problem when handling 16 bit signed
5875 immediates, because the assembler will take care of the relocation
5880 * config/tc-d30v.c (write_2_short): Do not allow opcodes with
5881 the EITHER_BUT_PREFER_MU attribute to be combined into a reverse
5882 sequential order, and emit warning messages if the input source
5883 code contains constructs like that, or parallel constructs
5884 containing such opcodes.
5888 * config/tc-avr.c (mcu_types): Rename avr4 to avr5, add avr4.
5889 Add more MCU types for avr4 and avr5. Replace at94k{10,20,40}
5890 with just at94k. Change AVR_ISA_85xx back to AVR_ISA_2xxx.
5891 (md_show_usage): Update usage message.
5892 (md_parse_option): Allow redefinition of MCU type within the
5893 same avr[1-5] bfd machine type. Show both old and new MCU type
5894 in the error message.
5895 (md_apply_fix3): Support 8K wrap if AVR_ISA_MEGA is not set.
5896 Simplify 8K wrap code.
5900 * config/obj-aout.c: Remove all uses of DEFUN.
5901 * config/obj-ieee.c: Likewise.
5902 * config/tc-sh.c: Fix comment typos.
5903 * config/tc-tahoe.c: Likewise.
5904 * config/tc-vax.c: Likewise.
5905 * config/tc-w65.c: Likewise.
5906 * config/tc-z8k.c: Likewise.
5907 * config/tc-h8300.c (build_bytes): Assemble ldmac correctly.
5911 * config/tc-i386.c (md_estimate_size_before_relax): Revert
5912 more changes from Sept 1999
5913 (tc_i386_fix_adjustable): ditto
5914 (md_apply_fix3): ditto
5918 * cgen.c (expr_jmp_buf_p): New validity flag for expr_jmp_buf.
5919 (gas_cgen_parse_operand): Set it around expression() call.
5920 (gas_cgen_md_operand): Test for it before longjmp().
5924 * config/tc-h8500.c: Remove all uses of DEFUN.
5925 * config/tc-sh.c: Likewise.
5926 * config/tc-w65.c: Likewise.
5927 * config/tc-z8k.c: Likewise.
5929 * config/tc-h8500.c: Fix typos in comments.
5933 * expr.c (operand): Permit $hex literals if LITERAL_PREFIXDOLLAR_HEX
5938 * expr.c (operand): Do not as_bad() if RELAX_PAREN_GROUPING is
5939 defined. Fix error message for `[' grouping.
5943 * config/tc-h8300.c: Fix formatting and comment typos.
5947 * config/tc-ia64.c (note_register_values): Move premature QP
5948 notation clearing into the appropriate place.
5952 * dep-in.sed: Escape literal `.'s on patterns. Trim off `../'
5953 first before anything else. Add bin-bugs.h, emul.h and progress.h
5954 Sort list of files as for $(OBJS) in Makefile.am.
5956 * Makefile.am (DEP): grep for leading `/' in DEPA, and fail if we
5957 find one. Remake dependencies.
5958 ($(OBJS)): Add bin-bugs.h, emul.h, and progress.h Sort the list.
5959 * Makefile.in: Regenerate.
5960 * doc/Makefile.in: Regenerate.
5962 * config/tc-i386.c (i386_displacement): Don't assume a constant
5963 displacement is necessarily 16 bits when in 16 bit code mode.
5964 (md_assemble): Instead size the displacement here after we know
5965 for sure that a .code16gcc operand hasn't automatically added
5966 operand size prefixes.
5970 * Makefile.am: Rebuild dependency.
5971 * Makefile.in: Rebuild.
5975 * config/tc-h8300.c (parse_reg): Make the function static.
5976 (parse_exp): Likewise.
5980 * config/tc-i386.c (tc_i386_fix_adjustable): Revert change from
5981 Sept 1999; RVA relocs need to be treated more like DIR32 relocs
5982 for cygwin import libraries to work properly.
5986 * Makefile.am: Rebuild dependency.
5987 * Makefile.in: Rebuild.
5988 * configure: Likewise.
5989 * doc/Makefile.in: Likewise.
5993 * doc/internals.texi (CPU backend): Add @itemx for
5994 TC_START_LABEL_WITHOUT_COLON.
5995 * doc/c-tic54x.texi: New.
5996 * doc/as.texinfo: Add tic54x features and include primary tic54x
5998 * doc/all.texi: Add C54X.
5999 * doc/Makefile.am (CPU_DOCS): Add c-tic54x.texi.
6000 * doc/Makefile.in: Regenerate.
6001 * configure.in: Add tic54x and define LIBM for tic54x.
6002 * configure: Regenrate.
6003 * config/tc-tic54x.[ch]: New.
6004 * config/obj-coff.h: Add tic54x.
6005 * Makefile.am: (CPU_TYPES): Add tic54x.
6006 (TARGET_CPU_CFILES): Add 'tc-tic54x.c'.
6007 (TARGET_CPU_HFILES): Add 'tc-tic54x.h'.
6008 (as_new_LDADD): Add $(LIBM).
6009 * Makefile.in: Regenerate.
6013 * doc/Makefile.am (CPU_DOCS): Added 68hc11 file.
6014 * doc/c-m68hc11.texi: Document 68HC11 and 68HC12 port.
6015 * doc/as.texinfo: Likewise.
6017 * configure, Makefile.in: Regenerate.
6018 * configure.in (emulations): Recognize m6811 and m6812.
6019 * Makefile.am (CPU_TYPES, TARGET_CPU_CFILES, TARGET_CPU_HFILES):
6020 Added files for 68hc11 and 68hc12 assembler.
6021 * config/tc-m68hc11.c: Assembler for 68hc11 and 68hc12.
6022 * config/tc-m68hc11.h: Header definition for that assembler.
6026 * symbols.c (resolve_symbol_value): Use bfd_octets_per_byte
6027 instead of OCTETS_PER_BYTE.
6029 * config/tc-v850.c: Fix compile time warnings.
6030 * config/tc-ppc.c: Fix compile time warnings.
6034 * configure.in: Don't emulate i386-pc-pe-coff with i386coff.
6035 * configure: Rebuild.
6039 * config/obj-coff.c (obj_coff_weak): Typo fix: Change BFD_ASSEMLER
6044 * config/tc-mips.c (md_parse_option): Accept RM5200,RM5230,
6045 RM5231, RM5261, RM5721 and RM7000 as r5000 cpu variants.
6047 * doc/c-mips.texi: Document newly accepted cpu variants.
6051 * config/tc-mips.h: Remove definition of ONLY_STANDARD_ESCAPES.
6055 * macro.c (getstring): Make it possible to escape the quote
6060 * config/tc-hppa.c (pa_export): Weak symbols can be global.
6064 * configure: Regenerate.
6068 * app.c (do_scrub_begin): Don't default lex[';'] as a line
6070 * doc/internals.texi (line_separator_chars): Semicolon is no
6071 longer a default. Mention null and newline as defaults.
6073 * read.c (is_end_of_line): Remove ifdef TC_HPPA.
6075 * config/tc-i386.h (line_separator_chars): Explicitly mention `;'
6076 * config/tc-i860.h (line_separator_chars): Likewise.
6077 * config/tc-h8300.c (line_separator_chars): Likewise.
6078 * config/tc-i960.c (line_separator_chars): Likewise.
6079 * config/tc-m68k.c (line_separator_chars): Likewise.
6080 * config/tc-mips.c (line_separator_chars): Likewise.
6081 * config/tc-ns32k.c (line_separator_chars): Likewise.
6082 * config/tc-sparc.c (line_separator_chars): Likewise.
6083 * config/tc-vax.c (line_separator_chars): Likewise.
6085 * config/tc-h8300.c (comment_chars): Use string initialiser.
6086 * config/tc-i960.c (line_comment_chars): Likewise.
6087 * config/tc-z8k.c (comment_chars, line_comment_chars,
6088 line_separator_chars): Likewise.
6090 * config/tc-arm.c (line_separator_chars): Always use `;', not just
6095 * config/tc-arm.c (cons_fix_new_arm): Assign correct reloc value
6100 * configure.in (VERSION): Update to show this is the CVS mainline.
6104 * config/tc-alpha.c (md_undefined_symbol): Properly understand that
6105 $at is the integer register $r28, vs. both $r28 and the floating
6106 point register $f28.
6110 * config/tc-ia64.c (generate_unwind_image): Call ia64_flush_insns.
6111 (dot_endp): Don't call ia64_flush_insns.
6112 (emit_one_bundle): Don't delete prologue/body records from
6113 unwind_record list in first loop. Rewrite second loop to account for
6118 * config/tc-ia64.c: Add missing prototypes.
6119 (generate_unwind_image): Cast argument to output_unw_records call.
6123 * config/tc-avr.c (avr_operand): fix the formatting of the comment.
6127 * config/tc-avr.c (AVR_ISA_???): moved to include/opcode/avr.h
6128 (REGISTER_P): likewise.
6129 (avr_opcodes): uses include/opcode/avr.h
6130 (avr_operand): enable ld r,Z or st r,Z for at90s1200.
6134 * read.c (is_end_of_line): No ';' for TC_HPPA. Add missing
6139 * read.c (is_end_of_line): Put back `;'.
6143 * config/tc-i386.c (md_shortopts): Remove 'm', add 'q' to non-elf.
6147 * expr.c (operand): Test is_end_of_line outside switch to catch
6148 line separator chars that are also operators.
6149 (operator): Return O_illegal for line separator chars.
6151 * read.c (is_end_of_line): Use 1 instead of 99. Don't set `;'
6152 entry (or `!' entry for TC_HPPA).
6154 * config/tc-arm.c (my_get_float_expression): Cast to unsigned char
6155 before indexing is_end_of_line. Remove redundant check for '\0'.
6157 * config/tc-h8500.c (md_assemble): Likewise.
6158 * config/tc-mcore.c (md_assemble): Likewise.
6159 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6162 * config/tc-m88k.c (s_bss): Cast to unsigned char before indexing
6164 * config/tc-mcore.c (mcore_cons): Likewise.
6165 (mcore_float_cons): Likewise.
6166 (mcore_stringer): Likewise.
6167 * config/tc-tic30.c (tic30_find_parallel_insn): Likewise.
6171 * config/tc-arm.c (do_mrs): Allow SPSR_BIT to be set correctly.
6175 * config/tc-sh.c: Fix compile time warning messages.
6177 * config/tc-mips.c: Fix compile time warning messages.
6181 * doc/as.texinfo: Update copyright dates.
6182 (Local Labels): Delete misplaced mention of ARM.
6183 * NEWS: Mention ARM ELF support.
6187 * config/tc-mn10300.c (md_assemble): Copy size to real_size before
6188 it is modified, and use the real_size to compute the frag address
6189 for dwarf2 line info.
6193 * Makefile.am (DEP, DEP1, dep, dep-in, dep-am): Use a better sed
6194 line-matching scheme to cope with automake moving variables around.
6195 ($(TARG_CPU_O)): Remove dependency on TARG_CPU_DEP_@target_cpu_type@
6196 * Makefile.in: Regenerate.
6200 * config/tc-sparc.c (sparc_relax): New.
6201 (md_longopts): Add -relax and -no-relax options.
6202 (md_parse_options, md_show_usage): Likewise.
6203 (md_apply_fix3): Optimize tail call into branch always if possible.
6207 * config/tc-d10v.c (write_2_short, parallel_ok, md_assemble,
6208 d10v_cleanup) implement Mitsubishi's newly explained branch-packing
6209 rules, with warning when a GAS statement specifies a packing that
6210 will result in an instruction being squashed.
6211 Added typdef packing_type and enumerals, changed various integer
6212 literals to use the enumerals.
6216 * config/tc-ia64.c (dot_restorereg_p): New function.
6217 (md_pseudo_table): Add restorereg.p.
6218 (output_X3_format): Fix typo: record type should be UNW_X3, not UNW_X1.
6219 (output_X4_format): Fix typo: record type should be UNW_X4, not UNW_X2.
6221 * config/tc-ia64.h (unw_record_type): Add unwabi.
6222 (unw_r_record): Rename member MASK to GRMASK. Add sub-structure
6223 called MASK with members for imask, and the masks produced by
6224 fr_mem, gr_mem, br_mem, and frgr_mem.
6225 (unw_p_record): Add members ABI and CONTEXT.
6226 (unw_x_record): Add member AB.
6227 * config/tc-ia64.c (enum reg_symbol): Add REG_PSP and REG_PRIUNAT
6228 as pseudo-register for use during unwind info generation.
6229 (AR_PFS, AR_LC): New macros.
6230 (enum pseudo_type): Add PSEUDO_FUNC_REG to permit declaring registers
6231 whose names start with an at sign (as in "@priunat").
6232 (pseudo_func): Add "svr4", "hpux", "nt" constants and "priunat"
6234 (unwind_list, unwind_tail, current_unwind_entry, proc_start,
6235 proc_end, unwind_info, personality_routine): Consolidate into
6236 "unwind" structure to reduce offset-table use. Add member
6237 NEXT_SLOT_NUMBER to track the slot number for the next instruction
6239 (output_R1_format, output_R3_format, output_P3_format,
6240 output_P6_format): Initialize R with zero to reduce compiler warnings.
6241 (output_P7_format): Ditto. Add `default' branch to switch
6242 statement to reduce compiler warnings.
6243 (output_P8_format, output_B1_format, output_B4_format): Ditto.
6244 (output_P4_format): Rename 2nd & 3rd arg to IMASK and IMASK_SIZE.
6245 (format_ab_reg): Rename from format_a_b_reg. Merge A and B args
6246 into single argument.
6247 (output_X1_format, output_X3_format): Initialize R with zero to reduce
6248 compiler warnings. Merge A and B args into single argument.
6249 (output_X2_format, output_X4_format): Remove unused variable R. Merge
6250 A and B args into single argument.
6251 (free_record): Removed (wasn't used).
6252 (free_list_records): Also free imasks in prologue records.
6253 (output_prologue, output_prologue_gr): Initialize mask bits to zero.
6254 (output_spill_mask): Remove.
6255 (output_unwabi): New function.
6256 (output_epilogue, output_label_state, output_copy_state): Call
6258 (output_spill_psprel, output_spill_sprel, output_spill_psprel_p,
6259 output_spill_sprel_p, output_spill_reg, output_spill_reg_p): Add AB
6261 (process_one_record): New locals FR_MASK and GR_MASK. Ignore
6262 gr_mem, fr_mem, br_mem, and frgr_mem records and instead emit them
6263 as part of handling the prologue records. Emit region's imask if
6264 we have one. Handle unwabi, epilogue, label_state, copy_state,
6265 spill_psprel, spill_sprel, spill_reg, spill_psprel_p,
6266 spill_sprel_p, and spill_reg_p records.
6267 (set_imask, count_bits, slot_index): New function.
6268 (fixup_unw_records): Fix region size computation. Handle
6269 epilogue, spill_reg, spill_sprel, spill_psprel, spill_reg_p,
6270 spill_sprel_p, and spill_psprel_p records. Merge mask bits of
6271 frgr_mem, fr_mem, gr_mem, br_mem on a per-region basis and
6272 set_imask accordingly. Update imask for gr_gr, and br_gr records.
6273 (convert_expr_to_ab_reg, convert_expr_to_xy_reg): New function.
6274 (dot_save): Use manifest constants for applicaton registers.
6275 Handle REG_PR and REG_PRIUNAT.
6276 (dot_restore): Don't just ignore it.
6277 (dot_restorereg): New function..
6278 (generate_unwind_image): Ensure unwind info is a multiple of eight
6279 bytes, not just four bytes.
6280 (dot_handlerdata, dot_unwentry): Demand empty rest of line.
6281 (dot_altrp): Don't just ignore it.
6282 (dot_savemem): New function. Replaces dot_savesp() and
6283 dot_savepsp(). Use manifest constants for applicaton registers.
6284 Handle REG_PR and REG_PRIUNAT.
6285 (dot_savef): Simplify.
6286 (dot_saveb): Support generation of br_gr.
6287 (dot_spillreg, dot_spillmem, dot_spillreg_p, dot_spillmem_p,
6288 dot_label_state, dot_copy_state): New function.
6289 (dot_unwabi): Don't just ignore it.
6290 (md_pseudo_table): Add restorereg, spillreg, spillsp, spillpsp,
6291 spillreg.p, spillsp.p, spillpsp, label_state, copy_state,
6292 unwabi, vframesp, and vframepsp. Fix typo alprp->altrp.
6293 (emit_one_bundle): Set slot number for prologue/body records
6294 *before* emitting the first insn.
6295 (emit_one_bundle): Set UNWIND.NEXT_SLOT_NUMBER.
6296 (md_begin): Declare "psp" pseudo-register.
6297 (md_operand): Handle PSEUDO_FUNC_REG. Fix printing of error message
6298 so we don't get segfault.
6299 (output_psp_sprel): Output sp/psp relative offsets as 4-byte word
6300 counts as required per SW Conventions manual
6301 (output_rp_psprel, output_rp_sprel, output_pfs_psprel,output_pfs_sprel,
6302 output_preds_psprel, output_preds_sprel, output_spill_base,
6303 output_unat_psprel, output_unat_sprel, output_lc_psprel,
6304 output_lc_sprel, output_fpsr_psprel, output_fpsr_sprel,
6305 output_priunat_psprel, output_priunat_sprel, output_bsp_psprel,
6306 output_bsp_sprel, output_bspstore_psprel, output_bspstore_sprel,
6307 output_rnat_psprel, output_rnat_sprel, output_spill_psprel,
6308 output_spill_sprel, output_spill_psprel_p, output_spill_sprel_p):Ditto.
6309 (dot_vframe): Implement.
6310 (dot_vframesp, dot_vframepsp): New function.
6314 * configure.in (i386-*-freebsd a.out entry): Quote properly.
6315 * configure: Regenerate.
6319 * config/tc-i386.c (md_assemble): Pass jump reloc in fr_var...
6320 (md_estimate_size_before_relax): so we can use it here instead of
6321 old kludges. Localise vars to blocks. Comment.
6323 * frags.c (frag_new): Update fr_var comments.
6324 * frags.h (struct frag): Ditto.
6328 * config/tc-ia64.c (FUNC_PC_RELATIVE): New.
6329 (pseudo_func): Add pcrel.
6330 (operand_match): Handle IA64_OPND_TGT64.
6331 (build_insn): Likewise.
6332 (md_begin): Initialize pseudo_func[FUNC_PC_RELATIVE].
6333 (ia64_gen_real_reloc_type): Handle FUNC_PC_RELATIVE.
6334 (fix_insn): Handle all three 64-bit relocation types.
6338 * obj.h (struct format_ops): New members begin, app_file,
6339 s_set_other, s_set_desc, s_get_type, s_set_type,
6340 separate_stab_sections, init_stab_section.
6342 * config/obj-multi.h: Update GPL notice to v2.
6344 (obj_app_file): New.
6345 (S_SET_SIZE): Test s_set_size for NULL before calling.
6346 (S_SET_ALIGN): Similar for s_set_align.
6351 (SEPARATE_STAB_SECTIONS): New.
6352 (INIT_STAB_SECTION): New.
6353 (EMIT_SECTION_SYMBOLS): New.
6354 (AOUT_STABS) [OBJ_MAYBE_AOUT]: Define.
6356 * config/obj-elf.h: Update GPL notice to v2.
6357 Mention that this file is included from obj-multi.h.
6358 (obj_begin): Wrap definition in ifndef.
6359 (elf_file_symbol): Constify declaration.
6360 (obj_app_file): Ditto.
6361 (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB):
6362 Wrap in ifndef SEPARATE_STAB_SECTIONS.
6364 * config/obj-elf.c (elf_s_set_other): New.
6365 (elf_file_symbol): Constify argument.
6366 (elf_separate_stab_sections): New.
6367 (elf_init_stab_section): New.
6368 (elf_format_ops): Add new members. Remove comma at end.
6370 * config/obj-ecoff.c (ecoff_separate_stab_sections): New.
6371 (ecoff_format_ops): Add new fields. Remove comma at end.
6372 Mention inconsistency for emit_section_symbols.
6374 * config/obj-coff.h (c_dot_file_symbol): Constify declaration.
6376 * config/obj-coff.c (c_dot_file_symbol): Constify argument.
6377 (coff_separate_stab_sections): New.
6378 (coff_format_ops): Add new members.
6380 * config/obj-aout.c (obj_aout_sec_sym_ok_for_reloc): New.
6381 (obj_aout_s_set_other): New.
6382 (obj_aout_s_set_desc): New.
6383 (obj_aout_s_get_type): New.
6384 (obj_aout_s_set_type): New.
6385 (obj_aout_separate_stab_sections): New.
6386 (aout_format_ops): New members added. Use obj_aout_process_stab,
6387 not 0. Use obj_aout_sec_sym_ok_for_reloc, not 0.
6388 (obj_aout_frob_symbol): Add ATTRIBUTE_UNUSED to args as
6390 (obj_aout_line, obj_aout_weak, obj_aout_type): Ditto.
6394 * config/tc-i386.c (tc_i386_fix_adjustable): Prevent adjustment
6395 for OBJ_MAYBE_ELF too. Use S_IS_EXTERNAL instead of S_IS_EXTERN.
6396 (md_estimate_size_before_relax): Ensure jumps to weak and
6397 externally visible symbols are relocatable.
6401 * stabs.c (aout_process_stab): Make global.
6402 (s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
6403 * read.h (aout_process_stab): Declare.
6405 * configure.in (EMULATIONS) [i386aout, i386coff, i386elf]:
6406 Generalize to *aout, *coff *elf.
6407 * configure: Regenerated.
6409 * doc/internals.texi (Object format backend): Say
6410 SEPARATE_STAB_SECTIONS needs to be nonzero, not just defined.
6412 * Makefile.am (TARG_ENV_HFILES): Delete te-multi.h.
6413 * Makefile.in: Regenerated.
6417 * cgen.h (GAS_CGEN_MAX_FIXUPS): Check if already defined.
6421 * config/tc-hppa.c (md_apply_fix): Mask out immediate bits of
6422 instruction to reflect change in re_assemble_*.
6426 * configure.in (hppa-*-hpux11*): If the cpu is hppa*64*, then
6427 build PA64 ELF tools.
6428 * configure: Rebuilt.
6432 * Makefile.am: Regenerate dependencies.
6433 * Makefile.in: Regenerate.
6437 * config/tc-arm.c (struct asm_psr): Add boolean field
6438 distinguishing between CSPR and SPSR. Rename 'number' field
6440 (psrs): Rearrange contents to match new asm_psr structure.
6441 (arm_psr_parse): Move next to psr_required_here. Make it
6442 return an asm_psr structure.
6443 (psr_required_here): Use asm_psr structure returned by
6445 (do_msr): Reorganise to allow psr_required_here to be called
6447 (md_undefined_name): Mark 'name' parameter as unused, since
6448 the COFF target does not use it.
6452 * config/te-386bsd.h: Clean up comments to adhere to the GNU coding
6454 * config/te-aux.h: Likewise.
6455 * config/te-dpx2.h: Likewise.
6456 * config/te-go32.h: Likewise.
6457 * config/te-hp300.h: Likewise.
6458 * config/te-hppa.h: Likewise.
6459 * config/te-i386aix.h: Likewise.
6460 * config/te-ic960.h: Likewise.
6461 * config/te-interix.h: Likewise.
6462 * config/te-nbsd532.h: Likewise.
6463 * config/te-pc532mach.h: Likewise.
6464 * config/te-ppcnw.h: Likewise.
6465 * config/te-psos.h: Likewise.
6466 * config/te-sparcaout.h: Likewise.
6467 * config/te-sun3.h: Likewise.
6468 * config/te-sysv32.h: Likewise.
6472 * config/tc-h8300.c (do_a_fix_imm): Don't rely on `short' being 16
6473 bits. Instead explicitly mask and sign extend. Do the 8 bit mask
6474 and sign extend without an if statement.
6475 (build_bytes): Likewise.
6479 * config/tc-h8300.c (do_a_fix_imm): Output a reloc for no
6480 X_add_symbol L_32 case.
6484 * config/te-freebsd.h: New file.
6488 * asintl.h (gettext, dgettext, dcgettext, textdomain,
6489 bindtextdomain): Replace defines with those from intl/libgettext.h
6490 to quieten gcc warnings.
6492 * NEWS: Mention x86 .arch and -q.
6494 * config/tc-i386.c (quiet_warnings): New.
6495 (md_assemble): Use quiet_warnings.
6496 (md_parse_option): Set quiet_warnings from -q.
6497 (md_show_usage): Mention -q, delete -m.
6498 (flag_do_long_jump): Delete.
6499 (md_parse_option): Remove -m.
6500 (md_show_usage): Remove -m.
6501 (md_create_long_jump): Remove useless flag_do_long_jump code.
6503 * as.c (parse_args): In case OPTION_DEFSYM, use a valueT to hold
6504 the symbol value, and use bfd_scan_vma if BFD_ASSEMBLER.
6509 * doc/c-i386.texi (i386-Arch): New section.
6510 (i386-Syntax): Mention .intel_syntax and .att_syntax.
6512 * config/tc-i386.c (cpu_arch_name, cpu_arch_flags): New.
6513 (smallest_imm_type): Use smallest opcode for shift by one if cpu
6514 architecture has been given and is not 486.
6515 (set_cpu_arch): New.
6516 (md_pseudo_table): Add .arch.
6517 (md_assemble): Warn if cpu architecture has been given and an
6518 unsupported instruction.
6520 * config/tc-i386.h (SMALLEST_DISP_TYPE): Delete.
6521 Move operand_types bit defines after relevant template field.
6522 (template): Add cpu_flags.
6528 * config/tc-mn10300.h (md_end): Define.
6529 (mn10300_finalize): Declare.
6530 * config/tc-mn10300.c: Include dwarf2dbg.h.
6531 (debug_line): Define.
6532 (md_assemble): Generate dwarf2 line info.
6533 (mn10300_finalize): New function. Finalize dwarf2 info.
6537 * config/tc-mips.c (md_estimate_size_before_relax): Use the
6538 external version of the relocation for weak symbols.
6542 * config/tc-ia64.c (output_P7_format, case mem_stack_f): Output fixed
6543 frame size in units of 16 bytes, as required per SW Conventions manual.
6544 (output_unw_records): Output info-block header as a dword to get
6549 * as.h: #include "file", not <file> on files from ../include.
6550 (as_abort, as_fatal): Add ATTRIBUTE_NORETURN.
6551 * config/tc-m68k.c (m68k_ip): Fix signed/unsigned warnings.
6552 (md_convert_frag): Add ATTRIBUTE_UNUSED.
6553 (tc_coff_symbol_emit_hook): Ditto.
6554 (OPTCOUNT): Cast to int to avoid compiler warning.
6555 (md_begin): Fix signed/unsigned warnings.
6559 * config/tc-m68k.c (md_convert_frag_1): Abort if we end up in the
6560 ABRANCH LONG case for a conditional branch on a 68000.
6561 (md_estimate_size_before_relax): Likewise. Also handle
6562 flag_short_refs correctly for ABRANCH, BCC68000, and DBCC.
6563 (m68k-ip: case ABSL): Relax absolute references to 16-bit
6564 PC-relative on all CPUs.
6565 (md_estimate_size_before_relax): Likewise.
6569 * as.c (parse_args): Just mention current year in printed
6574 * config/tc-ppc.c (pre_defined_registers): Add entries for vector
6576 (md_parse_option): Recognize -m7400.
6580 * config/atof-ieee.c (gen_to_words): When adding carry back in,
6581 don't permit lp to become less than the words array.
6585 config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
6586 Fix little-endian case.
6590 * as.c (parse_args): Update copyright.
6594 * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4
6595 for the .bss section too.
6599 * configure.in: Set em=linux for hppa-*-linux.
6600 * configure: Regenerate.
6601 * doc/Makefile.in: Regenerate with correct automake.
6603 * frags.c (frag_grow): Sanity check chunk_size.
6605 * config/obj-elf.h: #include "bfd.h" not <bfd.h>
6606 * config/obj-som.h: Likewise.
6607 * config/obj-ieee.h: Likewise.
6609 * config/tc-hppa.h: Test BFD_ARCH_SIZE, not BFD64.
6611 * config/tc-hppa.c (log2): Only compile when OBJ_SOM.
6612 (md_pseudo_table): Fully initialise OBJ_ELF cases.
6613 (fix_new_hppa): Add ATTRIBUTE_UNUSED to args as appropriate.
6614 (pa_ip): low_sign_unext now returns via function value. Use
6615 re_assemble_* instead of dis_assemble_* and
6616 INSERT_FIELD_AND_CONTINUE combination. Don't call sign_unext
6618 (md_convert_frag): Add ATTRIBUTE_UNUSED to args as appropriate.
6619 (md_section_align, md_parse_option, md_show_usage,
6620 md_undefined_symbol, pa_align, pa_block, pa_brtab, pa_try,
6621 pa_callinfo, pa_code, pa_comm, pa_end, pa_enter, pa_entry,
6622 pa_exit, pa_export, pa_import, pa_label, pa_leave, pa_level,
6623 pa_origin, pa_param, pa_proc, pa_procend, pa_space, pa_spnum,
6624 pa_version, pa_compiler, pa_copyright, pa_data, pa_fill, pa_lsym,
6626 (md_apply_fix): Change type of new_val to offsetT. Delete w1, w2,
6627 w, resulti. Add insn, val. Move bfd_get_32 and bfd_put_32
6628 outside of switch. Correct mask and shifting errors in case 10
6629 and case -11. In case 21, compare against signed range to suit
6630 hppa_field_adjust changes. In case 12, use re_assemble_12. In
6631 case 17 and case 22, use offsetT variable to properly check range.
6632 Use re_assemble_* here too.
6633 (evaluate_absolute): Change type of value to offsetT. Call
6634 hppa_field_adjust to do the work for us.
6635 (pa_parse_cmpb_64_cmpltr): Delete save_s.
6636 (pa_parse_cmpib_64_cmpltr): Ditto.
6637 (pa_build_unwind_subspace): Delete unused var subseg. Change type
6638 of i to unsigned int.
6639 (pa_type_args): Conditionally declare symbol if OBJ_SOM.
6640 (pa_end_of_source): Return type is void.
6644 * macro.c (macro_expand_body): Don't prepend macro number with zeroes.
6648 * config/tc-avr.c: ATTRIBUTE_UNUSED added to the necessary places.
6649 More comments added.
6650 (md_begin): Removed "construct symbols for each register name".
6651 Because register names conflicts with GCC generated function
6653 (avr_operand): Now constant numbers can be used as a register
6654 identifiers (0 as r0, 31 as r31).
6655 (md_assemble): use skip_space () before parsing instruction
6660 * configure.in: Set bfd_gas=yes on i386-*-pe and i386-*-nt* to
6661 ensure all pe targets use bfd. Remove unnecessary bfd_gas=yes on
6662 arm-*-netbsd* and arm-*-wince as this is set for all arm*.
6663 * configure: Regenerate.
6667 * as.h: Correctly check GCC version.
6671 * doc/as.1: Fix unbalanced brackets.
6673 * config/tc-i386.c (comment_chars): Don't use '/' as comment start if
6675 (line_comment_chars): Set to '/' if TE_FreeBSD.
6679 * configure.in: Configury support for PA64 (currently disabled).
6680 * configure: Rebuilt.
6684 * config/tc-mips.c (s_change_sec): Use record_alignment, not
6685 bfd_set_section_alignment.
6689 * config/tc-i386.c (offset_in_range): Ensure shift counts are less
6694 * doc/c-arm.texi (ARM Directives): Document behaviour of .align 0.
6695 * doc/as.texinfo (Align): Include arm and strongarm in list of
6696 targets that have the second form of the behaviour of the .align
6701 * config/obj-som.c: Terminate obj_pseudo_table.
6705 * as.c (parse_args): Allow md_parse_option to override -a listing
6707 * config/obj-coff.c (add_lineno): Change type of offset parameter
6708 from "int" to "bfd_vma."
6709 * config/tc-ppc.c (md_pseudo_table): Add "llong" and "machine."
6710 (ppc_mach, ppc_subseg_align, ppc_target_format): New.
6711 (ppc_change_csect): Align correctly for XCOFF64.
6712 (ppc_machine): New function, which discards "ppc_machine" line.
6713 (ppc_tc): Cons for 8 when code is 64 bit.
6714 (md_apply_fix3): Don't check operand->insert. Handle 64 bit
6716 (md_parse_option): Handle -a64 and -a32.
6718 * config/tc-ppc.h (TARGET_MACH): Define.
6719 (TARGET_FORMAT): Move to function.
6720 (SUB_SEGMENT_ALIGN): Use ppc_subseg_align.
6724 * config/tc-avr.c: New AVR_ISA_ defined.
6725 (md_assemble): Handle opcodes with optional operands (lpm,elpm).
6726 (avr_operand): Handle 'a', 'v' and 'z' constraint letters needed
6727 for `fmul', `movw' and `lpm R,Z' instructions.
6728 (avr_operands): Warn if current opcode is a two-word instruction
6729 and previous opcode was cpse/sbic/sbis/sbrc/sbrs.
6730 (avr_opcodes): New commands added.
6731 (REGISTER_P): Check 'a' and 'v' constraint letters.
6732 (mcu_types): New MCU added.
6736 * config/tc-ia64.c (pseudo_func[]): Add new "nat" entry equivalent
6738 (operand_match): Conditionally insert default bit values for IMMU9.
6742 * configure.in: Add NetBSD/sparc ELF and NetBSD/sparc64 support.
6743 * configure: Rebuilt.
6748 * config/tc-hppa.c (md_apply_fix): Handle new PA2.0 formats.
6750 * config/tc-hppa.c (CHECK_ALIGN): New macro.
6751 Added handling of new operand types l,y,&,fe,fE,fx.
6759 * Makefile.am (CPU_TYPES): Add ia64.
6760 (TARGET_CPU_CFILES): Add config/tc-ia64.c.
6761 (TARGET_CPU_HFILES): Add config/tc-ia64.h.
6762 * Makefile.in: Rebuild.
6763 * app.c (do_scrub_chars): Handle DOUBLESLASH_COMMENTS.
6764 * configure: Rebuild.
6765 * configure.in: Recognize ia64 as cpu type. Set bfd_gas.
6766 (ia64-*-elf*, ia64-*-linux-gnu*): New targets.
6767 * expr.c (expr): Handle md_optimize_expr.
6768 * read.c (LEX_HASH): Add comment.
6769 * config/tc-ia64.c, config/tc-ia64.h: New files.
6773 * config/tc-d30v.c (write_2_short): Disregard opcode1->ecc when
6774 bundling a non-delayed branch type instruction.
6778 * config/tc-mn10300.c (HAVE_AM30): Define.
6779 (md_assemble): Use it.
6783 * config/obj-elf.c (obj_elf_change_section): Check for changed
6786 * Makefile.am: (CPU_MULTI_VALID): Remove.
6787 (MULTI_CPU_TYPES): Define.
6788 (MULTI_CPU_OBJ_VALID): Define.
6789 (DEPTC): Use the above.
6790 (DEPOBJ): Same here.
6792 Regenerate dependencies.
6793 * Makefile.in: Regenerate.
6797 * Makefile.am (YACC, LEX): Get them from configure.
6801 * config/tc-i386.c (offset_in_range): Use addressT instead of
6802 bfd_vma for non-bfd assemblers.
6806 * config/tc-i386.c (offset_in_range): Sign extend val so BFD64
6807 doesn't give spurious errors.
6811 * as.h (SEEK_SET): Define if undefined.
6815 * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on
6816 constants, and don't assume offsetT is 32 bits.
6820 * config/tc-d10v.h: Include "write.h" to get definition of fixS.
6821 (md_pcrel_from_section): Add prototype.
6822 (d10v_fix_adjustable): Add prototype.
6823 (d10v_force_relocation): Replace 'struct fix' with 'fixS'.
6825 * config/tc-d10v.c (md_apply_fix3): Add paren around &&.
6829 * config/tc-d10v.c (find_opcode): Correctly calculate position of
6830 symbol in frag chain.
6834 * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT.
6835 (fits_in_unsigned_byte, fits_in_unsigned_word): Ditto.
6836 (fits_in_signed_word, smallest_imm_type): Ditto.
6837 (md_assemble): Use an offsetT var to hold offsetT values, not a
6839 (offset_in_range): New.
6840 (md_assemble): Use it.
6841 (md_convert_frag): Change type of target_address, opcode_address,
6842 and displacement_from_opcode_start to offsetT.
6843 (md_create_short_jump): Change type of offset to offsetT.
6844 (md_create_long_jump): Ditto.
6845 (md_apply_fix3): Use -4, not 0xfffffffc for BFD_RELOC_386_PLT32.
6846 (md_chars_to_number): Remove.
6847 (output_invalid): Remove duplicate prototype.
6851 * Makefile.am (CPU_TYPES): Add 'avr'.
6852 (TARGET_CPU_CFILES): Add 'tc-avr.c'.
6853 (TARGET_CPU_HFILES): Add 'tc-avr.h'.
6855 * Makefile.in: Regenerate.
6857 * doc/as.texinfo: Add M32R documentation.
6861 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6862 --enable-build-warnings option.
6863 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6864 * Makefile.in, configure: Re-generate.
6868 * config/tc-arm.c (md_apply_fix3): Treat BFD_RELOC_ARM_PCREL_BLX
6869 in the same way as BFD_RELOC_ARM_PCREL_BRANCH, and
6870 BFD_RELOC_THUMB_PCREL_BLX lie BFD_RELOC_THUMB_PCREL_BRANCH.
6871 (tc_gen_reloc): Accept BFD_RELOC_{ARM|THUMB}_PCREL_BLX.
6872 (arm_force_relocation): Force relocations for
6873 BFD_RELOC_{ARM|THUMB}_PCREL_BLX as well.
6877 * config/tc-sh.c (get_operands): There's no third operand if the
6878 first operand is an immediate.
6882 * config/tc-sh.c (immediate): Delete.
6883 (sh_operand_info): Add immediate member.
6884 (parse_reg): Use A_PC for pc.
6885 (parse_exp): Add second argument 'op'. All callers changed.
6886 (parse_at): Expect pc to be coded as A_PC.
6887 Use immediate field in *op.
6888 (insert): Add fourth argument 'op'. All callers changed.
6889 (build_relax): Add second argument 'op'. All callers changed.
6890 (insert_loop_bounds): New function.
6891 (build_Mytes): Remove DISP_4.
6892 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
6893 (assemble_ppi): Use immediate field in *operand.
6894 (sh_force_relocation): Handle BFD_RELOC_SH_LOOP_{START,END}.
6895 (md_apply_fix): Likewise.
6896 (tc_gen_reloc): Likewise. Check for a pcrel BFD_RELOC_SH_LABEL.
6900 * config/tc-sparc.c (sparc_ip): Avoid string pasting.
6904 * internals.texi (CPU backend): Document
6905 TC_CHECK_ADJUSTED_BROKEN_DOT_WORD.
6909 * po/gas.pot: Regenerate.
6911 * as.c (show_usage): Restore translated part of bug string.
6912 * gasp.c (show_usage): Likewise.
6914 * Makefile.am (MKDEP): Use gcc -MM rather than ../mkdep.
6915 (DEP): Quote when passing vars to sub-make. Use "mv -f" rather
6916 than move-if-change.
6917 (DEP1): Modify for "gcc -MM".
6921 (CLEANFILES): Add DEPTCA, DEPOBJA, DEP2a, DEPA.
6922 Update dependencies.
6923 * Makefile.in: Regenerate.
6927 * config/tc-mn10300.c (md_pseudo_table): Use constant names.
6928 (md_begin): Likewise.
6929 (HAVE_AM33): New macro.
6930 (md_assemble): Use it. Match r_regs and xr_regs only if
6935 * as.h: #include "bin-bugs.h"
6936 * as.c (show_usage): Use REPORT_BUGS_TO.
6937 * gasp.c: #include "bin-bugs.h"
6938 (show_usage): Use REPORT_BUGS_TO.
6940 * config/tc-sparc.c (md_show_usage): Add a trailing newline.
6944 * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
6945 call TC_CHECK_ADJUSTED_BROKEN_DOT_WORD for each word after
6950 * config/tc-i386.c (i386_immediate): Don't assume a constant
6951 immediate is necessarily 16 bits when in 16 bit code mode.
6952 (md_assemble): Instead set guess_suffix here after we have checked
6957 * config/tc-d30v.c (check_range): Allow signed or unsigned 32-bit
6958 quantities. Correct right shift sign extension.
6959 (build_insn): Make `number' unsigned long. Mask top 6 bits of
6960 32-bit value when shifting into place.
6964 * app.c: Add ATTRIBUTE_UNUSED as needed.
6965 * config/tc-ppc.c: Likewise.
6966 (ppc_size): Make unsigned long.
6967 (ppc_insert_operand): Add casts to avoid warnings.
6971 * config/tc-d10v.h (md_flush_pending_output): Define.
6975 * config/tc-sh.h (SEG_NAME): New macro: return the name of a
6976 segment. Works for both BFD_ASSEMBLER and others.
6977 (SUB_SEGMENT_ALIGN): Use SEG_NAME.
6981 * config/tc-arm.c (tinsns): Add "bal" instruction pattern.
6985 * listing.c (LISTING_LHS_WIDTH): Default depends on
6987 (LISTING_LHS_WIDTH_SECOND): Default to LISTING_LHS_WIDTH.
6991 * config/tc-sh.c (md_show_usage): Use backslash before newline in
6996 * config/tc-avr.h (TC_HANDLES_FX_DONE): Define.
6998 * config/tc-avr.c (mcu_types): Add missing initialiser.
6999 (md_pcrel_from_section): Add prototype.
7000 (avr_operand): Remove redundant test of unsigned < 0.
7001 (avr_cons_fix_new): Ensure exp_mod_pm zero on function exit.
7005 * config/tc-avr.c: New file for AVR support.
7006 * config/tc-avr.h: Likewise.
7007 * configure.in: Add AVR support.
7008 * configure: Regenerate.
7012 * gasp.c (macro_op): Add new argument to check_macro call.
7013 Macro structure definitions moved to macro.h
7014 * sb.h: Add argument to prototype for input_scrub_include_sb.
7015 * input-scrub.c (input_scrub_include_sb): Allow disabling of sb
7016 nesting checks with an additional flag.
7017 (struct input_save): Add flag to indicate whether current sb
7018 should be checked for proper macro/conditional nesting.
7019 (input_scrub_push/pop): Save/restore nest check flag.
7020 (input_scrub_next_buffer): Ditto. Also call end of macro hook if
7022 * macro.c (check_macro): Allow caller to retrieve parsed macro
7023 information if a pointer is provided. This information may be
7024 used by the new macro hooks.
7025 * macro.h: Update prototype for check_macro. Macro struct
7026 definitions moved here from macro.c/gasp.c.
7027 * read.c (read_a_source_file): Add parameter to check_macro call,
7028 and pass macro info to the macro hook, if defined.
7029 (input_scrub_insert_line): New. Allow insertion of a line of
7030 characters into the input stream.
7031 (input_scrub_insert_file): New. Allow insertion of an arbitrary
7032 file into the input stream.
7033 (s_include): Use input_scrub_insert_file.
7034 * internals.texi: Document new macro hooks.
7035 * as.h: New prototypes added.
7039 * config/tc-i386.c: Don't start any as_bad or as_warn message with
7040 an initial capital letter.
7041 (i386_index_check): Reindent.
7045 * config/tc-arm.c (md_apply_fix3): Fix bug detecting overflow of pc
7050 * config/tc-arm.c (do_t_adr): Flag "adr Rd,label"
7051 instruction operand bad if Rd > 7 when generating
7052 thumb instructions. Prevents for example,
7053 "adr r12,label" from silently failing and generating
7054 the wrong instruction.
7058 * config/tc-arm.c (md_apply_fix3): Handle same-section relocations
7059 that have a destingation >= 0x400000.
7060 Fix compile time warning messages.
7064 * config/tc-sh.c (md_begin): When encountering insn that are
7065 not supported by the current arch, only change the name if
7066 its contents are the same as prev_name.
7067 (get_specific): If the the architecture doesn't match, fail.
7071 * config/tc-sh.c (IDENT_CHAR): Define.
7072 (parse_reg): Use it instead of isalnum. Put r[0..7]_bank operand
7073 matching back where it came from.
7077 * config/tc-sh.c (md_show_usage): Add description of -dsp.
7081 * config/tc-sh.c (parse_reg): Match r[0..7]_bank operands before
7086 * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
7090 * expr.c (operand) [case 'f']: When testing if '0f' can start a
7091 floating-point-number, make sure 'f' is in FLT_CHARS.
7095 * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
7096 (s_lcomm_internal): Use it.
7097 * doc/internals.texi (CPU backend): Document it.
7098 * config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
7103 * config/tc-mips.c (mips_ip): Don't put stuff in .rodata
7106 * config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
7107 implementation doesn't have special handling for switch
7109 (macro_build): Allow for code in sections other than .text.
7111 (mips_ip): Likewise.
7112 (md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
7113 Don't perform relocs if we will be outputting them.
7114 (tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
7115 relocations. Allow BFD_RELOC_16_PCREL_S2 relocs when
7120 * config/tc-m32r.c (m32r_fix_adjustable): Look up the
7121 relocation type based on the entry in the fixup structure.
7122 Put S_IS_EXTERN processing back in.
7126 * Makefile.am (install-exec-tooldir): Depend on
7127 install-exec-bindir for parallel make.
7128 * Makefile.in: Regenerated.
7132 * config/tc-m32r.c (struct md_longopts): Add -m32r command line
7134 (md_parse_option): Parse -m32r command line switch - disable m32rx
7136 (md_show_usage): Document new option.
7138 * doc/Makefile.am (CPU_DOCS): Add c-m32r.texi.
7139 * doc/Makefile.in: Regenerate.
7140 * doc/c-m32r.texi (M32R-Opts): Document new command line switch.
7144 * config/tc-d30v.c (check_range): Remove code that incorrectly
7145 sign extended values where bits < 32.
7149 * configure.in: Support --enable-targets=all on ia32.
7150 * configure: Regenerated.
7154 * gasp.c (do_align): Remove bogus check of alignment value.
7158 * config/obj-elf.c (elf_frob_symbol): Remove code which when
7159 TC_PPC was defined forced the type of a symbol with no other type
7164 * doc/internals.texi (CPU backend): Mention that
7165 line_separator_chars do not break up comments. Fix typos for
7166 LEX_AT and LEX_NAME descriptions. Document operands for
7167 TC_EQUAL_IN_INSN, md_operand and md_section_align. Correct
7168 description of md_create_short_jump usage. Document argument for
7169 md_undefined_symbol.
7173 * config/tc-sparc.c (OPTION_UNDECLARED_REGS): New option.
7174 (md_parse_option): Handle it.
7175 (md_show_usage): Document it.
7179 * config/tc-alpha.c (md_assemble): Accept `1' and `9' in an
7180 opcode, for the instruction `pal19'. From Andrea Arcangeli
7185 * config/tc-i386.c (i386_immediate): Move constant operand sizing
7187 (md_assemble): To here, before template operands are matched.
7188 Also ensure a constant immediate is sign extended when we know the
7189 size is at most 16 bits. This is to catch cases like "add
7190 $0xffc0,%ax" where we don't know the size, and thus that the
7191 immediate can be represented as Imm8S until after parsing the
7193 (i386_displacement): Similarly sign extend 16 bit constant
7195 (md_assemble): Relax 16-bit jump constant range check to suit sign
7196 extended displacements.
7200 * doc/c-mips.texi (MIPS Opts): Fix typo in last patch.
7204 * config/tc-i386.c (md_assemble): Don't swap intersegment jmp and
7205 call operands when intel_syntax.
7206 (intel_float_operand): Return 2 for "fi...".
7207 (i386_operand_modifier): Change "DWORD PTR" test to suit above.
7208 Return SHORT_MNEM_SUFFIX for "WORD PTR" when "fi...". Revert
7209 earlier "SHORT" change.
7210 (md_assemble): When determining suffix from Regs, exclude
7215 * configure: Add arm-wince, mips-pe and sh-pe targets.
7216 * configure: Regenerate.
7218 * config/obj-coff.h (COFF_WITH_PE): Define for mips-pe and
7220 (TARGET_FORMAT): Set to "pe-shl" for the sh-pe target and to
7221 "pe-mips" for the mips-pe target.
7223 * config/tc-arm.c (insns): Change displacement encoded in BL
7224 and B instructions if the target port is arm-wince.
7225 (do_ldst): Do not bias the relocation offset if the target
7227 (md_pcrel_from): Add in missing relocation offset bias if the
7228 target os arm-wince.
7230 * config/tc-mips.c (mips_target_format): Support COFF flavour.
7231 (md_begin): Disable -G support for mips-pe target.
7232 (md_apply_fix): Treat BFD_RELOC_RVA reloc as BFD_RELOC_32.
7233 * config/tc-mips.h (USE_GLOBAL_POINTER_OPT): Add support for
7236 * config/tc-sh.c (md_begin): sh-pe target is little endian.
7237 * config/tc-sh.h (SUB_SEGMENT_ALIGN): If using a BFD
7238 assembler, just set the alignment to 4.
7240 * config/te-wince-pe.h: New file for WinCE targets. Define
7245 * config/tc-i386.c (md_assemble): Swap segments too for intel mode
7246 string instructions.
7247 (i386_operand_modifier): Set i.suffix = WORD_MNEM_SUFFIX for SHORT.
7248 (i386_intel_memory_operand): After finding a segment override,
7249 check again for no `[' before looking for a displacement. Bomb if
7250 more than one displacement rather than silently discarding the
7251 second and subsequent ones. Free strings malloc'd by
7252 build_displacement_string.
7256 * config/obj-som.c (obj_pseudo_table): Add "weak".
7257 (obj_som_weak): New routine.
7261 * config/tc-i386.c (union i386_op): New.
7262 (struct _i386_insn): Delete disps[], imms[], regs[]. Add op[].
7263 Throughout file replace occurences of disps[n], imms[n], regs[n]
7264 with equivalent op[n].disps, op[n].imms, op[n].regs. Simplify
7265 intel mode operand swapping. Add assert in regKludge and
7266 fake_zero_displacement code. Test i.types[n] when outputting
7267 displacements and immediates. Combine output of Disp16 with
7269 (md_assemble): Don't try to fix broken UNIXWARE_COMPAT opcodes
7270 when in intel mode by (not) reversing fsub and fdiv operands
7271 before the template search. This fails for single operand
7272 shorthand forms of the instruction, and if UNIXWARE_COMPAT is
7273 undefined. Instead fix the base_opcode after we've found the
7274 template. Move base_opcode xor with found_reverse_match from
7275 opcode output code to before this fix so we test for the correct
7277 (md_assemble): Don't use strcmp when deciding to ignore the suffix
7278 check in intel mode. Instead compare opcodes.
7280 * config/tc-i386.h (TC_RELOC): Delete.
7281 * config/tc-i386.c (TC_RELOC): Delete. Replace usage of TC_RELOC
7282 with equivalent call to reloc.
7284 * as.h (flag_m68k_mri): Move declaration after target include, and
7285 only declare when TC_M68K defined. Define as zero otherwise.
7286 (LABELS_WITHOUT_COLONS, NO_PSEUDO_DOT): If undefined, define as 0.
7287 * app.c (scrub_m68k_mri): Declare only when TC_M68K defined.
7288 Define as zero otherwise.
7289 (do_scrub_begin): Use m68k_mri parameter only when TC_M68K defined.
7290 (struct app_save): Declare scrub_m68k_mri only when TC_M68K.
7291 (app_push, app_pop): Save scrub_m68k_mri only when TC_M68K.
7292 (do_scrub_chars): Use LABELS_WITHOUT_COLONS directly rather than
7293 testing whether defined.
7294 * cond.c (ignore_input): Use NO_PSEUDO_DOT directly.
7295 * expr.c (operand): #ifdef unused case labels when TC_M68K undefined.
7296 * read.c: Use LABELS_WITHOUT_COLONS and NO_PSEUDO_DOT directly
7297 rather than testing whether defined.
7298 (s_mri): Set flag_m68k_mri only when TC_M68K defined.
7299 (parse_mri_cons): Declare and use only when TC_M68K.
7300 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define as 1.
7301 * config/tc-m68k.h (NO_PSEUDO_DOT): Define as 1.
7302 * config/tc-m88k.h (NO_PSEUDO_DOT): Define as 1.
7304 * NEWS: Mention IBM 370 support.
7308 * config/tc-i386.c (md_assemble): When swapping operands for
7309 intel_syntax, assume everything that's not Imm or Disp is a
7314 * config/tc-i370.c, config/tc-i370.h: New files.
7315 * Makefile.am: Add support for Linux/IBM 370.
7316 * configure.in: Likewise.
7317 * app.c (do_scrub_begin): Don't lex single quote when TC_I370.
7318 * config/obj-elf.c: Include elf/i370.h
7319 (obj_elf_section): Don't do anything special for flag_mri if TC_I370.
7321 * Makefile.in: Regenerate.
7322 * configure: Regenerate.
7324 * doc/c-i370.texi: New file.
7325 * doc/all.texi: Include it.
7326 * doc/as.texinfo: And here.
7327 * doc/Makefile.am(CPU_DOCS): Add c-i370.texi.
7328 * doc/Makefile.in: Regenerate.
7332 * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
7333 determine if an instruction can be used in parallel with an ADDppp
7334 or SUBppp instruction.
7338 * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
7342 * config/tc-mips.c (mips_gp32): New variable.
7343 (macro_build) Use mips_gp32.
7345 (md_longopts): Add "-mgp32" and "-mgp64".
7346 (md_parse_option): Add OPTION_GP32 and OPTION_GP64.
7348 (OPTION_M7900): Change offset
7349 (OPTION_NO_M7900): Ditto.
7353 * config/obj-coff.c (add_lineno): Accept non-positive lineno with
7354 warning, and bump it to 1.
7359 * dwarf2dbg.c (print_stats): Add cast to force printf argument to
7364 * config/tc-mips.c (MF_HILO_INSN): Define.
7365 (mips_7000_hilo_fix): Declare.
7366 (append_insn): Conditionally insert nops after an mfhi/mflo insn.
7367 (md_parse_option): Check for 7000_HILO_FIX options.
7368 (OPTION_M7000_HILO_FIX): Define.
7369 (OPTION_NO_M7000_HILO_FIX): Define.
7370 * doc/c-mips.texi (-mfix7000): Describe.
7374 * listing.c (print_lines): Remove unused variable `end'.
7376 * config/tc-i386.c (md_assemble): Use `reloc()' to select reloc
7377 type for JumpInterSegment output. Use enum bfd_reloc_code_real for
7378 reloc_type when BFD_ASSEMBLER.
7379 (md_estimate_size_before_relax): Use enum bfd_reloc_code_real for
7380 reloc_type when BFD_ASSEMBLER. Move common code out of switch
7381 statement and quell signed vs. unsigned comparison warning.
7385 * config/tc-d10v.c (find_opcode): Add a symbol's value to
7386 the computed frag offset, rather than overwriting it.
7390 * config/tc-sh.c ("elf/sh.h"): Include.
7391 (sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
7392 (md.begin): Initialize target_arch.
7393 Only include opcodes in has table that match selected architecture.
7394 (parse_reg): Recognize register names for sh-dsp.
7395 (parse_at): Recognize post-modify addressing.
7396 (get_operands): The leading space is now optional.
7397 (get_specific): Remove FDREG_N support. Add support for sh-dsp
7398 arguments. Update valid_arch.
7399 (build_Mytes): Add support for SDT_REG_N.
7400 (find_cooked_opcode): New function, broken out of md_assemble.
7401 (assemble_ppi, sh_elf_final_processing): New functions.
7402 (md_assemble): Use find_cooked_opcode and assemble_ppi.
7403 (md_longopts, md_parse_option): New option: -dsp.
7404 * config/tc-sh.h (elf_tc_final_processing): Define.
7405 (sh_elf_final_processing): Declare.
7409 * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
7410 the unwinder subspace. Save the current seg/subseg before creating
7415 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
7416 little endian targets.
7417 (INST_BYTE1): Redefine to handle big and little endian
7419 (cpu_type): New type: Select between M340 and M210.
7420 (parse_psrmod): New function: Parse the PSRCLR and PSRSET
7421 instructions of the M340.
7422 (md_assemble): Add support for the MULSH and OPSR classes of
7424 (md_atof): Add support for little endian targets.
7425 (md_parse_option): Add support for -EL, -EB and -mcpu command
7427 (md_convert_frag): Add support for little endian targets.
7428 (md_apply_fix3): Add support for little endian targets.
7429 (md_number_to_chars): Add support for little endian targets.
7433 * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
7434 defined, use it to verify the symbol just read should be a label.
7438 * app.c (do_scrub_chars): Handle "||" for parallel instructions
7439 when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace
7440 around colons when KEEP_WHITE_AROUND_COLON is defined.
7441 * doc/internals.texi (CPU backend): Document DOUBLEBAR_PARALLEL
7442 and KEEP_WHITE_AROUND_COLON.
7446 * read.c (s_rept): Call do_repeat, which abstracts the repeat
7448 (do_repeat): New. Abstract repeat logic so that a "break" can be
7450 (end_repeat): New. Provide support for a "break" out of the
7452 * read.h: Add prototypes for new functions.
7456 * doc/internals.texi: Document NUMBERS_WITH_SUFFIX macro.
7457 * as.h: Provide a default NUMBERS_WITH_SUFFIX definition (zero).
7458 * expr.c: Handle numbers with suffixes if NUMBERS_WITH_SUFFIX is
7463 * read.c: Added elseif to directives table.
7464 * read.h: Added prototype for s_elseif.
7465 * doc/as.texinfo: Added description for elseif.
7466 * cond.c (s_elseif): New function
7470 * listing.c (print_lines): Remove conditionals causing bug in
7475 * as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
7477 * frags.c (frag_new): Calculate fr_fix in octets
7478 (frag_now_fix) Return offset as target address offset (bytes).
7479 (frag_now_fix_octets) New - Return offset in octets (8-bit
7481 * frags.h: Added prototype for frag_now_fix_octets().
7482 Distinguish between octets and bytes in field descriptions.
7483 * listing.c (calc_hex): Account for octets vs bytes when
7484 printing addresses/offsets.
7485 (print_lines) Ditto. Also, if LISTING_WORD_SIZE is not 1, and
7486 target is little-endian, print the octets in a word in big-endian
7487 order so that the display looks like a proper hexadecimal number,
7488 instead of having the octets reversed.
7489 * read.c (do_align): When recording alignment, alignment power
7490 should be in terms of target bytes (minimum addressible unit)
7492 (do_org) Convert ORG target address (byte) argument into an
7493 octet offset when generating a variable fragment.
7494 * symbols.c (resolve_symbol_value): Symbol final value
7495 converted to a target address offset (bytes) from its octet offset.
7496 * config/obj-coff.c (coff_frob_symbol): Symbol target address
7497 offset (bytes) is adjusted by the frag offset (octets) converted
7499 (coff_frob_section) Section alignment power is in terms of bytes;
7500 convert it to an octet alignment power when calculating size (and
7501 size mask) in octets. Don't modify the section size in order to
7502 "align" it for TI COFF, since that format has a different method
7503 for storing alignment information.
7507 * stabs.c (generate_asm_file): Escape backslashes in stabs file
7508 entries, matching the way GCC generates them. If not escaped, the
7509 filename is encoded incorrectly.
7513 * config/tc-arm.c (reg_table): Add support for ATPCS register
7518 * config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Don't define if
7520 * config/tc-ppc.h [OBJ_XCOFF] (OBJ_COPY_SYMBOL_ATTRIBUTES):
7522 * config/tc-ppc.c (ppc_fix_adjustable): Don't look at the frag
7523 of a symbol when we really care about its value.
7527 * config/tc-mcore.c (md_assemble): Give warning message if
7528 operands passes to instruction are more than the spec.
7532 * config/tc-arm.c (armadjust_symtab): If the assembler is in
7533 Thumb mode but the label seen was not declared as '.thumb_func'
7534 then set the ST_INFO type to STT_ARM_16BIT mode. This allows
7535 correct disassembly of Thumb code bounded by non function labels.
7539 * Makefile.am (MULTI_CFILES): Add config/e-i386aout.c
7540 Add dependencies for e-i386aout.o. Fix 2 comment lines.
7542 * Makefile.in: Same here.
7545 * configure.in: Set bfd_gas for i386-aout when primary target
7546 is bfd. Handle i386aout emulation. Don't use te_file=multi, as
7547 we may need the primary te_file. Remove incorrect comment.
7549 * configure: Regenerate.
7551 * config/e-i386aout.c: New file.
7553 * as.c (USE_EMULATIONS): Move to before print_version_id.
7554 (struct emulation): Add i386aout.
7555 (show_usage): Split text strings. Reformat -a text. Add --em
7559 * obj.h (struct format_ops): Add s_get_other and s_get_desc.
7560 (aout_format_ops): New.
7563 * read.c (s_lcomm_internal): Rewrite OBJ_AOUT,OBJ_BOUT
7564 preprocessor conditional and add aout USE_EMULATIONS tests.
7565 (read_a_source_file): Don't pass error strings to printf as
7569 * gasp.c (exp_get_abs): Don't pass error strings to printf as
7571 (do_data): Same here.
7572 (process_file): And here.
7575 * symbols.c (colon): Rewrite "already defined" fatal message
7576 code for aout with USE_EMULATIONS.
7579 * config/obj-aout.c (OBJ_HEADER): Define.
7580 (obj_pseudo_table): Rename to aout_pseudo_table. Init all
7582 (obj_aout_frob_symbol): Expand S_GET_DESC, S_GET_TYPE,
7583 S_GET_OTHER, S_SET_TYPE macros since we don't need obj-multi
7585 (obj_aout_type): Expand S_SET_OTHER here too.
7586 (obj_read_begin_hook): Remove.
7587 (aout_pop_insert): New.
7588 (obj_aout_s_get_other): New.
7589 (obj_aout_s_get_desc): New.
7590 (aout_format_ops): New.
7593 * config/obj-aout.h (obj_pop_insert): Define so non-multi usage
7594 gets aout_pseudo_table.
7595 (aout_pseudo_table): Declare.
7596 (obj_read_begin_hook): Define.
7599 * config/obj-coff.c (obj_pseudo_table): Rename to
7601 (coff_pop_insert): Use coff_pseudo_table.
7602 (coff_sec_sym_ok_for_reloc): Remove.
7603 (coff_format_ops): Add 0 entries for s_get_size, s_set_size,
7604 and comment all zero entries and remove #if 0 code.
7607 * config/obj-coff.h (obj_pop_insert): Define.
7608 (coff_pseudo_table): Declare.
7611 * config/obj-ecoff.c (ecoff_format_ops): Add 0 entries for
7612 s_get_size, s_set_size. Comment all zero entries.
7615 * config/obj-elf.c (elf_s_get_other): New function.
7616 (obj_read_begin_hook): Rename to elf_obj_read_begin_hook.
7617 (obj_symbol_new_hook): Rename to elf_obj_symbol_new_hook.
7618 (elf_format_ops): Add elf_s_get_other, 0 s_get_size entry, and
7620 (obj_elf_parse_section_letters): Don't pass error strings to
7621 printf as format arg.
7624 * config/obj-elf.h (ECOFF_DEBUGGING): Define when
7626 (elf_s_get_other): Declare.
7627 (S_GET_OTHER) Define as elf_s_get_other if not already
7629 (S_SET_OTHER): Only define when not already defined.
7630 (elf_obj_read_begin_hook): Declare.
7631 (obj_read_begin_hook): Define.
7632 (elf_obj_symbol_new_hook): Declare.
7633 (obj_symbol_new_hook): Define.
7636 * config/obj-multi.h: Add copyright header and protect against
7637 multiple inclusion. Add * to all function pointers.
7638 (OBJ_HEADER): If defined, include it rather than other defines
7640 (obj_frob_file_after_relocs): Test for NULL.
7641 (obj_symbol_new_hook): Here too.
7642 (obj_sec_sym_ok_for_reloc): And here.
7643 (S_GET_OTHER): Define.
7644 (S_GET_DESC): Define.
7645 (ECOFF_DEBUGGING): Remove as it's done in obj-elf.h
7646 (OBJ_MAYBE_ELF): Update comment.
7648 * config/tc-i386.c (i386_immediate): Add OBJ_MAYBE_AOUT to
7649 OBJ_AOUT preprocessor conditional and handle emulation by
7650 testing OUTPUT_FLAVOR.
7651 (i386_displacement): Here too.
7652 (md_section_align): Similarly here.
7653 (i386_target_format): Conditionally compile when more than one
7654 of OBJ_MAYBE_{ELF,COFF,AOUT} defined. Add aout case.
7655 (i386_immediate): Fix error message for aout BFD_ASSMBLER.
7656 (i386_displacement): Here too.
7659 * config/tc-i386.h (AOUT_TARGET_FORMAT): Define for each TE_*.
7660 Define TARGET_FORMAT for aout only when not multi.
7663 * config/te-multi.h: Delete file as it's identical to te-generic.h
7667 * config/tc-i386.h (DWORD_MNEM_SUFFIX): Delete.
7668 * config/tc-i386.c (DWORD_MNEM_SUFFIX): Rename all occurrences to
7671 * config/tc-i386.h (INTEL_DWORD_MNEM_SUFFIX): Rename to
7673 * config/tc-i386.c (INTEL_DWORD_MNEM_SUFFIX): Here too. Fix some
7678 * config/tc-mips.c (mips_do_align): New function.
7679 * config/tc-mips.h (md_do_align): Define.
7683 * doc/c-arm.texi (ARM Options): Fix typo.
7684 (ARM-Chars): Correct description of `#'. Mention that `;' is a
7685 line separator for Linux.
7686 * doc/as.texinfo (Comments): Mention the ARM.
7690 * configure.in (arm*-*-conix*): New target.
7691 (arm*-*-linux-gnu*): Match instead of arm-*-linux* and
7693 * configure: Regenerate.
7697 * config/obj-elf.c (elf_pseudo_table): Define visibility pseudos.
7698 (obj_elf_visibility): New function.
7700 * doc/as.texinfo (Visibility): New node: document visibility
7703 For older changes see ChangeLog-9899