aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2003-04-15Replace occurrances of 'Hitachi' with 'Renesas'.Nick Clifton15-60/+74
2003-04-11* gas/mips/elf-rel-got-n32.d, gas/mips/elf-rel-got-n32.s,Alexandre Oliva8-0/+2897
gas/mips/elf-rel-got-n64.d, gas/mips/elf-rel-got-n64.s, gas/mips/elf-rel-xgot-n32.d, gas/mips/elf-rel-xgot-n64.d: New. * gas/mips/mips.exp: Test them.
2003-04-11* config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.Alexandre Oliva3-139/+614
* config/tc-mips.c: Use signed add for n32 address arithmetic. (append_insn): When filling delay slots with instructions that have fixups that tc_gen_reloc might consider modifyable in variant frags, start a new frag. (load_address): Generate GOT_DISP with of without offset depending on whether symbol is local. For -xgot, use GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16. (macro) <M_DLA_AB, M_LA_AB>: Likewise. <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got, CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got. <ld_st>: In NewABI with small got, always use GOT_PAGE/GOT_OFST, with the latter in the load/store instruction. With big got, use GOT_HI16/GOT_LO16 or GOT_PAGE/GOT_OFST. (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI. Add tc_frag_data.tc_fr_offset to addends. Decay CALL16, GOT_OFST and GOT_DISP to GOT_DISP in NewABI. (md_convert_frag): Use memmove for safe copying of overlapping regions.
2003-04-09 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,Stephane Carrez2-18/+233
-mlong, -mshort-double and -mlong-double options; use table @code. (M68HC11-Syntax): Update to document 68HC12 operands. (M68HC11-Modifiers): New section for operand modifiers. (M68HC11-Directives): New section for specific assembler directives. (M68HC11-Branch): Fix Overfull hbox error.
2003-04-09* config/tc-mips.c (macro): Add comments explaining the rationaleAlexandre Oliva2-1/+22
for Chris' change.
2003-04-09* config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bitAlexandre Oliva2-1/+9
constant address that Alexandre took out by accident. Reject 64-bit addresses that are not sign extensions of 32 bits only if we don't support 64-bit address constants.
2003-04-08 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.Alan Modra2-6/+21
2003-04-08* as.c (perform_an_assembly_pass): If using cgen, call gas_cgen_begin.Nick Clifton8-0/+193
* cgen.c (gas_cgen_begin): New function. If flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok otherwise call cgen_clear_signed_overflow_ok. * cgen.h: Prototype gas_cgen_begin. * testsuite/gas/m32r/m32r.exp: Run signed-relocs test. * testsuite/gas/m32r/signed-relocs.s: New file: Test signed relocs. * testsuite/gas/m32r/signed-relocs.d: New file: Expected results
2003-04-08* ia64-ic.tbl (fr-readers): Add mem-writers-fp.Nick Clifton4-0/+35
* ia64-asmtab.c: Regenerate. * gas/ia64/dependency-1.s: New file: Test read before write dependency. * gas/ia64/dependency-1.d: New file: Expected assembly results. * gas/ia64/ia64.exp: Run the new test.
2003-04-07 * write.c (write_relocs): Remove unused variable.Thiemo Seufer2-2/+4
2003-04-06* config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.Alexandre Oliva2-3/+16
(macro): Use new macro to decide whether to emit constant address as 32 or 64 bits if addresses are 32-bit wide but registers are 64-bit wide.
2003-04-05 * gas/m68hc11/bug-1825.d (_table): Update.Stephane Carrez3-1/+20
* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs
2003-04-05 * gas/m68hc11/insns.s: Add %page and %addr checks.Stephane Carrez5-6/+23
* gas/m68hc11/insns12.s: Likewise. * gas/m68hc11/insns-dwarf2.d: Update. * gas/m68hc11/insns.d: Update.
2003-04-05 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.Stephane Carrez2-19/+86
(M6811_OP_PAGE_ADDR): New internal define. (get_operand): New modifier %page and %addr to obtain page and address part of a far-function. (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation relocs. (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier. (find_opcode): Add comment. (md_estimate_size_before_relax): Force relocation of STATE_UNDEXED_OFFSET types when the symbol is not absolute. (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32 on the symbol itself so that DWARF2 strings are merged correctly.
2003-04-042003-04-04 Chris Demetriou <cgd@broadcom.com>Chris Demetriou5-0/+144
* gas/mips/mips5.d: New test. * gas/mips/mips5.l: New test stderr listing. * gas/mips/mips5.s: New test source file. * gas/mips/mips.exp: Run the mips5 test.
2003-04-04Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and ↵Svein Seldal4-325/+333
s/c3x/tic3x/. 2003 copyright update
2003-04-03Mention support for Xtensa architectureNick Clifton2-0/+6
2003-04-032003-04-03 Philip Blundell <philb@gnu.org>Phil Blundell3-0/+12
* gas/arm/offset.s: New test. * gas/arm/arm.exp (run_errors_test): Run it.
2003-04-022003-04-02 Philip Blundell <philb@gnu.org>Phil Blundell2-0/+5
* config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
2003-04-02[ gas/ChangeLog ]Chris Demetriou19-27/+395
2003-04-02 Chris Demetriou <cgd@broadcom.com> * config/tc-mips.c (macro2): Adjust implementation of M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly in the case where the source and destination registers are the same. [ gas/testsuite/ChangeLog ] 2003-04-02 Chris Demetriou <cgd@broadcom.com> * gas/mips/ulh.d: Adjust for ulh and ulhu macro assembly changes. * gas/mips/mips.exp: Define new "gpr_ilocks" architecture property, and add it to mips2 (and later) chips and r3900. * gas/mips/uld2.s: New test source file. * gas/mips/ulh2.s: Likewise. * gas/mips/ulw2.s: Likewise. * gas/mips/uld2.l: New test stderr listing. * gas/mips/ulh2.l: Likewise. * gas/mips/ulw2.l: Likewise. * gas/mips/uld2-eb.d: New test. * gas/mips/uld2-el.d: Likewise. * gas/mips/ulh2-eb.d: Likewise. * gas/mips/ulh2-el.d: Likewise. * gas/mips/ulw2-eb-ilocks.d: Likewise. * gas/mips/ulw2-eb.d: Likewise. * gas/mips/ulw2-el-ilocks.d: Likewise. * gas/mips/ulw2-el.d: Likewise. * gas/mips/mips.exp: Run new tests for appropriate architectures.
2003-04-01Add Xtensa port (omitted from previous delta)Nick Clifton1-0/+73
2003-04-01Add Xtensa portNick Clifton24-181/+12365
2003-04-01Fixes for iWMMXt contribution.Nick Clifton2-179/+267
2003-03-262003-03-26 Eric Christopher <echristo@redhat.com>Eric Christopher2-6/+12
* config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2003-03-25Add iWMMXt supportNick Clifton10-3/+1369
2003-03-24Rename the all occurances of C54X to TIC54X.Nick Clifton5-635/+641
2003-03-21 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec toAndreas Schwab2-2/+7
avoid aliasing issue.
2003-03-21 * config/tc-s390.c (s390_arch_size): Initialize to zero.Martin Schwidefsky2-21/+62
(current_arch_mask): Rename to current_mode_mask. (current_arch_requested): Remove variable. (current_cpu): New variable. (init_default_arch): Set defaults values for s390_arch_size, current_mode_mask and current_cpu. (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}. (md_begin): Replace current_arch_mask by current_cpu. (md_assemble): Adapt check and error message to current_mode_mask and current_cpu.
2003-03-13(buffer_and_nest): Store more to sb instead of '\n'.Nick Clifton3-18/+24
(get_line_sb): Return end of line character or '\n' if it is zero or non-existent.
2003-03-12* config/tc-mips.c (mips_validate_fix): New function.Alexandre Oliva3-0/+94
* config/tc-mips.h (TC_VALIDATE_FIX): Define. (mips_validate_fix): Declare.
2003-03-12* gas/mips/branch-misc-2.s: Add branch to symbol in anotherAlexandre Oliva3-8/+19
section. * gas/mips/branch-misc-2.l: Update error messages and warnings.
2003-03-12* Reverted 2003-03-02's patch.Alexandre Oliva2-46/+28
2003-03-12* Reverted previous patch.Alexandre Oliva12-120/+94
2003-03-11 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.Richard Henderson4-24/+57
(TC_DWARF2_EMIT_OFFSET): Provide default. (out_debug_aranges, out_debug_info): Use it. * config/tc-ia64.c (ia64_dwarf2_emit_offset): New. (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ... (ia64_gen_real_reloc_type): ... here. * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2003-03-09 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.Thiemo Seufer2-28/+7
(s_mips_ent): Likewise.
2003-03-04fix spelling typo.Nick Clifton1-1/+1
2003-03-04(mcu_types): Add recenly announced x1122 and x1123 devices, add missed x437.Nick Clifton2-16/+24
(md_show_usage): Sort device list.
2003-03-03Fix sh-elf linker relaxation:Joern Rennecke3-10/+39
gcc: * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and subtarget_asm_isa_spec. (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define. (ASM_SPEC): Define as SH_ASM_SPEC. (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h. Use subtarget_asm_relax_spec and subtarget_asm_isa_spec. * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC. (SUBTARGET_ASM_ISA_SPEC): Undef / define. gcc/testsuite: gcc.dg/sh-relax.c: New test. include/elf: * sh.h (EF_SH_MERGE_MACH): Make sure SH2E & SH3/SH3E merge to SH3E, and SH2E & SH4 merge to SH4, not SH2E. gas: * config/tc-sh.c (sh_dsp): Replace with preset_target_arch. (md_begin): Use preset_target_arch. (md_longopts): Make isa option unconditional. (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any set preset_target_arch. (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups by -S_GET_VALUE (fixP->fx_subsy). (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy, and the addend is 0. Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4. * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define. bfd: elf32-sh.c (sh_elf_howto_tab): Make R_SH_IND12W into an ordinary relocation (no special function), and make it non-partial_inplace. (sh_elf_relax_section): When creating a bsr, use a consistent value no matter if the symbol is extern or not; set addend to -4. Don't swap load / non-load instructions for SH4. (sh_elf_relax_delete_bytes): In R_SH_IND12W case, check the offset rather than if the symbol is external to determine if adjusting the offset makes sense. Adjust the addend too if appropriate. (sh_elf_relocate_section): In R_SH_IND12W, don't fiddle with the relocation.
2003-03-02Leftover from previous commit.Thiemo Seufer1-9/+0
2003-03-02 * elf32-mips.c (elf_mips_howto_table_rel): Change definition ofThiemo Seufer13-105/+194
R_MIPS_PC16 to rightshift 2. (elf_reloc_map mips_reloc_map): Map to rightshifted BFD reloc. (bfd_elf32_bfd_reloc_type_lookup): Support BFD_RELOC_MIPSEMB_16_PCREL_S2. * elf64-mips.c (mips_elf64_howto_table_rel): Change definition of R_MIPS_PC16 to rightshift 2. (mips_elf64_howto_table_rela): Likewise. (mips_reloc_map): Map to rightshifted BFD reloc. * elfn32-mips.c: The same as in elf64-mips.c. * elfxx-mips.c (mips_elf_got_for_ibfd): Typo in comment. (mips_elf_calculate_relocation): Handle rightshifted addends for R_MIPS_PC16. * reloc.c (BFD_RELOC_MIPSEMB_16_PCREL_S2): New BFD relocation for MIPS Embedded PIC. Remove superfluous empty COMMENT. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. * config/tc-mips.c (append_insn): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about misaligned address and reange overflow. (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add earlier warnings about misaligned address and reange overflow. (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. (md_apply_fix): Likewise. Fix warning output. (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Allow BFD_RELOC_16_PCREL_S2 for all ABIs. (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. * gas/mips/bge.d: Reactivate external branch tests. * gas/mips/bge.s: Likewise. * gas/mips/bgeu.d: Likewise. * gas/mips/bgeu.s: Likewise. * gas/mips/blt.d: Likewise. * gas/mips/blt.s: Likewise. * gas/mips/bltu.d: Likewise. * gas/mips/bltu.s: Likewise. * gas/mips/branch-misc-2.d: New File. * gas/mips/branch-misc-2.l: Remove. * gas/mips/mips.exp: Adjust branch-misc-2 test.
2003-02-21Update Maverick tests.Nick Clifton8-632/+1528
Contribute test generator.
2003-02-21Add v850e debug registers.Nick Clifton2-65/+76
2003-02-21Applied Bob Wilson's documentation fixes.Nick Clifton3-438/+534
2003-02-21 * config/tc-mips.c (prev_reloc_op_frag): New variable.Richard Sandiford6-7/+60
(macro): Check it to decide whether a new frag is needed. (my_getSmallExpression): Set it.
2003-02-20Fix typo: intial -> initial.Nick Clifton2-18/+22
2003-02-19 * app.c (do_scrub_chars): Handle '||' in two states.Alan Modra2-30/+49
2003-02-12 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.Alan Modra3-1/+10
* config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2003-02-11Add support for configuring *-*-kaos targets.Nick Clifton3-245/+260
2003-02-10Add support for marking ARM ELF binaries as support the Cirrus EP9312 MaverickNick Clifton2-0/+15
floating point co-processor.
2003-02-08gas/Richard Sandiford8-83/+220
* config/tc-mips.c (reloc_needs_lo_p): New function. (fixup_has_matching_lo_p): New function. (append_insn): Use reloc_needs_lo_p to check whether a relocation might need a matching %lo(). Reuse the head of mips_hi_fixup_list if that fixup already has a matching %lo(). Don't call frag_wane here. (macro): Call frag_wane here if the last unmatched hi was in the current frag. (pic_need_relax): New function, split out from... (md_estimate_size_before_relax): ...here. (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols. gas/testsuite/ * gas/mips/rel12.[sd], gas/mips/rel13.[sd]: New tests. * gas/mips/mips.exp: Run them.