aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2005-05-27 * config/tc-arm.h (TC_FIX_TYPE): Change to int.Zack Weinberg3-8/+28
(TC_INIT_FIX_DATA): Initialize to 0, not NULL. * config/tc-arm.c (fix_new_arm): Remove now-unnecessary cast. (md_apply_fix3): Delete fix_is_thumb variable; refer to fixP->tc_fix_data directly in the sole place it was used. Explicitly truncate value, *valP, fixP->fx_addnumber, and fixP->fx_offset to 32 bits, for consistent behavior between 32- and 64-bit hosts.
2005-05-27gas/Jan Beulich4-68/+120
2005-05-27 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (struct proc_pending): New. (unwind): Replace proc_start with proc_pending. (unwind_diagnostic): Check unwind.proc_pending.sym. (dot_proc): Replace unwind.proc_start with unwind.proc_pending.sym. Check if previous proc not closed. Record all entry points. (dot_endp): Replace unwind.proc_start with unwind.proc_pending.sym. Set symbol sizes for entry points recorded in dot_proc. Check arguments for consistency with respective .proc's. (md_assemble): Replace unwind.proc_start with unwind.proc_pending.sym. gas/testsuite/ 2005-05-27 Jan Beulich <jbeulich@novell.com> * gas/ia64/proc.l: Adjust.
2005-05-27gas/Jan Beulich2-6/+14
2005-05-27 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (emit_one_bundle): Restrict scope of ptr, end_ptr, and last_ptr. Check all in-use slots for first one with non-NULL unwind_record. Don't reload end_ptr before second update round.
2005-05-26Fix issues noticed while reviewing Jan Beulich's MLX template bug fix.Jim Wilson2-2/+23
* config/tc-ia64.c (extra_goodness): Update comment. (md_begin): Add debugging code to print best_template table.
2005-05-26Patch from Steve Ellcey for ia64-hpux testsuite failure.Jim Wilson2-1/+5
gas/ia64/global.d: Change --sym to --syms.
2005-05-252005-05-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+7
* gas/ia64/group-1.d: Updated. * gas/ia64/group-2.d: Likewise.
2005-05-25gas/Jan Beulich2-2/+7
2005-05-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (md_begin): Don't try to match slot 2 of an MLX template.
2005-05-25gas/Jan Beulich2-0/+6
2005-05-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (ia64_gen_real_reloc_type): Also handle BFD_RELOC_UNUSED when determining the width of the reloc.
2005-05-25gas/Jan Beulich2-6/+6
2005-05-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (dot_endp): Clear out all three pointers in unwind section entry.
2005-05-25gas/Jan Beulich6-8/+31
2005-05-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (dot_radix): Rewrite. gas/testsuite/ 2005-05-25 Jan Beulich <jbeulich@novell.com> * gas/ia64/radix.s: New. * gas/ia64/radix.l: New. * gas/ia64/ia64.exp: Run new test.
2005-05-25gas/Jan Beulich2-10/+8
2005-05-25 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number and next_slot_frag. (alloc_record): Remove references to next_slot_number and next_slot_frag. (emit_one_bundle): Likewise.
2005-05-25gas/testsuite/Jan Beulich2-3/+8
2005-05-25 Jan Beulich <jbeulich@novell.com> * gas/i386/intelok.d: Account for 32-bit displacements being shown in hex. opcodes/ 2005-05-25 Jan Beulich <jbeulich@novell.com> * i386-dis.c (OP_E): In Intel mode, display 32-bit displacements in hex (but retain it being displayed as signed). Remove redundant checks. Add handling of displacements for 16-bit addressing in Intel mode.
2005-05-252005-05-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+7
* gas/elf/group0b.d: Updated. * gas/elf/group1b.d: Likewise.
2005-05-22Fix typoNick Clifton2-1/+6
2005-05-22 * config/tc-hppa.c (pa_ip): Promote architecture from PA 1.0 to 1.1Dave Anglin2-14/+17
only if an instruction match is found.
2005-05-20 * config/tc-xtensa.c (xg_assemble_vliw_tokens): Change subtractionBob Wilson2-1/+6
to addition in argument to xtensa_dwarf2_emit_insn.
2005-05-19 * bfd/Makefile.am, binutils/Makefile.am, etc/Makefile.inZack Weinberg3-0/+7
* gas/Makefile.am: Have 'all' depend on 'info'. * ld/Makefile.am: Have 'all' depend on 'info' and 'ld.1'. * bfd/Makefile.in, binutils/Makefile.in, gas/Makefile.in * ld/Makefile.in: Regenerate.
2005-05-19 * config/tc-ppc.c (ppc_force_relocation): Add BFD_RELOC_24_PLT_PCREL.Alan Modra2-0/+5
2005-05-19 * config/tc-ppc.c (parse_cpu): Handle "-mpower5".Alan Modra3-1/+21
(md_show_usage): Document it. (ppc_setup_opcodes): Insert POWER5 mnemonics. * doc/c-ppc.texi (PowerPC-Opts): Document "-mpower5".
2005-05-19gas/Jan Beulich7-1/+62
2005-05-19 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (dot_endp): Don't use global symbol for unwind relocations in unwind section. gas/testsuite/ 2005-05-19 Jan Beulich <jbeulich@novell.com> * gas/ia64/reloc-uw.s: New. * gas/ia64/reloc-uw.d: New. * gas/ia64/reloc-uw-ilp32.d: New. * gas/ia64/ia64.exp: Run new test.
2005-05-18(md_apply_fix3): Only use the insertion routine if one exists.Nick Clifton2-3/+11
Ignore any error messages it may produce, just allow it to perform the insertion.
2005-05-18gas/testsuite/Jan Beulich2-1/+5
2005-05-18 Jan Beulich <jbeulich@novell.com> * gas/all/altmacro.s: Parenthesize operand of %.
2005-05-18include/elf:Zack Weinberg54-11522/+11501
* arm.h: Import complete list of official relocation names and numbers from AAELF. Define FAKE_RELOCs for old names. Remove a few old names no longer used anywhere. bfd: * elf32-arm.c: Wherever possible, use official reloc names from AAELF. (elf32_arm_howto_table, elf32_arm_tls_gd32_howto) (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto) (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto) (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto) (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel) (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1, elf32_arm_howto_table_2, and elf32_arm_howto_table_3. Add many new relocations from AAELF. (elf32_arm_howto_from_type): Update to match. (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24, R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8, R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY. (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type. (elf32_arm_final_link_relocate): Add support for R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove case entries redundant with default. * reloc.c: Reorganize ARM relocations. Add Thumb assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8, BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE. Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7, BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25. Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY. * bfd-in2.h, libbfd.h: Regenerate. opcodes: * arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit instructions. Adjust disassembly of some opcodes to match unified syntax. (thumb32_opcodes): New table. (print_insn_thumb): Rename print_insn_thumb16; don't handle two-halfword branches here. (print_insn_thumb32): New function. (print_insn): Choose among print_insn_arm, print_insn_thumb16, and print_insn_thumb32. Be consistent about order of halfwords when printing 32-bit instructions. gas: * hash.c (hash_lookup): Add len parameter. All callers changed. (hash_find_n): New interface. * hash.h: Prototype hash_find_n. * sb.c: Include as.h. (scrub_from_sb, sb_to_scrub, scrub_position): New statics. (sb_scrub_and_add_sb): New interface. * sb.h: Prototype sb_scrub_and_add_sb. * input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb. * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove reference to BFD_RELOC_ARM_GOT12 which is never generated. * config/tc-arm.c: Rewrite, adding Thumb-2 support. gas/testsuite: * gas/arm/arm.exp: Convert all existing "gas_test" tests to "run_dump_test" tests. Run more tests unconditionally. Run new tests. * gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s * gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s * gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s: Adjust to work as a dump test. * gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d * gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d * gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d: New files. * gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for diagnostics that don't happen in the first pass anymore. * gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l * gas/arm/vfp-bad.l: Update expected diagnostics. * gas/arm/pic.d: Update expected reloc name. * gas/arm/thumbv6.d: CPY no longer appears in disassembly. * gas/arm/r15-bad.s: Avoid two-argument mul. * gas/arm/req.s: Adjust comments. * gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate use of PC. * gas/arm/macro-1.d, gas/arm/macro1.s * gas/arm/t16-bad.l, gas/arm/t16-bad.s * gas/arm/tcompat.d, gas/arm/tcompat.s * gas/arm/tcompat2.d, gas/arm/tcompat2.s * gas/arm/thumb32.d, gas/arm/thumb32.s New test pair. ld/testsuite: * ld-arm/mixed-app.d: Adjust expected disassembly a little.
2005-05-17binutils/Daniel Jacobowitz3-2/+9
* doc/Makefile.am (config.texi): Don't use $<. * doc/Makefile.in: Regenerated. ld/ * Makefile.am (ldver.texi): Don't use $<. * Makefile.in: Regenerated. gas/ * doc/Makefile.am (gasver.texi): Don't use $<. * doc/Makefile.in: Regenerated.
2005-05-17Adfd entry for patch to symbols.c that was accidentally omitted.Nick Clifton1-0/+8
2005-05-17gas/Jan Beulich5-96/+99
2005-05-17 Jan Beulich <jbeulich@novell.com> * read.c (_find_end_of_line): New. (find_end_of_line): New. (HANDLE_CONDITIONAL_ASSEMBLY): Use it. (read_a_source_file): Use it. (s_globl): Use it. (s_macro): Use it. (get_line_sb): Use it. (s_errwarn): Replace discard_rest_of_line by ignore_rest_of_line. (s_comm_internal): Likewise. (s_lsym): Likewise. (s_macro): Likewise. (s_ignore): Use ignore_rest_of_line. * read.h (find_end_of_line): Prototype. (discard_rest_of_line): Remove prototype. #define to ignore_rest_of_line. gas/testsuite/ 2005-05-17 Jan Beulich <jbeulich@novell.com> * gas/mmix/err-byte1.s: Adjust expected error text on line 10.
2005-05-17* config/tc-v850,h (TC_FIX_TYPE): Define. (TC_INIT_FIX_TYPE): Define.Nick Clifton7-18/+83
* config/tc-v850.c (md_assemble): When creating a fix record the operand in the tc_fix_data field. (md_apply_fix3): When applying a resolved fix use the operand's insertion procedure to store the value, if the operand has been recorded. * gas/v850/split-lo16.s: Add test for a lo() pseudo reloc corrupting an ld.w instruction. * gas/v850/split-lo16.d: Add expected, correct (ie not corrupt) output.
2005-05-15./Daniel Jacobowitz3-4/+10
* ylwrap: Import from Automake 1.9.5. binutils/ * acinclude.m4: Remove obsolete code. * configure.in: Update AC_PREREQ. * doc/Makefile.am (binutils_TEXINFOS): Define. (config.texi): Depend on distributed files instead of built files. (binutils.dvi, binutils.info): Remove unnecessary rules. (DISTCLEANFILES): Remove. (install-data-local): Renamed from install. (info-local): Renamed from info. * Makefile.in, aclocal.m4, config.in, configure, doc/Makefile.in: Regenerated. gas/ * Makefile.am (m68k-parse.c, itbl-parse.c): Update ylwrap invocation. * Makefile.in: Regenerated. ld/ * Makefile.am (AM_MAKEINFOFLAGS): Define. (TEXI2DVI): Define. (ldver.texi): Depend on distributed files instead of built files. (ld.info): Include $(srcdir) in the rule target. Remove actions. (ld.dvi): Remove actions. (MAINTAINERCLEANFILES): Add configdoc.texi. (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in. (install-data-local): Renamed from install. (Makefile): Remove explicit dependency. * acinclude.m4: Remove obsolete code. * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL. * Makefile.in, aclocal.m4, config.in, configure: Regenerated. gdb/ * Makefile.in (.y.c): Update ylwrap invocation.
2005-05-13 * config/tc-xtensa.c (xtensa_insnbuf_set_operand): Clarify errorBob Wilson2-9/+19
message. (xtensa_mark_zcl_first_insns): Fix incorrect nesting of conditional for handling RELAX_CHECK_ALIGN_NEXT_OPCODE.
2005-05-11 * config/tc-ppc.c (md_apply_fix3): Allow pcrel forms of BFD_RELOC_16,Alan Modra2-6/+35
BFD_RELOC_LO16, BFD_RELOC_HI16 and BFD_RELOC_HI16_S.
2005-05-10gas/Michael Matz5-4/+28
* frags.c (frag_grow): Don't be too greedy in allocating memory. * config/tc-hppa.c (pa_block): Check arguments to .block[z]. gas/testsuite/ * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for .block.
2005-05-10 PR binutils/886Hans-Peter Nilsson2-58/+66
* config/tc-mmix.c (mmix_handle_mmixal): Rearrange slightly. Handle label-without-colon before ordinary dot-pseudo as an ordinary label. Don't leak memory for label-without-colon alone on a line. Don't mmixal-munge operands for dot-pseudos.
2005-05-10 * gas/mmix/relax2.s: Drop ":" off label definitions.Hans-Peter Nilsson2-7/+17
2005-05-10gas/Jan Beulich2-23/+24
2005-05-10 Jan Beulich <jbeulich@novell.com> * macro.c (get_any_string): Remove the two last parameters. Replace references to the former expand parameter by using macro_alternate. Simplify loop condition for checking for end-of-string. (get_string): Remove redunant call to sb_skip_white. (do_formals): Remove two last arguments to get_any_string. (macro_expand): Likewise. (expand_irp): Likewise.
2005-05-10gas/Jan Beulich2-4/+14
2005-05-10 Jan Beulich <jbeulich@novell.com> * read.c (s_macro): Move local variable 'local' to smaller scope. Call sb_kill on it when done.
2005-05-09gas/Jan Beulich7-10/+27
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (optimize_disp): Discard displacement entirely when zero and not required by encoding constraints. gas/testsuite/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * gas/i386/tlsd.[sd]: Adjust to not assume zero displacement will actually be present in memory addressing. * gas/i386/tlspic.[sd]: Likewise.
2005-05-092005-05-09 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu5-2/+42
PR 936 * config/tc-sh64.c (sh64_fake_label): New. * config/tc-sh64.h (TC_FAKE_LABEL): New. * doc/internals.texi (TC_FAKE_LABEL): Document. * write.c (TC_FAKE_LABEL): New. (adjust_reloc_syms): Use it. (write_object_file): Likewise.
2005-05-09gas/Jan Beulich2-3/+9
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Disallow use of prefix separator and comma in Intel mode. include/opcode/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * i386.h (i386_optab): Add ht and hnt.
2005-05-09gas/Jan Beulich2-9/+32
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode names to match ABI. Add more registers for 32-bit and 64-bit modes. Make name array static and const. Adjust lookup to account for NULL entries (standing for unused register numbers).
2005-05-09gas/Jan Beulich2-5/+22
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Consider all matching instructions when checking for string instruction after string-only prefix.
2005-05-07gas/H.J. Lu6-1/+66
2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 940 * config/tc-ia64.c (start_unwind_section): Properly check comdat group with SHF_GROUP. gas/testsuite/ 2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 940 * gas/ia64/group-2.d: New. * gas/ia64/group-2.s: New. * gas/ia64/ia64.exp: Add "group-2".
2005-05-07gas/testsuite/H.J. Lu4-0/+27
2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 843 * gas/i386/i386.exp: Add x86-64-branch. * gas/i386/x86-64-branch.d: New. * gas/i386/x86-64-branch.s: New. opcodes/ 2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 843 * i386-dis.c (branch_v_mode): New. (indirEv): Use branch_v_mode instead of v_mode. (OP_E): Handle branch_v_mode.
2005-05-06 * doc/c-xtensa.texi (Literal Directive): Spelling correction.Bob Wilson2-1/+5
2005-05-06 * config/tc-xtensa.c: Remove excess whitespace.Bob Wilson6-144/+152
* config/tc-xtensa.h: Likewise. * config/xtensa-istack.h: Likewise. * config/xtensa-relax.c: Likewise. * config/xtensa-relax.h: Likewise.
2005-05-06Correct changelog snafu.Daniel Jacobowitz1-0/+8
2005-05-06Fix formatting of comments.Nick Clifton3-43/+48
2005-05-06Move testsuite specific entries from gas/ChangeLog to gas/testsuite/ChangeLogNick Clifton2-41/+50
2005-05-06gas/Jan Beulich3-0/+16
2005-05-06 Jan Beulich <jbeulich@novell.com> * sb.h (sb_add_buffer): Reintroduce. * sb.c (sb_add_buffer): Likewise.
2005-05-06gas/Jan Beulich11-71/+235
2005-05-06 Jan Beulich <jbeulich@novell.com> * macro.c (new_formal, del_formal): New. (do_formals): Use new_formal. Check for and parse qualifier. Warn if required argument has default value. Stop looking for more formal when there was a vararg one. (macro_expand_body): Use new_formal and del_formal. (macro_expand): Likewise. Initialize local variable err. Don't return immediately when encountering an error. Warn when keyword argument already had a value assigned. Eliminate duplicate clearing of argument value. When current positional argument matches parameter of vararg type, assign to it all the remaining arguments. Issue error when required parameter does not have value. (free_macro): Use del_formal. (expand_irp): Initialize formal type. Free buffers associated with formal prior to returning. * macro.h (struct formal_struct): Add new field 'type' with new enumeration type 'formal_type'. * doc/as.texinfo: Document macro parameter qualifiers. * NEWS: Mention new functionality. gas/testsuite/ 2005-05-06 Jan Beulich <jbeulich@novell.com> * gas/macros/badarg.s: Add check for bad qualifier specification. * gas/macros/badarg.l: Adjust. * gas/macros/vararg.[sd]: New. * gas/macros/macros.exp: Run new test.
2005-05-06gas/Jan Beulich8-5/+91
2005-05-06 Jan Beulich <jbeulich@novell.com> * cond.c (s_ifb): New. * read.c (potable): Add s_ifb as handler for .ifb and .ifnb. * read.h (s_ifb): Prototype. * doc/as.texinfo: Document .ifb and .ifnb. gas/testsuite/ 2005-05-06 Jan Beulich <jbeulich@novell.com> * gas/all/cond.s: Also test .ifb/.ifnb. * gas/all/cond.d: Adjust.