aboutsummaryrefslogtreecommitdiff
path: root/gas/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2005-10-252005-10-25 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+5
* write.c (adjust_reloc_syms): Undo the change made on 2005-04-26 to allow local symbol set to undefined symbol.
2005-10-252005-10-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* Makefile.am (bfin-parse.tab.h): Removed. (bfin-parse.h): Added. * Makefile.in: Regenerated.
2005-10-25RegenerateAlan Modra1-0/+5
2005-10-24 * config/tc-bfin.c (Expr_Node_Gen_Reloc): If have symbol + constant,Bernd Schmidt1-0/+6
make a single reloc with an offset rather than a stack. * config/tc-bfin.h (MD_APPLY_SYM_VALUE): Define to 0.
2005-10-24gas/ChangeLog:Alexandre Oliva1-0/+37
* read.c (potable): Add weakref. (s_weakref): New. * read.h (s_weakref): Declare. * struc-symbol.h (struct symbol): Add sy_weakrefr and sy_weakrefd. * symbols.c (colon): Clear weakrefr. (symbol_find_exact): Rename to, and reimplement in terms of... (symbol_find_exact_noref): ... new function. (symbol_find): Likewise... (symbol_find_noref): ... ditto. (resolve_symbol_value): Resolve weakrefr without setting their values. (S_SET_WEAK): Call hook. (S_GET_VALUE): Follow weakref link. (S_SET_VALUE): Clear weakrefr. (S_IS_WEAK): Follow weakref link. (S_IS_WEAKREFR, S_SET_WEAKREFR, S_CLEAR_WEAKREFR): New. (S_IS_WEAKREFD, S_SET_WEAKREFD, S_CLEAR_WEAKREFD): New. (symbol_set_value_expression, symbol_set_frag): Clear weakrefr. (symbol_mark_used): Follow weakref link. (print_symbol_value_1): Print weak, weakrefr and weakrefd. * symbols.h (symbol_find_noref, symbol_find_exact_noref): Declare. (S_IS_WEAKREFR, S_SET_WEAKREFR, S_CLEAR_WEAKREFR): Declare. (S_IS_WEAKREFD, S_SET_WEAKREFD, S_CLEAR_WEAKREFD): Declare. * write.c (adust_reloc_syms): Follow weakref link. Do not complain if target is undefined. (write_object_file): Likewise. Remove weakrefr symbols. Drop unreferenced weakrefd symbols. * config/obj-coff.c (obj_frob_symbol): Do not force WEAKREFD symbols EXTERNAL. (pecoff_obj_set_weak_hook, pecoff_obj_clear_weak_hook): New. * config/obj-coff.h (obj_set_weak_hook, obj_clear_weak_hook): Define. * doc/as.texinfo: Document weakref. * doc/internals.texi: Document new struct members, internal functions and hooks. gas/testsuite/ChangeLog: * gas/all/weakref1.s, gas/all/weakref1.d: New test. * gas/all/weakref1g.d, gas/all/weakref1l.d: New tests. * gas/all/weakref1u.d, gas/all/weakref1w.d: New tests. * gas/all/weakref2.s, gas/all/weakref3.s: New tests. * gas/all/gas.exp: Run new tests.
2005-10-24bfd/Jie Zhang1-0/+9
* elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness warning. gas/ * Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h. (EXTRA_DIST): Add bfin-parse.h and bfin-lex.c. * Makefile.in: Regenerate. * config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h. * config/tc-bfin.c (md_chars_to_number): Change the type of first argument from unsigned char * to char * to remove signedness warnings.
2005-10-24include/opcode/Jan Beulich1-0/+7
2005-10-24 Jan Beulich <jbeulich@novell.com> * ia64.h (enum ia64_opnd): Move memory operand out of set of indirect operands. bfd/ 2005-10-24 Jan Beulich <jbeulich@novell.com> * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of set of indirect operands. gas/ 2005-10-24 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (enum reg_symbol): Delete IND_MEM. (dot_rot): Change type of num_* variables. Check for positive count. (ia64_optimize_expr): Re-structure. (md_operand): Check for general register. gas/testsuite/ 2005-10-24 Jan Beulich <jbeulich@novell.com> * gas/ia64/index.[sl]: New. * gas/ia64/rotX.[sl]: New. * gas/ia64/ia64.exp: Run new tests. opcodes/ 2005-10-24 Jan Beulich <jbeulich@novell.com> * ia64-asmtab.c: Regenerate.
2005-10-24gas/Jan Beulich1-0/+7
2005-10-24 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (declare_register): Call symbol_create. (md_begin): Remove local variables total, ar_base, and cr_base. Start loops for registers at their respective first one. Don't update md.regsym for alias names. Generate alias name tp for r13. gas/testsuite/ 2005-10-24 Jan Beulich <jbeulich@novell.com> * gas/ia64/regs.pl: Also check tp alias of r13. * gas/ia64/regs.s: Regenerate. * gas/ia64/regs.d: Adjust.
2005-10-22* config/tc-m32c.c (md_cgen_lookup_reloc): Add more relocs. PrintDJ Delorie1-0/+5
names unstead of numbers.
2005-10-19* config/tc-mips.c (append_insn): Convert MIPS16 jr/jalr jumpsDavid Ung1-0/+6
into jrc/jalrc versions if ISA_MIPS32+ and not doing the swap, hence avoiding to emit a nop. * gas/mips/mips.exp: Run new test. * gas/testsuite/gas/mips/mips16e-jrc.s: New test for converting jalr/jr to the compact jalrc/jrc instructions. * gas/testsuite/gas/mips/mips16e-jrc.d: New.
2005-10-19 * config/tc-bfin.c (md_begin): Let the lex_type of '(' beJie Zhang1-0/+9
LEX_BEGIN_NAME. (bfin_start_line_hook): Remove the workaround for LSETUP(. (bfin_name_is_register): Remove the workarounds for LSETUP( and SAA(. (bfin_start_label): Ditto.
2005-10-18 * config/tc-xtensa.c (xtensa_end_directive): RestoreBob Wilson1-0/+5
default_lit_sections regardless of use_literal_section.
2005-10-18 * Makefile.am (bfin-lex.c): Update ylwrap invocation.Jie Zhang1-0/+5
* Makefile.in: Regenerated.
2005-10-18* doc/as.texinfo (.loc) Fix placement of '@end table'.Nick Clifton1-0/+4
2005-10-17 * config/xtensa-istack.h (TInsn): Replace dwarf2_line_info with anBob Wilson1-0/+12
unsigned line number. Do not include "dwarf2dbg.h". * config/tc-xtensa.c (md_pseudo_table): Remove entry for "loc". (xtensa_dwarf2_directive_loc, xtensa_dwarf2_emit_insn): Delete. (xg_build_to_insn, xg_build_token_insn): Update TInsn uses. (md_assemble): Use as_where instead of dwarf2_where. (xg_assemble_vliw_tokens): Use unsigned line numbers instead of dwarf2_line_infos. Change to call new_logical_line followed by dwarf2_emit_insn.
2005-10-14* doc/as.texinfo (Section): Add missing ']' to .section example.Nick Clifton1-0/+4
2005-10-13 PR binutils/941Dave Anglin1-0/+6
* config/tc-hppa.c (pa_ip): Use as_bad instead of as_fatal when an unknown opcode is found.
2005-10-13 * NEWS: Mention @file.Mark Mitchell1-0/+4
* NEWS: Mention @file.
2005-10-12* config/tc-avr.c: Convert to ISO C90 format. Fix formatting and generallyNick Clifton1-0/+6
tidy up the code. * config/tc-avr.h: Likewise.
2005-10-12gas/Jan Beulich1-2/+10
2005-10-12 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (dot_reg_val): Use expression_and_evaluate. (dot_pred_rel): Likewise. (parse_operand): Likewise. (ia64_unrecognized_line): Likewise. (md_operand): Likewise. gas/testsuite/ 2005-10-12 Jan Beulich <jbeulich@novell.com> * gas/ia64/forward.[sd]: New. * gas/ia64/ia64.exp: Run new test.
2005-10-11This adjusts equate handling byNick Clifton1-0/+62
- allowing true forward references (which will always assume the referenced symbols have at the point of use) through the new .eqv pseudo-op and the new == operator - disallowing changing .equiv-generated equates (so that the protection this provides is both forward and backward) - snapshotting equates when their value gets changed so that previous uses don't get affected by the new value. - allowing expressions in places where absolute expressions (or register names) are needed which were not completely resolvable at the point of their definition but which are fully resolvable at the point of use In addition it fixes PR/288.
2005-10-10 * Makefile.am (EXTRA_DIST): Remove bfin-lex.l and bfin-defs.h.Ian Lance Taylor1-0/+5
* Makefile.in: Regenerate.
2005-10-10* expr.c (operator): Allow "!=" as a synonym for "<>".Nick Clifton1-0/+5
* doc/as.texinfo (Infix Op): Mention "!=".
2005-10-08 * config/tc-hppa.c (strict): Don't initialize. Update comment.Dave Anglin1-0/+6
(pa_ip): Promote from PA 1.0 to 1.1 immediately when 1.1 match is found. Simplify handling of "ma" and "mb" completers. * hppa.h (FLAG_STRICT): Revise comment. (pa_opcode): Revise ordering rules. Add/move strict pa10 variants before corresponding pa11 opcodes. Add strict pa10 register-immediate entries for "fdc".
2005-10-082005-10-08 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+15
bfd/ * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h. (NUM_KNOWN_ATTRIBUTES): Define. (aeabi_attribute, aeabi_attribute_list): Define. (elf32_arm_obj_tdata): Add known_eabi_attributes and other_eabi_attributes. (uleb128_size, is_default_attr, eabi_attr_size, elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int, elf32_arm_add_eabi_attr_compat, copy_eabi_attributes, elf32_arm_merge_eabi_attributes): New functions. (elf32_arm_copy_private_bfd_data): Copy EABI object attributes. (elf32_arm_fake_sections): Handle .ARM.attributes. (elf32_arm_parse_attributes): New function. (elf32_arm_section_from_shdr): Use it. (bfd_elf32_bfd_final_link): Define. gas/ * config/tc-arm.c: Don't provide fallback default for CPU_DEFAULT. (arm_arch_used, thumb_arch_used, selected_cpu, selected_cpu_name): New variables. (arm_cpu_option_table): Add canonical_name. (arm_cpus): Populate canonical_name field. (s_arm_eabi_attribute, s_arm_arch, s_arm_cpu, s_arm_fpu, aeabi_set_public_attributes, arm_md_end): New functions. (md_pseudo_table): Add "cpu", "arch", "fpu" and "eabi_attribute". (md_assemble): Set thumb_arch_used and arm_arch_used. (md_begin): Set defaut cpu if CPU_DEFAULT not defined. * config/tc-arm.h (md_end): Define. * doc/c-arm.texi: Document .cpu, .arch, .fpu and .eabi_attribute. gas/testsuite/ * gas/arm/eabi_attr_1.s: New test. * gas/arm/eabi_attr_1.d: New test. * gas/arm/arm7t.d: Only disassemble code sections. * gas/arm/bignum1.d: Ignore Arm object attribute sections. * gas/arm/mapping.d: Ditto. * gas/arm/unwind.d: Ditto. * gas/elf/section0.d: Ditto. * gas/elf/section1.d: Ditto. * gas/elf/elf.exp: Set target_machine for Arm EABI based targets. * gas/elf/section2.e-armeabi: New file. include/elf/ * arm.h: Add prototypes for BFD object attribute routines. ld/testsuite/ * ld-arm/arm-rel31.d: Ignore Arm object attribute sections. * ld-arm/arm-target1-abs.d: Ditto. * ld-arm/arm-target1-rel.d: Ditto. * ld-arm/arm-target2-abs.d: Ditto. * ld-arm/arm-target2-got-rel.d: Ditto. * ld-arm/arm-target2-rel.d: Ditto.
2005-10-06* config/tc-sh.c (allow_dollar_register_prefix): New variable.Nick Clifton1-0/+11
(parse_reg_without_prefix): New function. (parse_reg): Check for '$' register prefix if --allow-reg-prefix is set. (option md_longopts): Add allow-reg-prefix option. * doc/c-sh.texi: Document --allow-reg-prefix option. * NEWS: Mention the new switch. * gas/sh/basic.exp: Run reg-prefix test. * gas/sh/reg-prefix.s: New * gas/sh/reg-prefix.d: New
2005-10-03Add Sterling Augustine's name to my change on 2005-09-30.Bob Wilson1-1/+2
2005-10-03(Infix Ops): '<' and '>' are not shift operators.Nick Clifton1-0/+5
2005-09-30 * config/tc-xtensa.c (xtensa_frob_label): Disallow labels in bundles.Bob Wilson1-0/+4
2005-09-302005-09-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu1-0/+6
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerated. * aclocal.m4: Likewise.
2005-09-30 * addr2line.c (main): Likewise.Mark Mitchell1-0/+4
* ar.c (main): Likewise. * coffdump.c (main): Likewise. * cxxfilt.c (main): Likewise. * dlltool.c (main): Likewise. * dllwrap.c (main): Likewise. * nlmconv.c (main): Likewise. * nm.c (main): Likewise. * objcopy.c (main): Likewise. * objdump.c (main): Likewise. * readelf.c (main): Likewise. * size.c (main): Likeiwse. * srcconv.c (main): Likewise. * strings.c (main): Likewise. * sysdump.c (main): Likewise. * sysinfo.c (main): Likewise. * windres.c (main): Likewise. * ldmain.c (main): Use expandargv. * gprof.c (main): Use expandargv. * as.c (main): Use expandargv.
2005-09-30gas/Jan Beulich1-0/+5
2005-09-30 Jan Beulich <jbeulich@novell.com> * config/tc-tic4x.c (tic4x_set): Advance input_line_pointer past (removed) comma.
2005-09-30 * Makefile.am: Bfin support.Catherine Moore1-0/+21
* Makefile.in: Regenerated. * aclocal.m4: Regenerated. * configure: Regenerated. * configure.in: Bfin support. * configure.tgt: Bfin support. * config/bfin-aux.h: New file. * config/bfin-defs.h: New file. * config/bfin-lex.l: New file. * config/bfin-parse.y: New file. * config/tc-bfin.c: New file. * config/tc-bfin.h: New file. * doc/Makefile.am: Recognize c-bfin.texi. * doc/Makefile.in: Regenerated. * doc/all.texi: Bfin support. * doc/as.texinfo: Likewise. * doc/c-bfin.texi: Document bfin-specific syntax and directives.
2005-09-302005-09-30 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+9
gas/ * config/tc-arm.c (opcode_tag): Add OT_cinfix3_legacy. (opcode_lookup): Handle OT_cinfix3_legacy. Revert earlier change for normal infix conditions. (C3E): Include Thumb-2 definition. (CL, cCL): Define. (insns): Use them for legacy mnemonics. gas/testsuite/ * gas/arm/fpa-mem.s: Remove incorrect comments. * gas/arm/fpa-mem.d: Update expected results.
2005-09-30asintl.h/bucomm.h/ld.h: Prevent the inclusion of <libintl.h> from the SolarisNick Clifton1-0/+5
version of <locale.h> when ENABLE_NLS is not defined. gprof.c (main):Only invoke bindtextdomain() and textdomain() if ENABLE_NLS is defined.
2005-09-29gas/Jan Beulich1-0/+5
2005-09-29 Jan Beulich <jbeulich@novell.com> * config/tc-ia64.c (parse_operands): Always parse first operand of alloc. gas/testsuite/ 2005-09-29 Jan Beulich <jbeulich@novell.com> * gas/ia64/alloc.[sl]: New. * gas/ia64/ia64.exp: Run new test.
2005-09-29 * app.c (do_scrub_chars): Match open and close quote of strings.Alan Modra1-0/+6
Remove redundant EOF test in case 7.
2005-09-28gas/Jan Beulich1-0/+7
2005-09-28 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (reloc): Disable signedness check for 4-byte relocations in 16- and 32-bit modes. (i386_displacement): Make pc-relative branch handling dependent upon operand (rather than address) size. gas/testsuite/ 2005-09-28 Jan Beulich <jbeulich@novell.com> * gas/i386/mixed-mode-reloc.s: Enable all insns. * gas/i386/mixed-mode-reloc32.d: Adjust. * gas/i386/mixed-mode-reloc64.d: Adjust.
2005-09-28gas/Jan Beulich1-0/+8
2005-09-28 Jan Beulich <jbeulich@novell.com> * dw2gencfi.c (dot_cfi): Call ignore_rest_of_line when not fully parsing the input. (dot_cfi_startproc): Likewise. (dot_cfi_endproc): Likewise. Also check no extra input was given. (dot_cfi_escape): Likewise.
2005-09-28gas/Jan Beulich1-0/+12
2005-09-28 Jan Beulich <jbeulich@novell.com> * config/tc-i386.h (x86_cons_fix_new): Declare unconditionally. (TC_CONS_FIX_NEW): Define unconditionally. (x86_pe_cons_fix_new): Remove. * config/tc-i386.c (signed_cons): New. (md_pseudo_table): Add slong. (x86_cons_fix_new): Declare unconditionally. (x86_pe_cons_fix_new): Merge into x86_cons_fix_new. (tc_gen_reloc): Also consider BFD_RELOC_X86_64_32S for gotpc conversion. gas/testsuite/ 2005-09-28 Jan Beulich <jbeulich@novell.com> * gas/i386/reloc64.s: Also test .slong. * gas/i386/reloc64.l: Adjust. * gas/i386/reloc64.d: Adjust.
2005-09-28 * app.c (do_scrub_chars <LEX_IS_SYMBOL_COMPONENT>): Check for fullAlan Modra1-4/+9
buffer after copying string.
2005-09-272005-09-27 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+5
* config/arm.c (arm_cpus): Add more cpu names. * doc/c-arm.texi: Document them.
2005-09-21 * read.c (pseudo_set): Don't set undefined symbols to expr_section.Alan Modra1-0/+4
2005-09-20 * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.Richard Henderson1-0/+4
2005-09-20 * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofsRichard Henderson1-0/+34
with label. (dwarf2_loc_mark_labels): New. (dwarf2_gen_line_info_1): Split out of ... (dwarf2_gen_line_info): ... here. Create the temp symbol here. (dwarf2_emit_label): New. (dwarf2_directive_loc_mark_labels): New. (out_set_addr): Take a symbol instead of frag+ofs. (relax_inc_line_addr): Likewise. (emit_inc_line_addr): Assert delta non-negative. (process_entries): Remove dead code. Update to work with temp symbols instead of frag+ofs. * dwarf2dbg.h (dwarf2_directive_loc_mark_labels): Declare. (dwarf2_emit_label, dwarf2_loc_mark_labels): Declare. * config/obj-elf.c (elf_pseudo_tab): Add loc_mark_labels. * config/obj-elf.h (obj_frob_label): New. * config/tc-alpha.c (alpha_define_label): Call dwarf2_emit_label. * config/tc-arm.c, config/tc-hppa.c, config/tc-m68k.c, config/tc-mips.c, config/tc-ppc.c, config/tc-sh.c, config/tc-xtensa.c: Similarly in the respective tc_frob_label implementation functions. * config/tc-i386.c (md_pseudo_table): Move file and loc to non-elf section; add loc_mark_labels. * config/tc-ia64.c (struct label_fix): Add dw2_mark_labels. (ia64_flush_insns): Check for marked labels; emit line entry if so. (emit_one_bundle): Similarly. (ia64_frob_label): Record marked labels. * config/tc-m68hc11.h (tc_frob_label): Remove. * config/tc-ms1.c (md_pseudo_table): Remove file and loc. * config/tc-sh.h (tc_frob_label): Pass sym to sh_frob_label. * config/tc-sh64.h (tc_frob_label): Likewise. * doc/as.texinfo (LNS directives): Docuement .loc_mark_blocks.
2005-09-20 * read.c (pseudo_set): Set segment of expression syms to expr_section.Alan Modra1-0/+4
2005-09-14gas/Jan Beulich1-0/+6
2005-09-14 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Add selector registers, floating point control and status words, and mxcsr as well as (for 64-bit code) segment base registers and rflags.
2005-09-092005-09-09 Dmitry Diky <diwil@spec.ru>Dmitry Diky1-0/+6
* config/tc-msp430.c (msp430_operands): Undo last changes. Instead... (msp430_relax_frag): add a guard check to ensure that final fr_subtype has been reached.
2005-09-08* doc/as.texinfo: Document -mdsp and -mno-dsp options.Chao-ying Fu1-0/+6
* doc/c-mips.texi: Likewise, and document ".set dsp" and ".set nodsp" directives.
2005-09-082005-09-08 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+8
bfd/ * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. opcodes/ * arm-dis.c (arm_opcodes, thumb32_opcodes): Rename smi to smc. gas/ * config/tc-arm.c (do_smi, do_t_smi): Rename ... (do_smc, do_t_smc): ... to this. (insns): Remane smi to smc. (md_apply_fix, tc_gen_reloc): Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC. gas/testsuite/ * gas/arm/arch6zk.d: Rename smi to smc. * gas/arm/arch6zk.s: Ditto. * gas/arm/thumb32.d: Ditto. * gas/arm/thumb32.s: Ditto.