aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2010-09-02 * dw2gencfi.c (TC_DWARF2_EMIT_OFFSET): Provide default.Richard Henderson12-27/+68
(output_fde): Use it. Make sure to fully init exp before using it. testsuite/ * gas/cfi/cfi-common-1.d: Use objdump instead of readelf to dump. * gas/cfi/cfi-common-2.d, gas/cfi/cfi-common-3.d, gas/cfi/cfi-common-4.d, gas/cfi/cfi-common-6.d, gas/cfi/cfi-common-7.d, gas/cfi/cfi-x86_64.d: Likewise. * gas/cfi/cfi-x86_64.s: Remove .type directives. * gas/cfi/cfi.exp: Run for pecoff objects too. * gas/cfi/reloc-pe-i386.d, gas/cfi/reloc-pe-i386.s: New test.
2010-08-31Fix "pushw imm16" for x86-64 disassembler.H.J. Lu4-50/+35
gas/testsuite/ 2010-08-31 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11960 * gas/i386/opcode-intel.d: Updated. * gas/i386/x86-64-opcode.d: Likewise. * gas/i386/x86-64-opcode.s: Add a "pushw imm16" test. opcodes/ 2010-08-31 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11960 * i386-dis.c (sIv): New. (dis386): Replace Iq with sIv on "pushT". (reg_table): Replace T with {T|} on callT, JcallT, jmpT and JjmpT. (x86_64_table): Replace {T|}/{P|} with P. (putop): Add 'w' to 'T'/'P' if needed for Intel syntax. (OP_sI): Update v_mode. Remove w_mode.
2010-08-312010-08-31 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-4/+9
* config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison. (obj_coff_seh_stackalloc): Likewise.
2010-08-31 * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion.Alan Modra2-2/+6
2010-08-30 * config/obj-coff-seh.c: Rewrite the entire file.Richard Henderson3-1283/+690
(symtab, symptr, reltab, relcount, relsize): Remove. (seh_ctx_root, seh_ctx): Remove. (xdata_seg, xdata_subseg, pdata_seg): New. (switch_xdata, switch_pdata): New. (verify_context, verify_context_and_target, skip_whitespace_and_comma): New parsing functions. Rewrite all parsing functions to use them. (obj_coff_seh_32): Fix != arm thinko. (obj_coff_seh_handler): For x64, don't accept handler pointer here, only flags. (obj_coff_seh_handlerdata): New. (do_seh_endproc): Split out of ... (obj_coff_seh_endproc): ... here. (obj_coff_seh_proc): Use it, if needed. (seh_x64_make_prologue_element): Use XRESIZEVEC, symbol_temp_new_now. (seh_x64_read_reg): Remove mm_regs alternative. Tidy integer reg alternatives. Don't slurp commas. (seh_read_offset): Remove. (obj_coff_seh_pushframe): Split out from obj_coff_seh_push. (obj_coff_seh_scope): Remove. (obj_coff_seh_save): Decide UWOP_SAVE_* vs _FAR immediately. (obj_coff_seh_stackalloc): Decide _SMALL vs _LARGE immediately. (out_one, out_two, out_four): New. (seh_x64_write_prologue_data, seh_x64_size_prologue_data, seh_x64_write_function_xdata, write_function_xdata): Rewrite from seh_x64_write_xdata, seh_needed_unwind_info, seh_store_elm_data, seh_getelm_data_size, seh_getsize_of_unwind_entry, seh_make_unwind_entry, seh_getsize_unwind_data, and seh_create_unwind_data. (seh_arm_write_function_pdata): Rewrite from seh_arm_create_pdata. (write_function_pdata): Rewrite from make_function_entry_pdata. (seh_write_text_eh_data, make_function_entry_pdata, seh_arm_create_pdata, seh_arm_write_pdata, seh_reloc, save_relocs, seh_symbol_init, seh_symbol, quick_section, seh_emit_rva, seh_emit_long, seh_make_globl, seh_make_section2, seh_make_section, seh_make_xlbl_name, make_seh_text_label, seh_fill_pcsyms, seh_needed_unwind_info, seh_store_elm_data, seh_getelm_data_size, seh_getsize_of_unwind_entry, seh_make_unwind_entry, seh_getsize_unwind_data, seh_create_unwind_data, seh_make_function_entry_xdata, seh_x64_makescope_elem): Remove. * config/obj-coff-seh.h (SEH_CMDS): Remove seh_savemm, seh_scope. Add seh_handlerdata. Adjust function/what arguments for seh_savereg, seh_pushframe, seh_stackalloc. (struct seh_prologue_element): Adjust members to closer match the elements of the UNWIND_CODE structure. (struct seh_scope_elem): Remove. (struct seh_context): Replace char* members with symbolS or expressionS as appropriate. Sort members by ARM/x64 applicability. Remove obsolete stuff wrt direct symbol and reloc manipulation.
2010-08-25Move gas/ld NEWS from binutils to gas/ld.H.J. Lu2-0/+6
2010-08-25 * configure.tgt (m68k-*-aout): Change to bfd_gas=yes.Alan Modra2-0/+5
2010-08-25 * config/tc-d10v.c (do_assemble): Correctly detect overflow ofAlan Modra4-4/+18
"name" buffer. * config/tc-m68hc11.c (md_assemble): Likewise. * config/tc-microblaze.c (md_assemble): Likewise. Correct cast of is_end_of_line index.
2010-08-25 * config/tc-arm.c (encode_arm_addr_mode_2): Fix comment.Jie Zhang2-1/+5
2010-08-25 * config/tc-arm.c (encode_arm_addr_mode_2): FixJie Zhang7-7/+56
BAD_PC_ADDRESSING condition. testsuite/ * gas/arm/ldst-pc.d: New test. * gas/arm/ldst-pc.s: New test. * gas/arm/sp-pc-validations-bad.s: `str r0,[pc,#4]' is valid. * gas/arm/sp-pc-validations-bad.l: Adjust accordingly.
2010-08-20 * doc/c-arm.texi (ARM Options): Document -mfpu=fp4-sp-d16.Maciej W. Rozycki2-0/+5
2010-08-19Fix a typo in comments.H.J. Lu2-1/+5
2010-08-19 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (VEX_check_operands): Fix a typo in comments.
2010-08-18Check i.imm_operands VEXXDS.H.J. Lu2-3/+8
2010-08-18 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_modrm_byte): Check i.imm_operands instead of VEXXDS.
2010-08-18 * macro.c (sub_actual): Add back ampersand suffix when noAlan Modra2-3/+10
substitution. (macro_expand_body): Correct comment.
2010-08-18Add missing files.H.J. Lu3-0/+42
2010-08-17Add "?" pseudo-flag to ELF .section/.pushsection directives.Roland McGrath5-93/+140
2010-08-09 * as.c (show_usage): Don't list --compress-debug-sections if zlib notCary Coutant3-0/+24
installed. (main): Warn if --compress-debug-sections requested and zlib not installed. * doc/as.texinfo: Add --compress-debug-sections, --nocompress-debug-sections.
2010-08-06Re-indent config/tc-i386.c.H.J. Lu2-3/+8
2010-08-06 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (set_cpu_arch): Re-indent. (md_parse_option): Likewise.
2010-08-06Don't generate multi-byte NOPs for i686.H.J. Lu13-87/+137
gas/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * config/tc-i386.c (arch_entry): Add negated bit to disambiguate flag names starting with "no". (cpu_arch): Add negated bit definitions. Add ".nop" CPU extension. (i386_align_code): Use new .cpunop bit to decide when to generate alignment using nops. (set_cpu_arch): Use negated bit instead to decide when to use cpu_flags or vs. cpu_flags_and_not. (md_parse_option): Likewise. gas/testsuite/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * gas/i386/arch-10-1.l: Add nopl instruction. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/arch-10.s: Likewise. * gas/i386/arch-10.d: Add nopl instruction, and +nopl extension flag to as flags. * gas/i386/nops-5-i686.d: Change alignment code generated for -mtune=i686. * gas/i386/nops-5.d: Change alignment code generated for .arch i686. * gas/i386/x86-64-nops-5-k8.d: Likewise. * gas/i386/x86-64-nops-5.d: Likewise. opcodes/ 2010-08-06 Quentin Neill <quentin.neill@amd.com> * i386-gen.c (cpu_flag_init): Define CpuNop extension flag, add to processor flags for PENTIUMPRO processors and later. * i386-opc.h (enum): Add CpuNop. (i386_cpu_flags): Add cpunop bit. * i386-opc.tbl: Change nop cpu_flags. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
2010-08-06Add ud1 to x86.H.J. Lu8-8/+40
gas/testsuite/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run arch-4. * gas/i386/arch-4.d: New. * gas/i386/arch-4.s: Likewise. * gas/i386/intel.d: Replace ud2a/ud2b with ud2/ud1. * gas/i386/opcode-intel.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/opcode.d: Likewise. opcodes/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (dis386_twobyte): Replace ud2a/ud2b with ud2/ud1. * i386-opc.tbl: Add ud1. Remove Cpu686 from ud2/ud2a/ud2b. * i386-tbl.h: Regenerated.
2010-08-04Move the first i.error out of the loop.H.J. Lu2-2/+8
2010-08-04 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (match_template): Move the first i.error out of the loop.
2010-08-04 * configure.tgt (m32c): Set endian=little.Alan Modra4-3/+9
* config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0. * config/tc-m32c.c (md_number_to_chars): Revert last change.
2010-08-03bfd/Tristan Gingold2-2/+7
2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Update list. gas/ Index: gas/ChangeLog 2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Add Add compress-debug.c.
2010-08-03 * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.Alan Modra3-4/+10
* config/tc-m32c.c (md_number_to_chars): Call bigendian form of number_to_chars, not littleendian.
2010-08-03 * gas/all/octa.s, * gas/all/octa.d: New test.Alan Modra7-16/+19
* gas/all/gas.exp: Run octa. * gas/elf/data-1.s, * gas/elf/data-1.d: Delete. * gas/elf/elf.exp: Don't run data-1.
2010-08-02Run data-1 only for i*86, x86_64 and ia64.H.J. Lu2-1/+10
2010-08-02 H.J. Lu <hongjiu.lu@intel.com> * elf/elf.exp: Run data-1 only for i*86, x86_64 and ia64.
2010-08-02Add a testcase for PR gas/11867.H.J. Lu4-0/+19
2010-08-02 H.J. Lu <hongjiu.lu@intel.com> PR gas/11867 * gas/elf/data-1.d: New. * gas/elf/data-1.s: Likewise. * elf/elf.exp: Run data-1.
2010-08-02 * config/tc-d30v.c (d30v_cons_align): Don't align constantsAlan Modra2-0/+9
in debug sections.
2010-08-02 PR gas/11867Alan Modra3-10/+42
* expr.c (operand <'-' and '~'>): Widen bignums. (operand <'!'>): Correct bignum result and convert to O_constant. * read.c (emit_expr): Don't assert on .byte bignum. Don't display bignum truncated warning for sign extended bignums.
2010-08-022010-08-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold9-17/+82
* lib/gas-defs.exp (get_standard_section_names): New function. (run_dump_tests): Document the new behavior for objdump, document to new section-subst option. Automatically perform substitutions for objdump. (objdump_finish): Add REF_SUBST argument. (run_list_test): Adjust call of regexp_diff. (run_list_test_stdin): Ditto. * gas/all/gas.exp (test_cond): Adjust call of regexp_diff. * gas/symver/symver.exp (run_error_test): Ditto. * gas/mt/relocs.exp (regexp_test): Ditto. * gas/mep/complex-relocs.exp (regexp_test): Ditto. * gas/m68k/all.exp: Ditto. * gas/elf/elf.exp (run_elf_list_test): Ditto. * gas/rx/rx-asm-good.d: Set section-subst to no.
2010-08-02 * config/tc-v850.c (md_assemble): Always pass format string toAlan Modra2-2/+8
as_warn. (md_apply_fix): Similarly for as_warn_where.
2010-08-02 * gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.Alan Modra2-10/+10
(dw2-compress-2, x86-64-dw2-compress-2): Remove unnecessary linux target test.
2010-08-02Update for ppc_fix_adjustable change.Alan Modra2-2/+6
2010-07-29Reformat config/tc-i386-intel.c.H.J. Lu2-18/+42
2010-07-29 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386-intel.c: Reformat.
2010-07-29 * config/tc-ppc.c (ppc_fix_adjustable): Add got reloc types usedAlan Modra2-0/+7
in large toc code.
2010-07-28Correct date.H.J. Lu1-1/+1
2010-07-28Xfail dw2-compress-2 and x86-64-dw2-compress-2.H.J. Lu2-0/+7
2010-07-27 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Xfail dw2-compress-2 and x86-64-dw2-compress-2.
2010-07-28 PR gas/11841Alan Modra2-1/+6
* symbols.c (symbol_clone): Correct typo in previous patch.
2010-07-28 PR gas/11841Alan Modra2-2/+7
* symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.
2010-07-28 * config/tc-ppc.c (md_assemble): Don't attempt to print NUL inAlan Modra2-1/+9
syntax error message.
2010-07-27Fix up last ChangeLog entry in gas/ and bfd/.Maciej W. Rozycki1-15/+0
2010-07-27 * elf64-mips.c (mips_elf64_howto_table_rela)Maciej W. Rozycki1-0/+15
[R_MIPS_TLS_DTPMOD64]: Clear partial_inplace. [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise. * elfn32-mips.c (elf_mips_howto_table_rela) [R_MIPS_TLS_DTPMOD32]: Likewise. [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise. [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
2010-07-27 * config/tc-mips.c (mips16_macro_build): Pass "args" byMaciej W. Rozycki2-11/+17
reference rather than value. (macro_build): Update accordingly.
2010-07-27 * config/tc-mips.c (mips_ip): Use symbol_temp_new_now to createMaciej W. Rozycki2-3/+6
a fake label.
2010-07-24 gas/Maciej W. Rozycki8-0/+142
* config/tc-mips.c (macro)[M_JAL_1, M_JAL_2]: Handle the JALR delay slot in the noreorder mode with the o32 ABI. gas/testsuite/ * gas/mips/jal-svr4pic-noreorder.d: New test case. * gas/mips/mips1@jal-svr4pic-noreorder.d: New test subarchitecture. * gas/mips/r3000@jal-svr4pic-noreorder.d: Likewise. * gas/mips/jal-svr4pic-noreorder.s: Source for the new test case. * gas/mips/mips.exp: Run the new test case.
2010-07-24 * gas/mips/jal-svr4pic.d: Rename to...Maciej W. Rozycki5-21/+82
* gas/mips/mips1@jal-svr4pic.d: ... this. * gas/mips/r3000@jal-svr4pic.d: New test subarchitecture. * gas/mips/jal-svr4pic.d: New default subarchitecture patterns. * gas/mips/mips.exp: Run jal-svr4pic with run_dump_test_arches rather than run_dump_test.
2010-07-24 * gas/mips/jal-svr4pic.d: Reformat. Use --show-raw-insn withMaciej W. Rozycki3-45/+50
`objdump'. * gas/mips/jal-svr4pic.s: Reformat. Fix up trailing zeroes.
2010-07-24 * lib/gas-defs.exp (run_dump_test): Handle the "dump" option.Maciej W. Rozycki2-1/+17
2010-07-23Add support for v850E2 and v850E2V3Nick Clifton10-539/+1522
2010-07-23 PR gas/11834Alan Modra2-3/+13
* macro.c (macro_expand): Recover gracefully from named args that don't match params.