aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2004-01-26(EXTERN_FORCE_RELOC): Handle m68k-uclinux specially, like m68k-elf.Nick Clifton3-5/+15
(RELAXABLE_SYMBOL): Use EXTERN_FORCE_RELOC instead of hard-coded test for TARGET_OS=elf.
2004-01-252004-01-24 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2-9/+30
* config/tc-mips.c (hilo_interlocks): Change definition so that MIPS32, MIPS64 and later ISAs are included, along with the already-included machines. Update comments.
2004-01-252004-01-24 Chris Demetriou <cgd@broadcom.com>Chris Demetriou4-1/+12
* gas/mips/relax-swap1.s: Add extra space at end, so the disassembly will consistently have "..." at its end. * gas/mips/relax-swap2.s: Likewise. * gas/mips/relax-swap1-mips2.d: Expect "..." at end of disassembly.
2004-01-24 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.Richard Sandiford1-5/+0
2004-01-23 * config/tc-arm.c (tc_gen_reloc): Improve error message forDaniel Jacobowitz2-0/+15
undefined local labels.
2004-01-23 * gas/arm/arm.exp: Add "undefined" test.Daniel Jacobowitz4-0/+10
* gas/arm/undefined.s, gas/arm/undefined.l: New files.
2004-01-23 * config/tc-mips.c (load_address, macro): Update comments aboutRichard Sandiford2-6/+14
NewABI GP relaxation.
2004-01-23 * config/tc-mips.c (macro_build): Remove place and counter arguments.Richard Sandiford2-998/+744
(mips_build_lui, macro_build_ldst_constoffset): Likewise. (mips16_macro_build, macro_build_jalr): Remove counter argument. (set_at, load_register, load_address, move_register): Likewise. (load_got_offset, add_got_offset): Likewise. Update all calls and tidy accordingly.
2004-01-23 * gas/mips/macro-warn-[1234].[sdl]: New tests.Richard Sandiford17-0/+115
* gas/mips/macro-warn-[12]-n32.[dl]: New tests. * gas/mips/mips.exp: Run them.
2004-01-23 * config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.Richard Sandiford2-53/+157
(RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities. (RELAX_USE_SECOND): Bump to 0x10000. (RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags. (mips_macro_warning): New variable. (md_assemble): Wrap macro expansion in macro_start() and macro_end(). (s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise. (relax_close_frag): Set mips_macro_warning.first_frag. Adjust use of RELAX_ENCODE. (append_insn): Update mips_macro_warning.sizes. (macro_start, macro_warning, macro_end): New functions. (macro_build): Don't emit warnings here. (macro_build_lui, md_estimate_size_before_relax): ...or here. (md_convert_frag): Check for cases where one macro alternative needs a warning and the other doesn't. Emit a warning if the longer sequence was chosen.
2004-01-23 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): Remove.Richard Sandiford6-685/+574
* config/tc-mips.c (RELAX_ENCODE): Take three arguments: the size of the first sequence, the size of the second sequence, and a flag that says whether we should warn. (RELAX_OLD, RELAX_NEW, RELAX_RELOC[123]): Delete. (RELAX_FIRST, RELAX_SECOND): New. (mips_relax): New variable. (relax_close_frag, relax_start, relax_switch, relax_end): New fns. (append_insn): Remove "place" argument. Use mips_relax.sequence rather than "place" to check whether we're expanding the second alternative of a relaxable macro. Remove redundant check for branch relaxation. If generating a normal insn, and there is not enough room in the current frag, call relax_close_frag() to close it. Update mips_relax.sizes[]. Emit fixups for the second version of a relaxable macro. Record the first relaxable fixup in mips_relax. Remove tc_gen_reloc workaround. (macro_build): Remove all uses of "place". Use mips_relax.sequence in the same way as in append_insn. (mips16_macro_build): Remove "place" argument. (macro_build_lui): As for macro_build. Don't drop the add_symbol when generating the second version of a relaxable macro. (load_got_offset, add_got_offset): New functions. (load_address, macro): Use new relaxation machinery. Remove tc_gen_reloc workarounds. (md_estimate_size_before_relax): Set RELAX_USE_SECOND if the second version of a relaxable macro is needed. Return -RELAX_SECOND if the first version is needed. (tc_gen_reloc): Remove relaxation handling. (md_convert_frag): Go through the fixups for a relaxable macro and mark those that belong to the unneeded alternative as done. If the second alternative is needed, adjust the fixup addresses to account for the deleted first alternative. testsuite/ * gas/mips/elf-rel19.[sd]: New test. * gas/mips/mips.exp: Run it.
2004-01-23 * frags.h (frag_room): Declare.Richard Sandiford4-3/+19
* frags.c (frag_room): New function. * doc/internals.texi: Document it.
2004-01-21 * config/tc-mips.c (append_insn): Don't do r3900 interlockThiemo Seufer2-5/+10
optimization for -mtune=r3900, as this will break on other CPUs.
2004-01-21Stop indexed move byte instructions from being relaxed.Nick Clifton6-11/+854
2004-01-18* config/tc-sparc.c (sparc_ip): Disallow %f32-%f63 for singleJakub Jelinek2-1/+12
precision operands.
2004-01-18 * gas/i386/katmai.d: Adjust for changed sib printing.Alan Modra5-24/+31
* gas/i386/prescott.d: Likewise. * gas/i386/sse2.d: Likewise. * gas/i386/ssemmx2.d: Likewise.
2004-01-16* gas/mn10300/mov5.s: New.Alexandre Oliva3-1/+48
* gas/mn10300/basic.exp (do_mov5): New.
2004-01-14gas/Maciej W. Rozycki11-19/+1039
* config/tc-mips.c (append_insn): Properly detect variant frags that preclude swapping of relaxed branches. Correctly swap instructions between frags when dealing with relaxed branches. gas/testsuite/ * gas/mips/relax-swap1-mips1.d: New test for branch relaxation with swapping for MIPS1. * gas/mips/relax-swap1-mips2.d: New test for branch relaxation with swapping for MIPS2. * gas/mips/relax-swap1.l: Stderr output for the new tests. * gas/mips/relax-swap1.s: Source for the new tests. * gas/mips/relax-swap2.d: New test for branch likely relaxation with swapping. * gas/mips/relax-swap2.l: Stderr output for the new test. * gas/mips/relax-swap2.s: Source for the new test. * gas/mips/mips.exp: Run the new tests.
2004-01-14* gettext.m4: Quote names of macros to be defined by AC_DEFUNMaciej W. Rozycki2-3/+10
throughout. * acinclude.m4: Quote names of macros to be defined by AC_DEFUN throughout. * aclocal.m4: Regenerate. * configure: Regenerate.
2004-01-14 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): CallIan Lance Taylor3-0/+692
mips_elf64_rtype_to_howto instead of using howto_table. * gas/mips/mips16-64.d: New test. * gas/mips/mips.exp: Run it.
2004-01-12Add support for relaxation of bit manipulation instructions.Nick Clifton2-4/+23
2004-01-12gas/Richard Sandiford6-1/+28
* config/tc-mips.c (macro_build_jalr): When adding an R_MIPS_JALR reloc, reserve space for the delay slot as well as the jalr itself. gas/testsuite/ * gas/mips/elf-rel18.[sd]: New test. * gas/mips/mips.exp: Run it.
2004-01-09 * gas/config/tc-arm.c (do_vfp_reg2_from_sp2): Rename fromPaul Brook6-9/+83
do_vfp_sp_reg2. (do_vfp_sp2_from_reg2): New function. (insns): Use them. (do_vfp_dp_from_reg2): Check return values properly. * opcodes/arm-opc.h (arm_opcodes): Move generic mcrr after known specific opcodes. * gas/testsuite/gas/arm/vfp2.s, gas/arm/vfp2.d: New test. * gas/testsuite/gas/arm/arm.exp: Add them.
2004-01-09 * config/tc-mips.c (warn_nops): Remove static variable.Ian Lance Taylor5-28/+19
(macro): Remove test of warn_nops. (md_shortops): Remove 'n'. (md_parse_option): Remove 'n' case. (md_show_usage): Remove -n. * doc/as.texinfo (Overview): Remove MIPS -n option. * doc/c-mips.texi (MIPS Opts): Remove mention -n. * NEWS: Mention removal of MIPS -n option.
2004-01-09 * gas/mips/ldstla-n64.d: Pass -64 to assembler, not -n64.Ian Lance Taylor3-2/+7
* gas/mips/ldstla-n64-shared.d: Likewise.
2004-01-09 * config/tc-mips.c (ISA_HAS_COPROC_DELAYS): Remove.Ian Lance Taylor2-79/+80
(cop_interlocks): Check ISA level. (cop_mem_interlocks): Define. (reg_needs_delay): Check cop_interlocks rather than ISA_HAS_COPROC_DELAYS. (append_insn): Likewise. Use cop_mem_interlocks rather than directly checking mips_opts.isa. (mips_emit_delays): Likewise.
2004-01-072004-01-07 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-105/+133
* config/tc-ia64.c (unwind): Move next_slot_number and next_slot_frag to ... (unw_rec_list): Here. (free_list_records): Removed. (output_unw_records): Likewise. (generate_unwind_image): Make it void. (alloc_record): Initialize next_slot_number and next_slot_frag. (slot_index): Take .org, .space and .align into account. (fixup_unw_records): Don't set slot_number to 0. Use list->next_slot_number and list->next_slot_frag instead of unwind.next_slot_number and unwind.next_slot_frag. (ia64_convert_frag): New. (generate_unwind_image): Generate a rs_machine_dependent frag for unwind record. (emit_one_bundle): Use list->next_slot_number and list->next_slot_frag instead of unwind.next_slot_number and unwind.next_slot_frag. * config/tc-ia64.h (md_convert_frag): Defined as ia64_convert_frag. (md_estimate_size_before_relax): Defined as (f)->fr_var.
2004-01-07Fix initialisation of debug_line_pointer_sizes array so that it is done as ↵Nick Clifton2-0/+5
needed
2004-01-062003-12-19 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva3-5/+77
* config/tc-frv.h (md_apply_fix3): Don't define. * config/tc-frv.c (md_apply_fix3): New. Shift/truncate %hi/%lo operands. * config/tc-frv.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define. 2003-10-07 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (line_separator_chars): Add `!'. 2003-09-19 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (md_assemble): Clear insn upfront. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (OPTION_FDPIC): New macro. (md_longopts): Add mfdpic. (md_parse_option): Handle it. 2003-08-04 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (md_cgen_lookup_reloc) <FRV_OPERAND_D12, FRV_OPERAND_S12>: Use reloc type encoded in fix-up. (frv_pic_ptr): Parse funcdesc.
2004-01-062003-11-05 Alexandre Oliva <aoliva@redhat.com>Alexandre Oliva5-1/+109
* lib/gas-defs.exp (is_elf_format): Match frv-uclinux. 2003-09-18 Alexandre Oliva <aoliva@redhat.com> * gas/frv/fdpic.s, gas/frv/fdpic.d: Renamed from ucpic*. 2003-09-15 Alexandre Oliva <aoliva@redhat.com> * gas/frv/ucpic.s, gas/frv/ucpic.d: Use gr15 as PIC register. Use gprel12 for rodata symbol and gotoff12 for sdata symbol. 2003-08-08 Alexandre Oliva <aoliva@redhat.com> * gas/frv/ucpic.d: Test gotoff and gotofffuncdesc. 2003-08-04 Alexandre Oliva <aoliva@redhat.com> * gas/frv/ucpic.d, gas/frv/ucpic.s: New. * gas/frv/allinsns.exp: Run it.
2004-01-05* doc/as.texinfo: Let texi2pod parse asconfig.texi andMaciej W. Rozycki2-39/+8
gasver.texi. Remove duplicate symbol definitions for texi2pod.
2004-01-05* Makefile.am (Makefile): Move the dependency onMaciej W. Rozycki3-2/+19
$(BFDDIR)/configure.in to... (CONFIG_STATUS_DEPENDENCIES): ... here. (AUTOMAKE_OPTIONS): Require automake 1.8. * Makefile.in: Regenerate. * doc/Makefile.am (BASEDIR, BFDDIR): Define. (CONFIG_STATUS_DEPENDENCIES): Add a dependency on $(BFDDIR)/configure.in here as well. * doc/Makefile.in: Regenerate.
2004-01-05* Makefile.am (install, install-info, RECURSIVE_TARGETS): Remove.Maciej W. Rozycki3-9/+12
* Makefile.in: Regenerate. * aclocal.m4: Regenerate. * doc/Makefile.am (install, install-info): Remove. (install-data-local): A new hook for install-info. (AUTOMAKE_OPTIONS): Require automake 1.8. * doc/Makefile.in: Regenerate.
2004-01-02Update description of FP behaviourNick Clifton2-4/+23
2004-01-02Catch a bug in the msp430 disassembler where an add instruction was confusedNick Clifton3-1/+8
with an rla instruction. Add a test for this to the testsuite.
2004-01-02Add m68k-uclinux targetNick Clifton3-0/+6
2004-01-02Split ChangeLog files.Alan Modra4-14398/+14423
2003-12-29 * gas/config/tc-arm.c (arm_cpus): Add 926ejs and 1026ejs.Paul Brook3-1/+11
* gas/doc/c-arm.texi: Document them.
2003-12-23 * doc/c-arm.texi: Document -march=armv6.Paul Brook2-0/+2
2003-12-23 * config/tc-arm.c (arm_archs): Add armv6.Paul Brook2-0/+5
2003-12-22Fix tests to eliminated unexpected failuresNick Clifton5-14/+22
2003-12-22For v6 tests use -march=armv6jNick Clifton3-2/+7
2003-12-20(md_apply_fix3): Handle the case where a .byte directive generates aNick Clifton2-4/+18
pc-relative relocation.
2003-12-19Fix calls to as_perror() so that the errno system message will be printed.Nick Clifton5-148/+152
Fix as_perror() so that errno is not corrupted.
2003-12-19Add support for m32r-linux target, including a RELA ABI and PIC.Nick Clifton18-36/+341
2003-12-18(input_file_open): Remove call to stat(). Add a check for getc() failing, andNick Clifton2-18/+29
catch the case where the failure is due to an attempt to read a directory.
2003-12-18bfd/Richard Sandiford8-118/+65
* elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use _bfd_mips_elf_hi16_reloc for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16, _bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and R_MIPS_GNU_REL_LO16, and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16. Change rightshift to 16 for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16. (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc) (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete. (_bfd_mips_elf32_gprel16_reloc): Remove special case. (mips_elf_gprel32_reloc, mips32_64bit_reloc): Likewise. * elf64-mips.c (mips_elf64_howto_table_rel): Replace all uses of mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use _bfd_mips_elf_hi16_reloc for R_MIPS_HI16, _bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16. Change R_MIPS_HI16's rightshift to 16. (mips_elf64_howto_table_rela): Replace all uses of mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use _bfd_mips_elf_generic_reloc for R_MIPS_GOT16 as well. (mips_elf64_hi16_reloc, mips_elf64_got16_reloc): Delete. (mips_elf64_shift6_reloc): Remove special case. Use _bfd_mips_elf_generic_reloc instead of returning bfd_reloc_continue. * elfn32-mips.c (prev_reloc_section): Delete. (prev_reloc_address, prev_reloc_addend): Delete. (elf_mips_howto_table_rel, elf_mips_howto_table_rela): As for elf64-mips.c (GET_RELOC_ADDEND, SET_RELOC_ADDEND): Delete. (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc) (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete. (mips_elf_gprel16_reloc): Delete use of GET_RELOC_ADDEND. (mips_elf_literal_reloc, mips_elf_gprel32_reloc): Likewise. (mips16_jump_reloc, mips16_gprel_reloc): Likewise. (mips_elf_shift6_reloc): Likewise. Delete use of SET_RELOC_ADDEND. * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Use _bfd_relocate_contents to install an in-place addend. (mips_hi16): New structure. (mips_hi16_list): Moved from elf32-mips.c. (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_got16_reloc): New functions. (_bfd_mips_elf_lo16_reloc, _bfd_mips_elf_generic_reloc): New functions. (mips_elf_calculate_relocation): Assume addend is unshifted. (_bfd_mips_elf_relocate_section): Don't apply the howto rightshift on top of the usual high-part shift. Don't shift the addend right before calling mips_elf_calculate_relocation. * elfxx-mips.h (_bfd_mips_elf_hi16_reloc): Declare. (_bfd_mips_elf_got16_reloc, _bfd_mips_elf_lo16_reloc): Declare. (_bfd_mips_elf_generic_reloc): Declare. gas/ * config/tc-mips.c (mips_need_elf_addend_fixup): Delete. (md_apply_fix3): Remove bfd_install_relocation workarounds. (tc_gen_reloc): Likewise. Factor handling of pc-relative relocations and treat fx_addnumber as relative to the relocation address. gas/testsuite/ * gas/mips/mips16-jalx.d: Use -mabi=o64. * gas/mips/mips16.d: Likewise. * gas/mips/elf-rel17.[sd]: New test. * gas/mips/mips.exp: Run it.
2003-12-18 * config/tc-mips.c (s_change_section): When parsing the MIPS-specificRichard Sandiford2-0/+21
.section syntax, map SHT_MIPS_DWARF to SHT_PROGBITS.
2003-12-18 * config/tc-arm.c (arm_archs): Change "armv6" to "armv6j".Mark Mitchell3-2/+7
* doc/c-arm.texi (ARM Options): Likewise.
2003-12-17Replace --error-explicit-parallel-conflicts with --ignore-parallel-conflitcs.Nick Clifton6-65/+97
Add test of parallel constraint checking.