aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2002-06-26 * ecoff.c: (get_tag): Replace strcpy with xstrdup.Alan Modra4-55/+50
(ecoff_directive_def): Likewise. (ecoff_directive_tag): Likewise. * listing.c (file_info): Likewise. * hash.c (what): Likewise.
2002-06-262002-06-25 H.J. Lu <hjl@gnu.org>H.J. Lu3-0/+7
* Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it. * Makefile.in: Regenerated.
2002-06-19Typo fixes in comment.Joern Rennecke1-5/+5
2002-06-19 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.Joern Rennecke2-21/+15
(assemble_ppi): Generate warning if the same register is used twice as destination in the same padd / pmuls instruction.
2002-06-182002-06-18 Dave Brolley <brolley@redhat.com>Dave Brolley9-0/+1791
From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley: * po/POTFILES.in: Add tc-frv.c, tc-frv.h. * configure.in: Support frv-*-*. * Makefile.am (CPU_TYPES): Add frv. (TARGET_CPU_CFILES): Add tc-frv.c. (TARGET_CPU_HFILES): Add tc-frv.h. (DEPTC_frv_coff): New variable. (DEPTC_frv_elf): New variable. (DEPOBJ_frv_coff): New variable. (DEPOBJ_frv_elf): New variable. (DEP_frv_coff): New variable. (DEP_frv_elf): New variable. * tc-frv.c: New file. * tc-frv.h: New file.
2002-06-182002-06-18 Dave Brolley <brolley@redhat.com>Dave Brolley4-0/+3904
* gas/frv: New testsuite.
2002-06-18* config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.Catherine Moore2-1/+7
2002-06-17 * config/tc-sh.c (assemble_ppi): Initialize reg_n.Joern Rennecke2-0/+5
2002-06-17Fix comment.Joern Rennecke1-1/+1
2002-06-17 * gas/sh/dsp.s: Add three more instructions.Joern Rennecke3-1/+12
* gas/sh/dsp.d: Update.
2002-06-17Fix build breakage.Tom Rix2-0/+7
2002-06-142002-06-14 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz14-368/+468
Daniel Jacobowitz <drow@mvista.com> * dwarf2dbg.h (dwarf2_directive_file): Return char *. * dwarf2dbg.c (dwarf2_directive_file): Return filename. * config/tc-mips.c (s_mips_file): Call s_app_file_string and new_logical_line for the first .file directive. * read.c (s_app_file_string): New function. (s_app_file): Call it. * read.h (s_app_file_string): Add declaration. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * configure.in: Remove MIPS_STABS_ELF. * configure: Regenerated. * config.in: Regenerated. * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug for MIPS targets. * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around ".extern". (pdr_seg): Declare unconditionally. (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_end): Likewise. Generate stabs function markers. (s_mips_ent): Generate stabs function markers. (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_mask): Likewise. (mips_flag_mdebug): New. (md_longopts): Add "mdebug" and "no-mdebug". (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG. (mips_after_parse_args): Set mips_flag_mdebug. * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * gas/mips/lineno.d: Use --gstabs. * gas/mips/mips.exp (lineno.s): Remove XFAIL.
2002-06-13* config/tc-mips.c (md_apply_fix3): Don't subtract the symbol'sMaciej W. Rozycki2-5/+9
value twice for RELA relocations.
2002-06-12 * symbols.c (resolve_symbol_value): Initialise final_val.Ben Elliston3-2/+8
* subsegs.c (subsegs_print_statistics): Cast frchp to void *.
2002-06-12Change default csect alignment to 4 bytes.Tom Rix3-13/+7
2002-06-12Add and fix tests to reflect changing text alignment to 4 bytes.Tom Rix7-4/+54
2002-06-09 * config/tc-avr.c (mcu_types): Update.Marek Michalkiewicz2-1/+8
2002-06-092002-06-08 Matt Thomas <matt@3am-software.com>Jason Thorpe7-244/+602
* configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*) (vax-*-netbsd*): New targets. * configure: Regenerate. * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD. * config/tc-vax.c: Add support for ELF and PIC. (flag_want_pic): New flag. (float_cons): Fix prototype. (md_apply_fix3): Adjust for BFD_ASSEMBLER. (md_assemble): Introduce a new is_absolute local, and use it rather than repeating the test. Make fatal errors actually fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER. Add support for ELF. Add support for PIC. (md_convert_frag): Adjust for BFD_ASSEMBLER. (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not BFD_ASSEMBLER. (vax_reg_parse): Make the % register prefix mandatory for ELF, optional for a.out, and not allowed for VMS. Adjust all callers. (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments. (md_create_long_jump): Likewise. (md_undefined_symbol): Likewise. (md_section_align): Likewise. (md_shortopts): Allow -k and -K for ELF. (md_parse_option): Set flag_want_pic if -k or -K. (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER. (tc_gen_reloc): New function if BFD_ASSEMBLER. * config/tc-vax.h (tc_headers_hook): Remove. (TARGET_FORMAT): Set according to object format and target environment. (BFD_ARCH, TARGET_ARCH): Define. (NO_RELOC): Adjust for BFD_ASSEMBLER. (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE) (tc_fix_adjustable): Define if BFD_ASSEMBLER. * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
2002-06-082002-06-08 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
Based on patch from Matt Green: * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable. * config/tc-mips.c (s_mips_file): Renamed from s_file. (s_mips_loc): New function. (mips_nonecoff_pseudo_table): Call them. (append_insn): Call dwarf2_emit_insn.
2002-06-08 * Makefile.am: Run "make dep-am".Alan Modra3-102/+107
* Makefile.in: Regenerate.
2002-06-08 * as.c: Replace CONST with const.Alan Modra29-73/+104
* write.c: Likewise. * config/obj-coff.c: Likewise. * config/tc-a29k.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-dlx.c: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i860.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-m88k.c: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-ns32k.c: Likewise. * config/tc-pdp11.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sparc.c: Likewise. * config/tc-tahoe.c: Likewise. * config/tc-tic80.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-vax.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-z8k.c: Likewise.
2002-06-082002-06-08 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-8/+46
Based on patch from Matt Green: * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable. * config/tc-mips.c (s_mips_file): Renamed from s_file. (s_mips_loc): New function. (mips_nonecoff_pseudo_table): Call them. (append_insn): Call dwarf2_emit_insn.
2002-06-07 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are setThiemo Seufer2-29/+36
to -1. (file_ase_mips16): New veriable. (mips_eabi64): Remove. (CPU_HAS_MIPS16): New define. (CPU_HAS_MDMX): Fix data type. (md_begin): Code cleanup. Use file_ase_mips16. (mips_elf_final_processing): Handle mips16 header flag. Handle EABI flag without intermediate variable.
2002-06-07 * doc/as.texinfo: Update MIPS documentation.Thiemo Seufer2-27/+55
2002-06-07 * config/tc-mips.c: Add define for $zero register.Thiemo Seufer2-11/+67
(md_begin): Add $zero as alias name for $0. (insn_uses_reg): Use ZERO define. (mips_ip): Add $zero as alias name for $0. (mips16_ip): Likewise. (s_cplocal): Demand empty rest of input line. (tc_get_register): Likewise. Add support for $kt0, kt1 register names. Use ZERO define. Fix input_line_pointer progress.
2002-06-07 * symbols.c: Replace CONST by const throughout.Alan Modra4-25/+61
(symbol_find_exact): Split out from.. (symbol_find_base): ..here. * symbols.h: Replace CONST by const throughout. (symbol_find_exact): Declare. * config/obj-elf.c: #include "struc-symbol.h". (elf_frob_file): If group name matches an exported symbol, use that symbol for the signature and ".group" as the section name.
2002-06-07Add comment for last change.Joern Rennecke1-0/+15
2002-06-06 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,Joern Rennecke5-15/+39
but warn about it. * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc). * testsuite/gas/sh/pcrel.d: Update. * testsuite/gas/sh/pcrel.l: New file.
2002-06-062002-06-06 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-4/+9
* tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d and mips_opts.ase_mdmx if they are uninitialized.
2002-06-06 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.Jeff Law2-12/+31
(hppa_force_relocation): Check if a stub just before the start symbol of the last call_info is reachable before forcing relocation. Fix typo.
2002-06-06 * gas/testsuite/gas/hppa/basic/add.s: Set code level to 1.1.Jeff Law9-1/+22
* gas/testsuite/gas/hppa/basic/branch.s: Likewise. * gas/testsuite/gas/hppa/basic/dcor.s: Likewise. * gas/testsuite/gas/hppa/basic/logical.s: Likewise. * gas/testsuite/gas/hppa/basic/shladd.s: Likewise. * gas/testsuite/gas/hppa/basic/sub.s: Likewise. * gas/testsuite/gas/hppa/basic/unit.s: Likewise. * gas/testsuite/gas/hppa/unsorted/unsorted.exp: Return if target "*-*-linux*".
2002-06-04* config/tc-mips.c (mips_after_parse_args): New function.Maciej W. Rozycki3-230/+244
(md_begin): Move processing of defaults to mips_after_parse_args. config/tc-mips.h (md_after_parse_args): Define.
2002-06-04bfd:Jason Thorpe4-188/+219
* Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo. (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c. (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo. (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c. (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules. * Makefile.in: Regenerate. * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*) (sh64-*-netbsd*): New targets. * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec. * configure: Regenerate. * elf32-sh64-nbsd.c: New file. * elf64-sh64-nbsd.c: New file. * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec. gas: * configure.in (sh5*): Set cpu_type to sh64 and endian to big. (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little. (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets. * configure: Regenerate. * config/tc-sh64.c (sh64_target_format): Add support for NetBSD environment. ld: * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o, eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o. (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c) (eshlelf64_nbsd.c): New rules. * Makefile.in: Regenerate. * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*) (sh64-*-netbsd*): New targets. * emulparams/shelf32_nbsd.sh: New file. * emulparams/shelf64_nbsd.sh: New file. * emulparams/shlelf32_nbsd.sh: New file. * emulparams/shlelf64_nbsd.sh: New file. opcodes: * configure.in: Add "sh5*-*" to list of targets which include sh64 support. * configure: Regenerate.
2002-06-04* config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.Jason Thorpe2-0/+5
2002-06-04 * config/obj-elf.c (obj_elf_change_section): Set and check elfAlan Modra2-11/+43
linkonce flag. Print all warnings. (obj_elf_section): Parse ",comdat" for groups. (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check consistency of comdat flag.
2002-06-02 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinkoRichard Henderson2-3/+10
with LITERALs without sequence numbers.
2002-06-02 include/elf/Richard Henderson2-15/+13
* alpha.h (LITUSE_ALPHA_ADDR, LITUSE_ALPHA_BASE, LITUSE_ALPHA_BYTOFF, LITUSE_ALPHA_JSR, LITUSE_ALPHA_TLSGD, LITUSE_ALPHA_TLSLDM): New. gas/ * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h". Rename them LITUSE_ALPHA_*. bfd/ * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New. (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs in shared libraries. Fix DTPRELHI and TPRELHI value. (INSN_ADDQ, INSN_RDUNIQ): New. (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent. (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend argument. Reject dynamic symbols. Use LITUSE symbolic constants. (elf64_alpha_relax_got_load): Rename from relax_without_lituse. Handle GOTDTPREL and GOTTPREL relocations. (elf64_alpha_relax_gprelhilo): New. (elf64_alpha_relax_tls_get_addr): New. (elf64_alpha_relax_find_tls_segment): New. (elf64_alpha_relax_section): Handle TLS relocations. (ALPHA_ELF_LINK_HASH_TLS_IE): New. (elf64_alpha_check_relocs): Set it.
2002-05-31[ opcodes/ChangeLog ]Chris Demetriou4-0/+291
2002-05-31 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * mips-opc.c: Add support for SB-1 MDMX subset and extensions. [ gas/testsuite/ChangeLog ] 2002-05-31 Chris G. Demetriou <cgd@broadcom.com> * gas/mips/sb1-ext-mdmx.s: New file. * gas/mips/sb1-ext-mdmx.d: Likewise. * gas/mips/mips.exp: Run new "sb1-ext-mdmx" test.
2002-05-312002-05-31 Chris G. Demetriou <cgd@broadcom.com>Chris Demetriou2-1/+7
* gas/mips/mips.exp: Use elf-rel2 and elfel-rel2 for mipsisa64*-*-* targets, rather than e32-rel2 and e32el-rel2.
2002-05-31Allow stm.l and ldm.l insns to accept parentheses enclosed register lists.Nick Clifton2-81/+93
2002-05-312002-05-30 Chris G. Demetriou <cgd@broadcom.com>Chris Demetriou3-145/+151
* gas/mips/mips64-mdmx.s: Tweak to more thoroughly cover instruction encodings. * gas/mips/mips64-mdmx.d: Likewise.
2002-05-31 * Makefile.am: Run "make dep-am".Alan Modra4-11/+44
* Makefile.in: Regenerate. * po/POTFILES.in: Regenerate.
2002-05-31 * configure.in: Add i386-*-nto-qnx*.Alan Modra3-243/+176
* configure: Regenerate.
2002-05-31 * config/tc-mips.c (mips_ip): Use unsigned long values forThiemo Seufer2-18/+23
warning output.
2002-05-31 * config/tc-mips.c (s_cpsetup): Fix initialization ofThiemo Seufer2-3/+14
mips_cpreturn_register and mips_cpreturn_offset.
2002-05-31 * config/tc-mips.c (s_cpsetup): Fix comment.Thiemo Seufer2-5/+9
2002-05-31 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.Thiemo Seufer2-3/+24
(mips_ip): Likewise. (mips16_ip): Likewise. (tc_get_register): Likewise.
2002-05-31[ gas/ChangeLog ]Chris Demetriou8-6/+695
2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * config/tc-mips.c (mips_set_options): New "ase_mdmx" member. (mips_opts): Initialize "ase_mdmx" member. (file_ase_mdmx): New variable. (CPU_HAS_MDMX): New macro. (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx based on command line options and configuration defaults. (macro_build): Note in comment that use of MDMX in macros is not currently allowed. (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set, and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option): Add support for "-mdmx" and "-no-mdmx" options. (OPTION_ELF_BASE): Move to accomodate new options. (s_mipsset): Support ".set mdmx" and ".set nomdmx". (mips_elf_final_processing): Set MDMX ASE ELF header flag if file_ase_mdmx was set. * doc/as.texinfo: Document -mdmx and -no-mdmx options. * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set nomdmx" directives. [ gas/testsuite/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * gas/mips/mips64-mdmx.s: New file. * gas/mips/mips64-mdmx.d: Likewise. * gas/mips/mips.exp: Run new "mips64-mdmx" test. [ include/opcode/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * mips.h (OP_SH_ALN, OP_MASK_ALN, OP_SH_VSEL, OP_MASK_VSEL) (MDMX_FMTSEL_IMM_QH, MDMX_FMTSEL_IMM_OB, MDMX_FMTSEL_VEC_QH) (MDMX_FMTSEL_VEC_OB, INSN_READ_MDMX_ACC, INSN_WRITE_MDMX_ACC) (INSN_MDMX): New constants, for MDMX support. (opcode character list): Add "O", "Q", "X", "Y", and "Z" for MDMX. [ opcodes/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * mips-dis.c (print_insn_arg): Add support for 'O', 'Q', 'X', 'Y', and 'Z' formats, for MDMX. (mips_isa_type): Add MDMX instructions to the ISA bit mask for bfd_mach_mipsisa64. * mips-opc.c: Add support for MDMX instructions. (MX): New definition. * mips-dis.c: Update copyright years to include 2002.
2002-05-30 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename toThiemo Seufer3-4/+12
OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000" command line switch conforming to gcc conventions. * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2002-05-30 * config/tc-mips.c (macro_build_jalr): New Function.Thiemo Seufer2-82/+201
(md_begin): NewABI uses big GOTs. (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP, BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid. (load_address): Add some NewABI PIC support. (macro): Likewise. (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR. (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.