aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2005-03-27 * config/obj-coff.c (coff_frob_symbol): When crashing because of aIan Lance Taylor2-1/+7
bad C_EFCN symbol, print its name.
2005-03-26 * config/tc-xtensa.c (use_longcalls): Delete.Bob Wilson3-68/+68
(xg_symbolic_immeds_fit): Check for direct calls and return TRUE if the use_longcalls flag is set. Do this before checking the segment. (xg_expand_assembly_insn): Rearrange to use new do_expand flag. Never expand direct calls at this point. (xtensa_set_frag_assembly_state): Set use_longcalls flag. (xtensa_find_unmarked_state_frags): Likewise. (md_assemble): Do not disable longcalls by setting is_specific_opcode. (xg_assemble_vliw_tokens): Switch frags when use_longcalls changes. (convert_frag_immed): Remove unnecessary check of is_specific_opcode. * config/tc-xtensa.h (xtensa_frag_type): Add use_longcalls flag.
2005-03-25 * config/tc-mmix.c, config/tc-mmix.h: Convert to ISO C90.Hans-Peter Nilsson3-140/+86
2005-03-25 * config/tc-cris.h: Convert to ISO C90.Hans-Peter Nilsson3-186/+115
* config/tc-cris.c: Ditto. (md_estimate_size_before_relax): Remove obsolete comment for parameter "segment_type". (md_begin): Document reason for cast of hash_insert argument. (md_atof): Correct type of parameter "type".
2005-03-24Convert unmaintained files over to ISO-C90 and fix formatting.Nick Clifton57-12209/+10052
2005-03-24 * gas/cris/range-err-1.s: Adjust expected messages for hosts withHans-Peter Nilsson2-2/+7
64-bit longs.
2005-03-23* config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's bindingJim Blandy2-1/+6
attributes properly.
2005-03-23Accept any C library to accompany a GNU Linux implementation, not just the GNUNick Clifton4-12/+20
C library.
2005-03-23Convert to ISO C90 formattingNick Clifton5-1793/+1639
2005-03-22gas/testsuite/Alan Modra2-14/+18
* gas/elf/section5.s: Don't start directives in first column. ld/testsuite/ * ld-elf/tbss.s: Don't start directives in first column. * ld-scripts/weak1.s: Likewise. * ld-scripts/weak2.s: Likewise. * ld-undefined/weak-undef.s: Likewise. * ld-undefined/undefined.exp: Enable tests for hppa-elf.
2005-03-21* config/tc-mips.c (mips_frob_file): Sort BFD_RELOC_MIPS16_LO16Maciej W. Rozycki2-2/+12
relocations correctly as well. (mips_fix_adjustable): Don't make BFD_RELOC_MIPS16_LO16 relocations in mergeable sections section-relative either.
2005-03-21 * config/tc-xtensa.c (md_apply_fix3): Recognize XTENSA_PLT relocations.Bob Wilson2-0/+5
2005-03-21(sh_elf_final_processing): Fix compile time warning by providing a prototypeNick Clifton3-1/+14
for sh_symbian_find_elf_flags.
2005-03-21Fix typo introduced byprevious delta.Nick Clifton2-1/+6
2005-03-21Update instructions that use the "never" value in the conditional field to useNick Clifton3-6/+13
"le" instead. This is so that the disassembler will disassemble them.
2005-03-21 * configure.tgt: Handle setting of bfd_gas for fmt=multi targetsAlan Modra2-17/+18
along with other formats that set bfd_gas. Remove unnecessary setting of bfd_gas. Delete strongarm cases in generic_target switch.
2005-03-21 PR gas/780Alan Modra2-36/+54
* config/tc-m68k.c (TRUNC, SEXT): Define. (issbyte, isubyte, issword, isuword, isbyte, isword): Use the above. (m68k_ip): Truncate or sign extend expressions as appropriate. (get_num): Likewise. (md_apply_fix3): Use SEXT.
2005-03-21 * Makefile.am (OBJ_FORMAT_CFILES): Prune config/obj-vms.c.Alan Modra6-189/+358
(OBJ_FORMAT_HFILES): Prune config/obj-vms.h. (obj-vms.o): Delete rule. Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * doc/Makefile.in: Regenerate. * po/POTFILES.in: Regenerate.
2005-03-18Add support for generating PLT lookups for the ColdFire.Nick Clifton2-0/+7
2005-03-17 * config/tc-xtensa.c (xg_apply_tentative_value): Rename toBob Wilson3-187/+176
xg_apply_fix_value and return a value to indicate success. (md_pcrel_from): Skip check of fx_done. Return 0 if not PC-relative. (xtensa_force_relocation): Remove checks for VTABLE relocs. (xtensa_validate_fix_sub): New. (xtensa_fix_adjustable): Remove check for external or weak symbols. (tc_gen_reloc): Move code to handle difference of symbols and code to apply tentative fix values to ... (md_apply_fix3): ...here. Enable standard overflow checks for simple 8, 16, and 32 bit relocations. Apply fixes for slot-specific relocations when linkrelax flag is not set. * config/tc-xtensa.h (xtensa_validate_fix_sub): Add prototype. (TC_FORCE_RELOCATION_SUB_SAME, TC_VALIDATE_FIX_SUB): Define.
2005-03-17gas/Jan Beulich16-558/+1007
2005-03-17 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (i386_scale): Beautify error message. (Intel syntax comments): Update. (struct intel_parser_s): Add fields in_offset, in_bracket, and next_operand. (intel_e04_1, intel_e05_1, intel_e05_1, intel_e09_1, intel_e10_1): Remove declarations. (intel_bracket_expr): Declare. (i386_intel_operand): Initialize new intel_parser fields. Wrap most of the function body in a loop allowing to split an operand into two. Replace calls to malloc and checks of it returning non-NULL with calls to xmalloc/xstrdup. (intel_expr): SHORT no longer handled here. Add comment indicating comparison ops need implementation. (intel_e04, intel_e04_1): Combine, replace recursion with loop. Check right operand of - does not specify a register when parsing the address of a memory reference. (intel_e05, intel_e05_1): Combine, replace recursion with loop. Check operands do not specify a register when parsing the address of a memory reference. (intel_e06, intel_e06_1): Likewise. (intel_e09, intel_e09_1): Combine, replace recursion with loop. Also handle SHORT as well as unary + and -. Don't accept : except for segment overrides or in direct far jump/call insns. (intel_brack_expr): New. (intel_e10, intel_e10_1): Combine, replace recursion with loop. Use intel_brack_expr. (intel_e11): Replace chain of if/else-if by switch, alloing fall- through in certain cases. Use intel_brack_expr. Add new diagnostics. Allow symbolic constants as register scale value. (intel_get_token): Replace call to malloc and check of return value with call to xmalloc. Change handling for FLAT to match MASM's. (intel_putback_token): Don't try to back up/free current token if that is T_NIL. gas/testsuite/ 2005-03-17 Jan Beulich <jbeulich@novell.com> * gas/i386/intel.d: Add stderr directive. * gas/i386/intel.e: New. * gas/i386/intel16.d: Add stderr directive. Adjust for changed source. * gas/i386/intel16.e: New. * gas/i386/intel16.s: Add instances of addressing forms with base and index specified in reverse order. * gas/i386/intelbad.l: Adjust for changed source. * gas/i386/intelbad.s: Add more operand forms to check. * gas/i386/intelok.d: Remove -r from objdump options. Add stderr directive. Adjust for changed source. * gas/i386/intelok.e: New. * gas/i386/intelok.s: Define MASM constants byte, word, etc. Add more operand forms to check. * gas/i386/x86_64.d: Add stderr directive. * gas/i386/x86_64.e: New. * gas/i386/x86_64.s: Adjust for parser changes.
2005-03-16(gas_cgen_parse_operand): Copy opinfo parameter into a local variable in caseNick Clifton2-2/+10
it is clobbered by the setjmp.
2005-03-16 * configure.tgt: Set emulation for arm-*-eabi*.Daniel Jacobowitz6-3/+24
* config/tc-arm.c (meabi_flags): Check EABI_DEFAULT. * config/te-armeabi.h: New file. * config/te-armlinuxeabi.h (EABI_DEFAULT): Define. * config/te-symbian.h: Include "te-armeabi.h".
2005-03-16Fix typo introduced by previous deltaNick Clifton1-0/+2
2005-03-16Rename switch to enable/disable -Werror to --enable-werror/--disable-werrorNick Clifton3-13/+13
for compatibility with gcc.
2005-03-16Enable -Werror by defaultNick Clifton3-68/+172
2005-03-16Convert to ISO C90 formattingNick Clifton3-1247/+1017
2005-03-15 * config/tc-arm.c (do_mla): Rename to do_mlas, take secondZack Weinberg8-2/+608
is_mls parameter; do not diagnose Rm==Rd when is_mls. (do_mla, do_mls, five_bit_unsigned_immediate, bfci_lsb_and_width) (do_bfc, do_bfi, do_bfx, do_rbit, do_mov16, do_ldsttv4): New functions. (insns): Add ARMv6T2 instructions: bfc bfi mls movw movt rbit sbfx ubfx ldrht ldrsht ldrsbt strht. (arm_archs): Add V6T2 variants. testsuite: * gas/arm/archv6t2.d, gas/arm/archv6t2.s: New dump test. * gas/arm/archv6t2-bad.l, gas/arm/archv6t2-bad.l: New errors test. * gas/arm/arm.exp: Run them.
2005-03-15Add cutoff for changes in 2.16 releaseNick Clifton2-0/+6
2005-03-15gas/Jan Beulich2-19/+20
2005-03-15 Jan Beulich <jbeulich@novell.com> * expr.c (operand): Merge handling of unary + into that for unary -, !, and ~.
2005-03-15==> ChangeLog <==Eric Christopher13-6/+111
2005-03-14 Eric Christopher <echristo@redhat.com> * config/tc-mips.c: Include dw2gencfi.h. (mips_cfi_frame_initial_instructions): New. * config/tc-mips.h (TARGET_USE_CFIPOP): Define. (tc_cfi_frame_initial_instructions): Ditto. (DWARF2_DEFAULT_RETURN_COLUMN): Ditto. (DWARF2_CIE_DATA_ALIGNMENT): Ditto. * Makefile.am: Update dependencies. * Makefile.in: Regenerate. ==> testsuite/ChangeLog <== 2005-03-14 Eric Christopher <echristo@redhat.com> * gas/cfi/cfi-mips-1.d, gas/cfi/cfi-mips-1.s: New dump test. * gas/cfi/cfi.exp: Run it. * gas/cfi/cfi-common-1.d: Update. * gas/cfi/cfi-common-2.d: Ditto. * gas/cfi/cfi-common-3.d: Ditto. * gas/cfi/cfi-common-4.d: Ditto.
2005-03-15Commit new Spanish translation.Alan Modra2-3192/+4565
2005-03-14Commit new Turkish translation.Alan Modra2-3124/+4569
2005-03-12gas:Zack Weinberg6-1/+47
* config/tc-arm.c (tinsns): Add ARMv6K instructions sev, wfe, wfi, yield. opcodes: * arm-dis.c (thumb_opcodes): Add ARMv6K instructions nop, sev, wfe, wfi, yield. gas/testsuite: * gas/arm/thumbv6k.d, gas/arm/thumbv6k.s: New dump test. * gas/arm/arm.exp: Run it.
2005-03-11 * config-gas.com: Mark vax-vms as obsolete.Daniel Jacobowitz8-5715/+86
* configure.in: Remove fmt=vms support. * config.in: Regenerate. * configure: Regenerate. * config/obj-vms.h, config/obj-vms.c, config/vms-conf.h: Remove.
2005-03-11 * config/tc-xtensa.c (finish_vinsn): Include the last instruction slotBob Wilson3-3/+11
when checking if xg_resolve_literals needs to be called. * config/tc-xtensa.h: Fix spelling typo in a comment.
2005-03-10 * gas/ppc/e500.d: Fix encoding of efscfd.Aldy Hernandez2-1/+5
2005-03-10opcodes/Alan Modra3-8/+30
* ppc-opc.c (insert_sprg, extract_sprg): New Functions. (powerpc_operands <SPRG>): Call the above. Bit field is 5 bits. (SPRG_MASK): Delete. (XSPRG_MASK): Mask off extra bits now part of sprg field. (powerpc_opcodes): Asjust mfsprg and mtsprg to suit new mask. Move mfsprg4..7 after msprg and consolidate. gas/testsuite * gas/ppc/booke.s: Add new m[t,f]sprg testcases. * gas/ppc/booke.d: Likewise.
2005-03-10gas/Jan Beulich3-23/+11
2005-03-10 Jan Beulich <jbeulich@novell.com> * config/tc-tic54x.h (tic54x_macro_info): Change parameter type. * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand- crafted structure declarations with the types from macro.h.
2005-03-09 * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'Richard Sandiford2-1/+6
for -mno-shared optimization.
2005-03-09 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.Richard Sandiford2-0/+5
(MAX_NOPS): Bump to 4. (mips_fix_vr4130): New variable. (nops_for_vr4130): New function. (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use nops_for_vr4130 if working around VR4130 errata. (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros. (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130. (md_parse_option): Handle them. (md_show_usage): Print them. * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
2005-03-09 * config/tc-mips.c (MAX_VR4130_NOPS, MAX_DELAY_NOPS): New macros.Richard Sandiford5-5/+1105
(MAX_NOPS): Bump to 4. (mips_fix_vr4130): New variable. (nops_for_vr4130): New function. (nops_for_insn): Use MAX_DELAY_NOPS rather than MAX_NOPS. Use nops_for_vr4130 if working around VR4130 errata. (OPTION_FIX_VR4130, OPTION_NO_FIX_VR4130): New macros. (md_longopts): Add -mfix-vr4130 and -mno-fix-vr4130. (md_parse_option): Handle them. (md_show_usage): Print them. * doc/c-mips.texi: Document -mfix-vr4130 and -mno-fix-vr4130.
2005-03-09 * config/tc-mips.c (append_insn): Remove cop_interlocks test fromRichard Sandiford8-310/+411
branch delay code.
2005-03-09 * config/tc-mips.h (mips_flush_pending_output): Delete.Richard Sandiford3-118/+116
(mips_emit_delays): Declare. (md_flush_pending_output): Use mips_emit_delays. * config/tc-mips.c (mips_no_prev_insn): Remove parameter; always forget the previous instructions. (md_begin, append_insn, md_parse_option): Update callers. (mips_emit_delay): Remove parameter. Move INSNS != 0 code to start_noreorder. (mips_align, s_change_sec, s_cons, s_float_cons, s_gpword) (s_gpdword): Update callers. (start_noreorder, end_noreorder): New functions. (macro, macro2, mips16_macro, s_mipsset): Use them instead of manipulating mips_opts or prev_nop_frag directly. (mips_flush_pending_output): Delete.
2005-03-09 * config/tc-mips.c (mips_move_labels): New function, taken from...Richard Sandiford2-27/+27
(append_insn, mips_emit_delays): ...here.
2005-03-09 * config/tc-mips.c (MAX_NOPS): New macro.Richard Sandiford2-411/+348
(history): Resize to 1 + MAX_NOPS. (fix_vr4120_class): New enumeration. (vr4120_conflicts): New variable. (init_vr4120_conflicts): New function. (md_begin): Call it. (insn_uses_reg): Constify first argument. (classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence) (nops_for_insn_or_target): New functions. (append_insn): Use the new nops_for_* functions instead of inline delay checks. Generalize prev_nop_frag handling to handle an arbitrary history length. Insert nops into the history buffer once the number of nops in prev_nop_frag is fixed. (emit_delays): Use nops_for_insn instead of inline delay checks.
2005-03-09 * config/tc-mips.c (append_insn): Remove now-redundant nops != 0Richard Sandiford2-8/+5
check from branch delay code. Remove unnecessary check for branches.
2005-03-09 * config/tc-mips.c (dummy_opcode): Delete.Richard Sandiford2-312/+269
(nop_insn, mips16_nop_insn): New variables. (NOP_INSN): New macro. (insn_length, create_insn, install_insn, move_insn, add_fixed_insn) (add_relaxed_insn, insert_into_history, emit_nop): New functions. (md_begin): Initialize nop_insn and mips16_nop_insn. (append_insn): Use the new emit_nop function to add nops, recording them in the history buffer. Use add_fixed_insn or add_relaxed_insn to reserve room for the instruction and install_insn to install the final form. Use insert_into_history to record the instruction in the history buffer. Use move_insn to do delay slot filling. (mips_emit_delays): Use add_fixed_insn instead of the emit_nop macro. (macro_build, mips16_macro_build, macro_build_lui, mips_ip) (mips16_ip): Use create_insn to initialize mips_cl_insns.
2005-03-09 * config/tc-mips.c (INSERT_BITS, EXTRACT_BITS, INSERT_OPERAND)Richard Sandiford2-203/+176
(EXTRACT_OPERAND, MIPS16_INSERT_OPERAND, MIPS16_EXTRACT_OPERAND): New. (insn_uses_reg, reg_needs_delay, append_insn, macro_build) (mips16_macro_build, macro_build_lui, mips16_macro, mips_ip) (mips16_ip): Use the new macros instead of explicit masks and shifts.
2005-03-09 * config/tc-mips.c (mips_cl_insn): Replace the valid_p, delay_slot_pRichard Sandiford2-40/+19
and extended_p fields with a single fixed_p field. (append_insn, mips_no_prev_insn): Adjust accordingly.