aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2004-02-27Add -no-bitinst switch for M32R2Nick Clifton3-4/+28
2004-02-27Undo previous deltaNick Clifton2-6/+11
Fix underlying problem by changing the order of tests of rel->howto.
2004-02-27 * config/tc-s390.c (s390_insn): Correct range check for opcode inMartin Schwidefsky2-3/+14
.insn pseudo operation.
2004-02-27Fix seg fault on erroneous inputNick Clifton2-2/+9
2004-02-262004-02-26 Eric Christopher <echristo@redhat.com>Eric Christopher3-4/+21
* config/tc-mips.c (mips_dwarf2_addr_size): New. * config/tc-mips.h (DWARF2_ADDR_SIZE): Use.
2004-02-262004-02-23 Andrew Stubbs <andrew.stubbs@superh.com>Joern Rennecke2-0/+9
gas: * tc-sh.c (build_Mytes): Add REG_N_D and REG_N_B01 nibble types to assembler. opcodes: * sh-dis.c (print_insn_sh): Add REG_N_D nibble type to ensure that double registers have even numbers. Add REG_N_B01 for nn01 (binary 01) nibble to ensure that reserved instruction 0xfffd does not decode the same as 0xfdfd (ftrv). * sh-opc.h: Add REG_N_D nibble type and use it whereever REG_N refers to a double register. Add REG_N_B01 nibble type and use it instead of REG_NM in ftrv. Adjust the bit patterns in a few comments.
2004-02-26Patch reviewed and approved by nickc@redhat.com.Fred Fish2-2/+6
2004-02-25 Fred Fish <fnf@redhat.com> * config/tc-iq2000.c: Add missing \n\ in multiline string literal.
2004-02-21Fix unwind info problems with .align.Jim Wilson3-13/+60
* config/tc-ia64.c (slot_index): New arg before_relax. Use instead of finalize_syms. (fixup_unw_records): New arg before_relax. Pass to slot_index. (ia64_estimate_size_before_relax): New. (ia64_convert_frag): Pass 0 to fixup_unw_records. Add comment. (generate_unwind_image): Pass 1 to fixup_unw_records. * config/tc-ia64.h (ia64_estimate_size_before_relax): Declare. (md_estimate_size_before_relax): Call ia64_estimate_size_before_relax.
2004-02-19gas/Jakub Jelinek2-1/+6
* stabs.c (generate_asm_file): Avoid warning about use of uninitialized variable. binutils/ * objcopy.c (copy_section): Avoid warnings.
2004-02-19Yet another fix for -falign-loops problems.Jim Wilson2-4/+32
* config/tc-ia64.c (ia64_flush_insns): In addition to prologue, body, and endp, allow unwind records which do not have a "t" (time/instruction) field.
2004-02-18Apply fixes for Maverick CrunchNick Clifton6-90/+104
2004-02-132004-02-13 Hannes Reinecke <hare@suse.de>Andreas Jaeger2-2/+7
Jakub Jelinek <jakub@redhat.com> * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
2004-02-11Patch from Steve Ellcey for ia64-hpux.Jim Wilson3-0/+29
* config/tc-ia64.h (ia64_frob_symbol): New declaration. (tc_frob_symbol): New macro definition. * config/tc-ia64.c (ia64_frob_symbol): New routine.
2004-02-09 * config/tc-arm.c (md_begin): Mark .note.gnu.arm.ident asDaniel Jacobowitz2-0/+8
read-only.
2004-02-09 * gas/sh/basic.exp: Don't do sh4a tests for sh5.Kaz Kojima2-5/+12
2004-02-09 * read.h (IGNORE_OPCODE_CASE): Do not define. Replace with ...Nathan Sidwell4-4/+15
(TC_CASE_SENSITIVE): ... this. * read.c: Replace IGNORE_OPCODE_CASE with TC_CASE_SENSITIVE. * doc/internals.texi (TC_CASE_SENSITIVE): Document.
2004-02-07Fix unwind abort while compiling glibc, reported by HJ.Jim Wilson2-2/+9
* config/tc-ia64.c (dot_endp): Delete call to output_endp. (generate_unwind_image): Re-add it here.
2004-02-06.:Nathan Sidwell6-6/+16
* dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';' * read.h (SKIP_WHITESPACE): Turn into an expression. * read.c (read_a_source_file): A pseudo is removed by having a NULL handler. testsuite: * gas/macros/test2.s: Lowercase it.
2004-02-05Fix region length calculations when regions end with .align padding.Jim Wilson3-62/+40
* config/tc-ia64.c (output_endp): New. (count_bits): Delete. (ia64_flush_insns, process_one_record, optimize_unw_records): Handle endp unwind records. (fixup_unw_records): Handle endp unwind records. Delete code for shortening prologue regions not followed by a body record. (dot_endp): Call add_unwind_entry to emit endp unwind record. * config/tc-ia64.h (unw_record_type): Add endp.
2004-02-04Fix testcase from David Mosberger.Jim Wilson2-22/+61
* config/tc-ia64.c (ia64_convert_frag): Call md_number_to_chars to fill padding bytes with zeroes. (emit_one_bundle): New locals last_ptr, end_ptr. Rewrite code that sets unwind_record slot_number and slot_frag fields.
2004-02-02gas/Maciej W. Rozycki12-228/+186
* config/tc-mips.c (add_got_offset_hilo): New function. (macro): Use load_register() and add_got_offset_hilo() to load constants instead of hardcoding code sequences throughout. gas/testsuite/ * gas/mips/div.d: Update to accomodate changes in macro expansions. gas/mips/elf-rel-got-n32.d: Likewise. gas/mips/elf-rel-got-n64.d: Likewise. gas/mips/elf-rel-xgot-n32.d: Likewise. gas/mips/elf-rel-xgot-n64.d: Likewise. gas/mips/la-svr4pic.d: Likewise. gas/mips/la-xgot.d: Likewise. gas/mips/lca-svr4pic.d: Likewise. gas/mips/lca-xgot.d: Likewise.
2004-02-01 * gas/sh/sh4a-fp.d: Fix opcode name fssra to fsrra.Kaz Kojima4-10/+16
* gas/sh/sh4a-fp.s: Likewise. * gas/sh/err-sh4a-fp.s: Likewise.
2004-01-282004-01-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+6
* config/tc-ia64.c (emit_one_bundle): Add proper indentation.
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.