* config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
[binutils-gdb.git] / gas / ChangeLog
index 16ef4365b3f38ed104faf79b47c4abfdbe73c63c..ff8d3b9f26039cba341eab0fc6007e98f6ebacc2 100644 (file)
@@ -1,3 +1,277 @@
+2002-06-02  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
+       with LITERALs without sequence numbers.
+
+2002-06-01  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
+       Rename them LITUSE_ALPHA_*.
+
+2002-05-31  Shrinivas Atre <ShrinivasA@kpit.com>
+
+       * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
+       accept parentheses enclosed register lists.
+
+2002-05-31  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am: Run "make dep-am".
+       * Makefile.in: Regenerate.
+       * po/POTFILES.in: Regenerate.
+
+2002-05-31  Graeme Peterson  <gp@qnx.com>
+
+       * configure.in: Add i386-*-nto-qnx*.
+       * configure: Regenerate.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (mips_ip): Use unsigned long values for
+       warning output.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (s_cpsetup): Fix initialization of
+       mips_cpreturn_register and mips_cpreturn_offset.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (s_cpsetup): Fix comment.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
+       (mips_ip): Likewise.
+       (mips16_ip): Likewise.
+       (tc_get_register): Likewise.
+
+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.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
+       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-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (macro_build_jalr): New Function.
+       (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.
+
+2002-05-31  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (load_address): Use mips_gp_register instead
+       of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
+       instead.
+       (macro): Use mips_gp_register instead of hardcoded value.
+
+2002-05-30  Richard Henderson  <rth@redhat.com>
+
+       * expr.h (operatorT): Add O_md17..O_md32.
+       * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
+       O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
+       O_tprelhi, O_tprello, O_tprel): New.
+       (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
+       (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
+       (LITUSE_TLSGD, LITUSE_TLSLDM): New.
+       (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
+       saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
+       (md_apply_fix3): Handle TLS relocations.
+       (alpha_force_relocation, alpha_fix_adjustable): Likewise.
+       (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
+       associated TLS reloc.  Check lituse_tls relocs match up.
+       (emit_insn): Handle TLS relocations.
+       (ldX_op): Remove.
+
+       * doc/c-alpha.texi: Add docs for tls relocations.
+
+2002-05-30  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (mips_gprel_offset): New variable.
+       (s_gpvalue): Use it.
+
+2002-05-30  Diego Novillo  <dnovillo@redhat.com>
+
+        * gas/config/tc-d10v.c (check_resource_conflict): Only check
+        write-write conflicts.
+        (md_assemble): Reformat introductory comment.
+        (parallel_ok): Prevent packing only if the first
+        instruction cannot be packed.
+
+2002-05-30  Jason Eckhardt <jle@redhat.com>
+           Tom Rix <trix@redhat.com>
+
+       * config/tc-d10v.c (build_insn): Check for immediates.
+
+2002-05-28  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c: Replace GP in comments by $gp.
+       (mips_big_got): Initialize.
+       (mips_trap): Initialize.
+       (load_address): Use mips_gp_register instead of hardcoded value.
+       Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
+       (macro): Use mips_gp_register instead of hardcoded value.
+       (macro2): Change load_address calls.
+       (md_pcrel_from): Comment formatting.
+       (s_cpload): Use mips_gp_register instead of hardcoded value.
+       (s_cprestore): Likewise. Comment formatting.
+       (s_gpword): Fix data type.
+       (s_cpadd): Use mips_gp_register instead of hardcoded value.
+       (nopic_need_relax): Replace GP in comments by $gp.
+       (mips_elf_final_processing): Better comment.
+
+2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
+
+       * configure.in: Add DLX configuraton
+       * Makefile.am: Add DLX configuraton
+       * configure: Regenerate.
+       * Makefile.in: Regenerate.
+       * config/tc-dlx.c: New file.
+       * config/tc-dlx.h: New files.
+       * NEWS: Mention new support.
+
+2002-05-27  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/obj-coff.c (write_object_file): Add missing semicolon.
+
+2002-05-26  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+       * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
+       by the define. Remove superfluous check of mips_opts.mips16.
+       (append_insn): Likewise. Canonicalize variable increments.
+       (macro_build): Canonicalize variable increments.
+       (macro_build_lui): Likewise.
+       (load_register): Likewise.
+       (load_address): Move pointer initialization.
+       (macro): Move pointer to a more local scope. Canonicalize variable
+       increments. Better comments. Replace magic constant for RA by the
+       define.
+       (macro2): Replace magic constant for RA by the define. Canonicalize
+       variable increments.
+       (mips_ip): Canonicalize variable increments.
+       (mips16_ip): Replace magic constant for RA by the define.
+       (my_getSmallParser): Canonicalize variable increments/decrements.
+       (my_getPercentOp): Likewise.
+       (my_getSmallExpression): Likewise.
+       (s_align): Likewise.
+       (s_mipsset): Likewise.
+       (s_cpsetup): Likewise.
+       (s_insn): Remove superfluous check of mips_opts.mips16.
+       (s_mips_stab): Likewise.
+       (mips_handle_align): Canonicalize variable increments.
+       (s_mips_ent): Likewise.
+       (s_mips_end): Add comment.
+
+2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
+       * configure: Regenerate.
+
+2002-05-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
+       * Makefile.in: Regenerate.
+       * dep-in.sed: Reorder to match OBJS in Makefile.am.
+       * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
+       * configure: Regenerate.
+       * as.h: Use #include "" instead of <> for local header files.
+       * flonum-konst.c: Likewise.
+       * flonum-mult.c: Likewise.
+       * gasp.c: Likewise.
+       * listing.c: Likewise.
+       * config/tc-ia64.h: Likewise.
+       * config/tc-v850.h: Likewise.
+
+2002-05-24  TAMURA Kent <kent@netbsd.org>
+
+       * configure.in: Add a target for i386-netbsdpe.
+       * configure: Regenerate.
+
+2002-05-23  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
+       (obj_elf_common): Call elf_common.
+       (obj_elf_tls_common): New function.
+       (elf_pseudo_tab): Support .tls_common.
+       (special_sections): Add .tdata and .tbss.
+       (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
+       sections.
+       (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
+       (obj_elf_parse_section_letters): Include T in error message.
+       * config/tc-ppc.c (ppc_section_letter): Likewise.
+       * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
+       (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
+       SEC_MERGE.
+       * config/tc-sparc.c (md_apply_fix3): Likewise.
+       * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
+       Define them if not BFD_ASSEMBLER.
+       (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
+       and @NTPOFF.
+       (md_apply_fix3): Add TLS relocs.
+       * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
+       FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
+       FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
+       (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
+       (ia64_elf_section_letter): Include T in error message.
+       (md_begin): Support TLS operators.
+       (md_operand): Likewise.
+       (ia64_gen_real_reloc_type): Support TLS relocs.
+       * testsuite/gas/i386/tlspic.s: New file.
+       * testsuite/gas/i386/tlsd.s: New file.
+       * testsuite/gas/i386/tlsnopic.s: New file.
+       * testsuite/gas/i386/tlsd.d: New file.
+       * testsuite/gas/i386/tlsnopic.d: New file.
+       * testsuite/gas/i386/tlspic.d: New file.
+       * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
+       * testsuite/gas/ia64/tls.s: New file.
+       * testsuite/gas/ia64/tls.d: New file.
+       * testsuite/gas/ia64/ia64.exp: Add tls test.
+       * write.c (adjust_reloc_syms): Don't change symbols in
+       SEC_THREAD_LOCAL sections to STT_SECTION + addend.
+
+2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
+       round the relocation up rather than down.
+
+2002-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
+       flag.
+        * doc/as.texinfo: Document that the COFF version of .section
+       ignores the 'a' flag.
+
 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
 
        * config/tc-alpha.c (assemble_tokens): Protect use of