aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2009-10-05 PR gas/10704Alan Modra2-4/+6
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.
2009-10-05 * read.c (s_reloc): Don't use expression_and_evaluate.Alan Modra2-1/+5
2009-10-02typo fixAlan Modra1-6/+6
2009-10-02gas/Peter Bergner7-0/+993
* config/tc-ppc.c (md_show_usage): Document -m476. * doc/c-ppc.texi (PowerPC-Opts): Document -m476. gas/testsuite/ * gas/ppc/476.s: New test. * gas/ppc/476.d: Likewise. * gas/ppc/ppc.exp: Run the 476 test. include/opcode/ * ppc.h (PPC_OPCODE_476): Define. opcodes/ * ppc-dis.c (ppc_opts): Add "476" entry. * ppc-opc.c (PPC476): Define. (powerpc_opcodes): Update mnemonics where required for 476.
2009-10-02 * dw2gencfi.c: Include dwarf2dbg.h.Jakub Jelinek4-57/+288
(DWARF2_FORMAT): Define if not defined. (dot_cfi_sections): New function. (cfi_pseudo_table): Handle .cfi_sections. (CFI_EMIT_eh_frame, CFI_EMIT_debug_frame): Define. (cfi_sections): New variable. (output_cie, output_fde, select_cie_for_fde): Add eh_frame argument, add supporting for outputting .debug_frame section. (cfi_change_reg_numbers): New function or macro. (cfi_finish): Only emit .eh_frame if cfi_sections & CFI_EMIT_eh_frame. Emit .debug_frame if cfi_sections & CFI_EMIT_debug_frame. * config/tc-ppc.h (md_reg_eh_frame_to_debug_frame): Define. * doc/as.texinfo (CFI directives): Document .cfi_sections.
2009-10-01gas/Peter Bergner5-5/+14
* config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2". * doc/c-ppc.texi (PowerPC-Opts): Likewise. gas/testsuite/ * gas/ppc/a2.d: Rename "ppca2" to "a2". include/opcode/ * ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2. opcodes/ * ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2. * ppc-dis.c (ppc_opts): Likewise. Rename "ppca2" to "a2".
2009-10-012009-10-01 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+9
* config/tc-i386.c (x86_cons): Reformat.
2009-09-29bfdNick Clifton227-7/+9457
* Makefile.am (ALL_MACHINES): Add cpu-rx.lo. (ALL_MACHINES_CFILES): Add cpu-rx.c. (BFD32_BACKENDS): Add elf32-rx.lo. (BFD32_BACKENDS_CFILES): Add elf32-rx.c. * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx. Export bfd_rx_arch. (bfd_archures_list): Add bfd_rx_arch. * config.bfd: Add entry for rx-*-elf. * configure.in: Add entries for bfd_elf32_rx_le_vec and bfd_elf32_rx_be_vec. * reloc.c: Add RX relocations. * targets.c: Add RX target vectors. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * libbfd.h: Regenerate. * cpu-rx.c: New file. * elf32-rx.c: New file. binutils * readelf.c: Add support for RX target. * MAINTAINERS: Add DJ and NickC as maintainers for RX. gas * Makefile.am: Add RX target. * configure.in: Likewise. * configure.tgt: Likewise. * read.c (do_repeat_with_expander): New function. * read.h: Provide a prototype for do_repeat_with_expander. * doc/Makefile.am: Add RX target documentation. * doc/all.texi: Likewise. * doc/as.texinfo: Likewise. * Makefile.in: Regenerate. * NEWS: Mention support for RX architecture. * configure: Regenerate. * doc/Makefile.in: Regenerate. * config/rx-defs.h: New file. * config/rx-parse.y: New file. * config/tc-rx.h: New file. * config/tc-rx.c: New file. * doc/c-rx.texi: New file. gas/testsuite * gas/rx: New directory. * gas/rx/*: New set of test cases. * gas/elf/section2.e-rx: New expected output file. * gas/all/gas.exp: Add support for RX target. * gas/elf/elf.exp: Likewise. * gas/lns/lns.exp: Likewise. * gas/macros/macros.exp: Likewise. include * dis-asm.h: Add prototype for print_insn_rx. include/elf * rx.h: New file. include/opcode * rx.h: New file. ld * Makefile.am: Add rules to build RX emulation. * configure.tgt: Likewise. * NEWS: Mention support for RX architecture. * Makefile.in: Regenerate. * emulparams/elf32rx.sh: New file. * emultempl/rxelf.em: New file. opcodes * Makefile.am: Add RX files. * configure.in: Add support for RX target. * disassemble.c: Likewise. * Makefile.in: Regenerate. * configure: Regenerate. * opc2c.c: New file. * rx-decode.c: New file. * rx-decode.opc: New file. * rx-dis.c: New file.
2009-09-29opcodes/Peter Bergner5-276/+264
* ppc-opc.c (powerpc_opcodes): Remove support for the the "lxsdux", "lxvd2ux", "lxvw4ux", "stxsdux", "stxvd2ux" and "stxvw4ux" opcodes. gas/testsuite/ * gas/ppc/vsx.s ("lxsdux", "lxvd2ux", "lxvw4ux", "stxsdux", "stxvd2ux", "stxvw4ux"): Remove tests. * gas/ppc/vsx.d: Likewise. * gas/ppc/power7.s: Likewise. * gas/ppc/power7.d: Likewise.
2009-09-25 Update soruces to make alpha, arc and arm targets compile cleanlyNick Clifton7-1399/+1444
with -Wc++-compat: * config/tc-alpha.c: Add casts. (extended_bfd_reloc_code_real_type): New type. Used to avoid enumeration conversion warnings. (struct alpha_fixup, void assemble_insn, assemble_insn) (assemble_tokens): Use new type. * ecoff.c: Add casts. (mark_stabs): Use enumeration names. * config/obj-elf.c: Add cast * config/tc-arc.c: Add casts. * config/obj-aout.h (text_section,data_section,bss_section): Make extern. * config/obj-elf.c: Add cast. * config/tc-arm.c: Add casts. (X, TxCE, TxCE, TxC3, TxC3w, TxCM_, TxCM, TUE, TUF, CE, CL, cCE) (cCL, C3E, xCM_, nUF, nCE_tag): Change input format to avoid the need for keywords as arguments. * ecoff.c: Add casts. * ecofflink.c: Add casts. * elf64-alpha.c: Add casts. (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move to top level. (SKIP_HOWTO): Use enum name. * elf32-arm.c: Add casts. (elf32_arm_vxworks_bed): Update code to avoid multiple declarations. (struct map_stub): Move to top level. * arc-dis.c Fix casts. * arc-ext.c: Add casts. * arm-dis.c (enum opcode_sentinel_enum): Gave name to anonymous enum. * emultempl/armelf.em: Add casts.
2009-09-252009-09-25 Nick Hudson <nick.hudson@gmx.co.uk>Nick Hudson2-2/+7
* doc/c-mips.texi: Fix the singlefloat and doublefloat kindex entries.
2009-09-24gas/H.J. Lu2-1/+6
2009-09-24 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_vex_prefix): Check vex == 2 instead of vex256. opcodes/ 2009-09-24 H.J. Lu <hongjiu.lu@intel.com> * i386-gen.c (opcode_modifiers): Remove Vex256. (set_bitfield): Handle XXX=V. * i386-opc.h (Vex): Update comments. (Vex256): Removed. (VexNDS): Updated. (i386_opcode_modifier): Change vex to 2 bits. Remove vex256. * i386-opc.tbl: Replace "Vex|Vex256" with Vex=2. * i386-tbl.h: Regenerated.
2009-09-24gas/H.J. Lu6-8/+32
2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/10677 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Return true for BFD_RELOC_X86_64_GOTPCREL. gas/testsuite/ 2009-09-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/10677 * gas/i386/i386.exp: Run x86-64-localpic. * gas/i386/x86-64-localpic.d: New. * gas/i386/x86-64-localpic.s: Likewise.
2009-09-242009-09-23 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+8
* gas/i386/localpic.d: Updated.
2009-09-24gas/H.J. Lu6-4/+26
2009-09-23 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Don't check BFD_RELOC_386_GOT32. gas/testsuite/ 2009-09-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run localpic. * gas/i386/localpic.d: New. * gas/i386/localpic.s: Likewise.
2009-09-232009-09-22 Sterling Augustine <sterling@tensilica.com>Sterling Augustine1-0/+6
* config/tc-xtensa.c (md_apply_fix): Remove check for constant with difference of of two symbols. (xtensa_fix_adjustable): Likewise.
2009-09-23Fix previous entry.Tristan Gingold1-1/+1
2009-09-232009-09-23 Tim E. Sneddon <tsneddon@kednos.com>Tristan Gingold2-1/+5
* gas/configure.com: Fix a typo.
2009-09-23 * symbols.c (define_sym_at_dot): New function, extracted from..Alan Modra2-12/+19
(colon): ..here. Define error case cloned symbol.
2009-09-23Tolerate some whitespace differences in readelf output.Alan Modra27-339/+368
2009-09-222009-09-22 Sterling Augustine <sterling@jaw.hq.tensilica.com>Sterling Augustine1-17/+0
* config/tc-xtensa.c (md_apply_fix): Remove check for constant with difference of of two symbols. (xtensa_fix_adjustable): Likewise.
2009-09-22 * gas/ppc/a2.d: Match PPC64 relocs.Alan Modra2-16/+20
2009-09-212009-09-21 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-10/+14
* config/tc-i386.c: Remove white spaces.
2009-09-21 * lib/gas-defs.exp (gas_test_error): Mark internal error/assertionMaciej W. Rozycki2-7/+13
failures seen in output as fails. Also record output being matched for fails.
2009-09-21 * gas/mips/eret-1.d: Adjust regexps for robustness.Maciej W. Rozycki6-65/+75
* gas/mips/eret-2.d: Likewise. * gas/mips/eret-3.d: Likewise. * gas/mips/eret-1.s: Reformat for readability. Add a label at the beginning. * gas/mips/eret-2.s: Add a label at the beginning.
2009-09-21 * gas/mips/eret-1.s: Add trailing padding.Maciej W. Rozycki7-3/+25
* gas/mips/eret-2.s: Likewise. * gas/mips/eret-3.s: Likewise. * gas/mips/eret-1.d: Adjust accordingly. Force a 32-bit ABI. * gas/mips/eret-2.d: Likewise. * gas/mips/eret-3.d: Likewise.
2009-09-21 * gas/mips/mips.exp: Fix a typo.Maciej W. Rozycki2-1/+5
2009-09-21gas/Ben Elliston7-0/+1151
* config/tc-ppc.c (md_show_usage): Document -mpcca2. * doc/c-ppc.texi (PowerPC-Opts): Document -mppca2. gas/testsuite/ * gas/ppc/a2.s: New. * gas/ppc/a2.d: Likewise. * gas/ppc/ppc.exp: Run the a2 dump test. include/opcode/ * ppc.h (PPC_OPCODE_PPCA2): New. opcodes/ * ppc-dis.c (ppc_opts): Add "ppca2" entry. * ppc-opc.c (powerpc_opcodes): Add eratilx, eratsx, eratsx., eratre, wchkall, eratwe, ldawx., mdfcrx., mfdcr. mtdcrx., icswx, icswx., mtdcr., dci, wclrone, wclrall, wclr, erativax, tlbsrx., ici mnemonics. (ERAT_T): New operand. (XWC_MASK): New mask. (XOPL2): New macro. (PPCA2): Define.
2009-09-21 * gas/ppc/e500mc.d: Remove blank line at the end of file.Ben Elliston2-1/+4
2009-09-18Updated Spanish and Vietnamese translationsNick Clifton2-2773/+3969
2009-09-16Remove spurious entryNick Clifton1-2/+0
2009-09-152009-09-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+6
* config/tc-i386.c (offset_in_range): Sign extend offset only if BFD64 is defined.
2009-09-15gas/H.J. Lu11-2/+28
2009-09-15 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386-intel.c (i386_intel_operand): Initialize intel_state.has_offset to 0. gas/testsuite/ 2009-09-15 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/disp.s: Add an offset test. * gas/i386/x86-64-disp.s: Likewise. * gas/i386/intelbad.s: Comment out "byte ptr [1]" test. * gas/i386/disp.d: Updated. * gas/i386/disp-intel.d: Likewise. * gas/i386/intelbad.l: Likewise. * gas/i386/x86-64-disp.d: Likewise. * gas/i386/x86-64-disp-intel.d: Likewise.
2009-09-152009-09-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+10
* config/tc-i386.c (offset_in_range): Sign extend offset only for 32bit address mode.
2009-09-152009-09-15 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+10
* makefile.vms (OBJS): Compile te-vms.c only on Itanium.
2009-09-14gas/H.J. Lu11-2/+215
2009-09-14 H.J. Lu <hongjiu.lu@intel.com> PR gas/10637 * config/tc-i386-intel.c (intel_state): Add has_offset. (i386_intel_simplify): Set intel_state.has_offset to 1 for O_offset. (i386_intel_operand): Turn on intel_state.is_mem if intel_state.has_offset is 0 and the last char is ']'. gas/testsuite/ 2009-09-14 H.J. Lu <hongjiu.lu@intel.com> PR gas/10637 * gas/i386/disp.s: Add tests for Intel syntax. * gas/i386/x86-64-disp.s: Likewise. * gas/i386/disp.d: Updated. * gas/i386/intelok.d: Likewise. * gas/i386/x86-64-disp.d: Likewise. * gas/i386/disp-intel.d: New. * gas/i386/x86-64-disp-intel.d: Likewise. * gas/i386/i386.exp: Run disp-intel and x86-64-disp-intel.
2009-09-142009-09-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu13-21/+46
* gas/i386/merom.[ds]: Renamed to ... * gas/i386/ssse3.[ds]: This. * gas/i386/nops-1-merom.d: Renamed to ... * gas/i386/nops-1-core2.d: This. * gas/i386/nops-2-merom.d: Renamed to ... * gas/i386/nops-2-core2.d: This. * gas/i386/prescott.[ds]: Renamed to ... * gas/i386/sse3.[ds]: This. * gas/i386/x86-64-merom.[ds]: Renamed to ... * gas/i386/x86-64-ssse3.[ds]: This. * gas/i386/x86-64-nops-1-merom.d: Renamed to ... * gas/i386/x86-64-nops-1-core2.d: This. * gas/i386/x86-64-prescott.[ds]: Renamed to ... * gas/i386/x86-64-sse3.[ds]: This. * gas/i386/i386.exp: Updated.
2009-09-14gas/H.J. Lu15-70/+199
2009-09-14 H.J. Lu <hongjiu.lu@intel.com> PR gas/10636 * config/tc-i386.c (optimize_disp): Set disp32 for 64bit only if there is an ADDR_PREFIX. (i386_finalize_displacement): Repor error if signed 32bit displacement is out of range. gas/testsuite/ 2009-09-14 H.J. Lu <hongjiu.lu@intel.com> PR gas/10636 * gas/i386/disp.d: New. * gas/i386/disp.s: Likewise. * gas/i386/x86-64-disp.d: Likewise. * gas/i386/x86-64-disp.s: Likewise. * gas/i386/i386.exp: Run disp and x86-64-disp. * gas/i386/x86-64-addr32.s: Add high 32bit displacement tests. * gas/i386/x86-64-addr32.d: Updated. * gas/i386/x86-64-addr32-intel.d: Likewise. * gas/i386/x86-64-inval.l: Likewise. * gas/i386/x86-64-prescott.d: Likewise. * gas/i386/x86-64-inval.s: Add invalid displacement tests. * gas/i386/x86-64-prescott.s: Replace 0x90909090 displacement with 0x909090.
2009-09-13gas/Richard Sandiford9-10/+92
* config/tc-mips.c (MIPS_JALR_HINT_P): Take an expr argument. Require the target to be a bare symbol on targets with in-place addends. (macro_build_jalr): Update accordingly. (mips_fix_adjustable): Don't reduce R_MIPS_JALRs on targets with in-place addends. gas/testsuite/ * gas/mips/jalr2.s, gas/mips/jalr2.d: New test. * gas/mips/jal-svr4pic.d: Don't expect R_MIPS_JALRs to be reduced. * gas/mips/jal-xgot.d: Likewise. * gas/mips/mips-abi32-pic2.d: Likewise. * gas/mips/mips.exp: Run it.
2009-09-13gas/testsuite/Richard Sandiford2-10/+14
* gas/mips/mips16-dwarf2-n32.d: Expect odd addresses. ld/testsuite/ * ld-mips-elf/eh-frame1-n32.d: Change "the section \.eh_frame" to "the \.eh_frame section". * ld-mips-elf/eh-frame1-n64.d: Likewise. * ld-mips-elf/eh-frame2-n32.d: Likewise. * ld-mips-elf/eh-frame2-n64.d: Likewise. * ld-mips-elf/eh-frame3.d: Likewise. * ld-mips-elf/eh-frame4.d: Likewise. * ld-mips-elf/elf-rel-got-n32.d: Expect bals. * ld-mips-elf/elf-rel-xgot-n32.d: Likewise. * ld-mips-elf/mips-elf.exp: Force the MIPS16 PIC tests to use -mips1.
2009-09-11 * po/bfd.pot: Updated by the Translation project.Nick Clifton24-207/+311
* po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration.
2009-09-10 PR gas/10623Hans-Peter Nilsson7-1/+88
* gas/mmix/err-swym1.s, gas/mmix/swym-opreg1.d, gas/mmix/swym-opreg1.s, gas/mmix/swym-opreg2.d, gas/mmix/swym-opreg2.s: New tests. * gas/mmix/odd-1.d: Adjust for reloc change.
2009-09-10 PR gas/10623Hans-Peter Nilsson2-26/+39
* config/tc-mmix.c (md_assemble) <case mmix_operands_xyz_opt>: Allow register operands for SWYM as for TRIP and TRAP. Correct operand handling and error checking. Never emit BFD_RELOC_MMIX_REG_OR_BYTE for operands to these insns.
2009-09-10gas/Alan Modra6-20/+41
* config/tc-d10v.c: Include dwarf2dbg.h. (write_long, write_1_short, write_2_short): Call dwarf2_emit_insn. (d10v_frob_label): New function. * config/tc-d10v.h (d10v_frob_label): Declare. (tc_frob_label): Define as d10v_frob_label. gas/testsuite/ * gas/lns/lns-common-1.s: Use two nops between each .loc. * gas/lns/lns.exp: Don't exclude d10v.
2009-09-10 * config/tc-d30v.c (d30v_frob_label): Call dwarf2_emit_label.Alan Modra3-0/+9
* config/tc-frv.c (frv_frob_label): Likewise.
2009-09-09 * gas/sh/sh64/syntax-1.s: Regenerate.Kaz Kojima2-2/+6
2009-09-09 * config/obj-coff.h (USE_UNIQUE): Don't define.Alan Modra5-7/+10
* config/obj-coff.c (weak_uniquify): Use an_external_name when TE_PE. * symbols.c (an_external_name): Define when TE_PE. (S_SET_EXTERNAL): Assign an_external_name when TE_PE. * tc.h (an_external_name): Declare when TE_PE.
2009-09-09 * config/tc-i386.c (i386_target_format): Avoid duplicate case label.Alan Modra2-7/+12
2009-09-08 * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.Kaz Kojima4-2/+14
* gas/sh/basic.exp: Add -big to ASFLAGS for sh*l*-*-netbsdelf*.
2009-09-08 * gas/d30v/serial2.l: Adjust position of page break.Alan Modra5-3/+14
* gas/lns/lns-common-1-alt.d: Match 2009-04-24 change. * gas/mt/ms1-16-003.d: Correct reloc name. * gas/mt/relocs.d: Elide incorrect file format strings.