aboutsummaryrefslogtreecommitdiff
path: root/gas/config
AgeCommit message (Collapse)AuthorFilesLines
2002-09-13Do not count FAKE operands when deciding if any operands have been skipped.Nick Clifton1-1/+9
2002-09-11 * config/tc-i386.c (md_apply_fix3): Allow addend forJakub Jelinek1-3/+0
BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and BFD_RELOC_386_TLS_LE_32.
2002-09-09 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done forJeff Law2-4/+4
marker relocations such as ENTRY/EXIT. * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies to both OBJ_ELF and OBJ_SOM.
2002-09-05gas reloc rewrite.Alan Modra85-1375/+1037
2002-09-04 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.Alan Modra1-36/+37
(ppc_fix_adjustable <coff version>): Cleanup.
2002-09-04 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.Alan Modra1-6/+19
(md_parse_option): No -a64 without BFD64. (ppc_set_cpu): Select appropriate cpu when ppc_obj64. (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2002-09-04Do not insert non-BookE32 instructions into the hash table if the target cpuNick Clifton1-0/+8
is the BookE32. (case 107575)
2002-08-29Add linker relaxation to v850 toolchainNick Clifton2-24/+99
2002-08-28Add TMS320C4x supportNick Clifton4-2/+2732
2002-08-27 * dwarf2dbg.c: Always include dwarf2dbg.h.Alan Modra1-2/+2
(dwarf2_directive_file): Adjust dummy version args. * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED. * expr.c (clean_up_expression <O_subtract>): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set <O_subtract>): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix.
2002-08-26 * config/tc-w65.c (md_section_align): Fix typo.Alan Modra1-2/+2
(md_parse_option): Return 0, not 1.
2002-08-22opcodes: Fix definition of "in rd,imm16" opcode.Nick Clifton1-24/+17
gas: Adjust ptr variable also in "case 0" case.
2002-08-22Add sh-nto supportNick Clifton1-3/+2
2002-08-22 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.Jeff Law1-0/+4
2002-08-212002-08-21 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-11/+17
* config/tc-ppc.c (ppc_cleanup): Do something only if format is ELF. (ppc_apuinfo_section_add): Define only if format is ELF. (md_assemble): Emit APUinfo section only if format is ELF. Fix formatting.
2002-08-20 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.Alan Modra12-13/+13
* config/tc-frv.c: Likewise. * config/tc-hppa.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-mmix.c: Likewise. * config/tc-mn10300.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-v850.c: Likewise.
2002-08-20[gas/]Richard Sandiford1-40/+58
* config/tc-mips.c (macro2): Implement rotates by zero using shifts by zero. [gas/testsuite] * gas/mips/rol.s: Add rotate by zero tests. * gas/mips/rol.d: Update accordingly. * gas/mips/rol64.d: Expect rotates by zero to use dsrl.
2002-08-192002-08-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-16/+170
From matthew green <mrg@redhat.com> * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere PPC_OPCODE_PPC is, except for BookE architectures. (md_parse_option): Add support for -mspe. (md_show_usage): Add -mspe. (md_parse_option): Add support for -me500 and -me500x2 to generate code for Motorola e500 core complex. (md_show_usage): Add -me500 and -me500x2. (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI, PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS, PPC_APUINFO_BRLOCK): New macros. (ppc_cleanup): New function. (ppc_apuinfo_section_add): New function. (APUID): New macro. (md_assemble): Collect info and write the APUinfo section. * config/tc-ppc.h (md_cleanup): Define. (ppc_cleanup): Export. (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2002-08-17 * config/obj-elf.c (obj_elf_change_section): Make non-static.Stan Cox2-2/+59
config/tc-mips.c (s_change_section): New function to support IRIX .section pseudo-op.
2002-08-16Fix assembly of "callt 0x3f"Nick Clifton1-5/+5
2002-08-16* config/tc-mips.c (macro_build_jalr): Make sure we generateAlexandre Oliva1-16/+25
the fix-up against on the right frag. (s_cpsetup): Likewise. Parse third argument as expression, to handle global symbols and forward/backward labels correctly.
2002-08-14Only define TC_VALIDATE_FIX for ELF buildsNick Clifton1-0/+3
2002-08-14Fix compiling for COFF targets.Nick Clifton1-151/+157
Some minor formatting tidyups.
2002-08-13 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.Stephane Carrez2-17/+137
(TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag according to the reloc. (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define. (TC_FORCE_RELOCATION): Define. (tc_m68hc11_force_relocation): Declare. * config/tc-m68hc11.c (md_pseudo_table): Add relax command. (s_m68hc11_relax): New function for relax group. (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at beginning of jump instruction. (md_pcrel_from): Rename from md_pcrel_from_section and fix address computation. (tc-gen_reloc): Update. (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as PC-relative fixup. (tc_m68hc11_force_relocation): New function, handle new relocs. (tc_m68hc11_fix_adjustable): New to make sure there are enough reloc for the linker relax pass. (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP and VTABLE relocs.
2002-08-13 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.Stephane Carrez2-0/+115
(md_pseudo_table): Add .mode, .far and .interrupt pseudo op. (s_m68hc11_mode): New function for .mode pseudo op. (s_m68hc11_mark_symbol): New function for .far and .interrupt pseudo op. * config/tc-m68hc11.h (elf_tc_final_processing): Define. (m68hc11_elf_final_processing): Declare.
2002-08-13 * config/tc-m68hc11.c (md_begin): Take into account additionalStephane Carrez1-37/+146
page operand for call instruction. (print_opcode_format): Likewise. (check_range): Likewise for page range checking. (get_operand): Don't skip a possible comma in operands. (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc. (fixup16): Likwise with BFD_RELOC_M68HC11_LO16. (fixup24): New to handle call reloc. (build_insn): Handle missing page operand for call instruction. (find): Likewise. (md_apply_fix3): Take into account new relocs. (get_operand): Fix the mode for indexed indirect addressing. (build_indexed_byte): Fix post index byte for indexed indirect mode.
2002-08-12[gas/]Richard Sandiford1-15/+9
* config/tc-mips.c (mips_ip): Don't work out the value of constant %hi()s here. [gas/testsuite/] * gas/mips/elf-consthilo.[sd]: New test. * gas/mips/mips.exp: Run it.
2002-08-10 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVORAlan Modra1-16/+26
for ELF, and don't bother checking ELF relocs when non-ELF. (i386_immediate): Allow absolute_section expressions for aout. (i386_displacement): Likewise. Also test bfd_is_com_section. (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF. (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel, not when fx_addsy. Remove dead code.
2002-08-09 * config/tc-i386.h: Reorganize.Alan Modra1-79/+76
2002-08-09* config/tc-mips.c (macro): Handle a register plus a 16-bitMaciej W. Rozycki1-0/+10
immediate offset in "dla" and "la" expansions. * gas/mips/empic.d: Treat "addiu" and "daddiu" as equivalent when $0 is source. * mips-opc.c (mips_builtin_opcodes): Remove "dla" and "la" as aliases to "daddiu" and "addiu".
2002-08-09 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()Jakub Jelinek1-51/+112
at start of insn, pass it to output_disp and output_imm. (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen in displacement for R_386_32 reloc, use R_386_GOTPC and compute properly addend. (output_imm): Added arguments. Compute properly addend for R_386_GOTPC. (md_apply_fix3): Remove R_386_GOTPC handling. * testsuite/gas/i386/gotpc.s: New. * testsuite/gas/i386/gotpc.d: New. * testsuite/gas/i386/i386.exp: Add gotpc test.
2002-08-06 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264aRichard Henderson1-2/+8
and m21264b processor names and cpu types. * doc/c-alpha.texi: Documented new types.
2002-08-06 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.Alan Modra1-2/+16
2002-08-01[gas/]Richard Sandiford1-1/+1
* config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend handling to BFD_RELOC_MIPS16_GPREL. [gas/testsuite/] * gas/mips/elf-rel6.[sd]: New test. * gas/mips/mips.exp: Run it.
2002-08-01Ensure that offset to literal pool is computed using signed arithmetic so thatNick Clifton1-7/+12
proper sign extension is performed if X_add_number is a 64-bit integer.
2002-07-31Fix bugs and remove compile time warnings for N"32K port.Nick Clifton2-263/+286
2002-07-31Fix range check for immediate operand.Nick Clifton1-1/+1
2002-07-312002-07-30 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-4/+1
* config/tc-mips.c (mips_cpu_info_table): Clean up entries related to Broadcom SB-1 core support.
2002-07-30 * config/tc-mips.c (mips_target_format): Fix formatting.Thiemo Seufer1-8/+17
Add recognition of n32 ABI formats.
2002-07-30* tc-mips.c (load_address): Don't clobber $at when loading aMaciej W. Rozycki1-3/+3
64-bit address in non-PIC code if noat is in effect. (macro): Likewise.
2002-07-30* config/tc-mips.c (macro): Use codes 6 and 7 in trap instructionsMaciej W. Rozycki1-9/+9
used in division/multiply macro expansions similarly to how they are used in the variants with break instructions. (macro2): Likewise.
2002-07-30Add per-section and per-sub-section literal pools.Nick Clifton1-117/+123
2002-07-26 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the defaultAlan Modra1-1/+6
rather than PPC_OPCODE_32 for powerpc64*.
2002-07-25Fix comment from last commit.Richard Sandiford1-4/+4
2002-07-25[gas/]Richard Sandiford1-617/+436
* doc/c-mips.texi: Remove -mcpu. Document -mabi. * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro. (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros. * configure, config.in: Regenerate. * config/tc-mips.c (file_mips_abi): Rename to mips_abi. (mips_set_options): Remove "abi" field. (mips_opts): Update accordingly. Replace all uses of mips_opts.abi with mips_abi. (mips_cpu): Remove. (mips_arch_string, mips_arch_info): New vars. (mips_tune_string, mips_tune_info): New vars. (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros. (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI. (mips_isa_to_str, mips_cpu_to_str): Remove. (mips_ip): If the selected architecture is a generic ISA rather than a processor, only mention the ISA level in error messages. (OPTION_MCPU): Remove. (OPTION_FP64): New. (md_longopts): Add -mfp64, remove -mcpu. (mips_set_option_string): New fn. (md_parse_option): Make -mipsN update file_mips_isa rather than mips_opts.isa. Use mips_set_option_string to set -march or -mtune. Don't let -mgp32 and -mfp32 change the ABI. (show): Move to end of file. Constify string argument. (md_show_usage): Move to the end of the file. Read available architectures from mips_cpu_info_table. (mips_set_architecture): New fn. (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN is an alias for -march=mipsN. Don't change the ABI based on other flags. Infer the register size from the ABI as well as the architecture. Complain about more conflicting arguments. Unify logic with GCC. (s_mipsset): Don't change the ABI. (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32. (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just "mipsN"-type entries. Remove entries that vary only in the manufacturer's prefix, or that have "000" replaced by "k". Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000. (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns. (mips_parse_cpu): New fn. (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove. (mips_cpu_info_from_isa): Minor formatting tweak. [gas/testsuite] * gas/mips/mips-gp32-fp64.d, * gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-19 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNALThiemo Seufer1-3/+4
instead of S_IS_EXTERN. (md_estimate_size_before_relax): Likewise. (mips_fix_adjustable): Likewise.
2002-07-19 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.Thiemo Seufer1-4/+0
2002-07-19Add IP2k GAS and OPCODES support.Nick Clifton2-0/+572
2002-07-16 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.Jan Hubicka1-15/+34
2002-07-16 * config/tc-z8k.c (build_bytes): Correct order of memset args.Alan Modra1-1/+1