* config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
[binutils-gdb.git] / gas / ChangeLog
index 0b12cd17786843d850ebbecba60d77c34d7f0830..ff8d3b9f26039cba341eab0fc6007e98f6ebacc2 100644 (file)
@@ -1,3 +1,198 @@
+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*.
        * stabs.c: Likewise.
        * symbols.c: Likewise.
 
-2002-05-17  Alan Modra  <amodra@bigpond.net.au>
-
-       * doc/internals.texi (md_apply_fix3): Expand.
-       (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
-       TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
-       TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
-       TC_FIX_ADJUSTABLE): Document.
-       * symbols.c (S_FORCE_RELOC): New function.
-       * symbols.h (S_FORCE_RELOC): Declare.  s/CONST/const/.
-       * config/obj-aout.h (S_FORCE_RELOC): Define.
-       * config/obj-bout.h (S_FORCE_RELOC): Define.
-       * config/obj-coff.h (S_FORCE_RELOC): Define.  Formatting fixes.
-       * config/obj-ieee.h (S_FORCE_RELOC): Define.  Formatting fixes.
-       * config/obj-vms.h (S_FORCE_RELOC): Define.
-       * expr.c (clean_up_expression <O_subtract>): Use S_FORCE_RELOC
-       instead of SEG_NORMAL.  Allow diff != 0.
-       (expr <O_subtract>): Use S_FORCE_RELOC instead of SEG_NORMAL.
-       * read.c (pseudo_set): Likewise.
-       * write.c (TC_FORCE_RELOCATION_ABS): Define.
-       (TC_FORCE_RELOCATION_LOCAL): Define, replaces..
-       (TC_RELOC_RTSYM_LOC_FIXUP): ..this. Remove.
-       (TC_FORCE_RELOCATION_SUB_SAME): Define, replaces..
-       (TC_FORCE_RELOCATION_SECTION): ..this.  Remove.
-       (TC_FORCE_RELOCATION_SUB_ABS): Define.
-       (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
-       (RELOC_ENUM): Define.
-       (fix_new_internal): Use RELOC_ENUM.
-       (fix_new): Likewise.
-       (fix_new_exp): Likewise.
-       (adjust_reloc_syms): Split out code setting used_in_reloc to..
-       (mark_reloc_syms): ..here.  New function.  Use S_FORCE_RELOC.
-       (write_object_file): Call mark_reloc_syms.
-       (write_relocs): Formatting.  Avoid symbol loops in
-       RELOC_EXPANSION_POSSIBLE case too.  Report bfd_reloc_outofrange
-       errors, and error number in other cases.
-       (fixup_segment): Rewrite.
-       * config/tc-alpha.h (TC_FORCE_RELOCATION_LOCAL): Define, replaces..
-       (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
-       * config/tc-arm.h: Likewise.
-       * config/tc-cris.h: Likewise.
-       * config/tc-i386.h: Likewise.
-       * config/tc-i960.h: Likewise.
-       * config/tc-ia64.h: Likewise.
-       * config/tc-m68k.h: Likewise.
-       * config/tc-ppc.h: Likewise.
-       * config/tc-s390.h: Likewise.
-       * config/tc-sh.h: Likewise.
-       * config/tc-sh64.h: Likewise.
-       * config/tc-sparc.h: Likewise.
-       * config/tc-hppa.h (TC_FORCE_RELOCATION_SUB_SAME): Define, replaces..
-       (TC_FORCE_RELOCATION_SECTION):  Delete.
-       * config/tc-i386.c (tc_i386_force_relocation): Remove.
-       (BFD_RELOC_8, BFD_RELOC_16): Define for non BFD_ASSEMBLER.
-       (md_apply_fix3): Formatting.  Hack for bfd_install_relocation when
-       fx_pcrel, not when fx_addsy.
-       * config/tc-i386.h (TC_FORCE_RELOCATION): Define using code moved
-       from tc_i386_force_relocation.
-       (TC_FIX_ADJUSTABLE): Remove redundant tc_fix_adjustable condition.
-       * config/tc-s390.h (TC_FIX_ADJUSTABLE): Likewise.
-       * config/tc-sh.h (TC_FIX_ADJUSTABLE): Likewise.
-       * config/tc-i960.c (reloc_callj): Remove declaration.  Return false.
-       * config/tc-i960.h (TC_FORCE_RELOCATION_SUB): Define.
-       (TC_FORCE_RELOCATION_ABS): Define.
-       * config/tc-ppc.c (md_apply_fix3): Rename arg to match comments.
-       Don't undo adjustments done by write.c:fixup_segment.
-       * config/tc-ppc.h (TC_FIX_ADJUSTABLE): Instead arrange for them
-       to not occur in the first place.
-       (TC_FORCE_RELOCATION_SECTION): Delete.
-       * config/tc-s390.c (md_apply_fix3): Use TC_FORCE_RELOCATION_LOCAL
-       instead of TC_RELOC_RTSYM_LOC_FIXUP.
-       * config/tc-sh.c (sh_fix_adjustable): Likewise.
-       * config/tc-sh.h (obj_fix_adjustable): Delete, instead..
-       (tc_fix_adjustable): Define.
-
 2002-05-17  Alan Modra  <amodra@bigpond.net.au>
 
        * config/obj-generic.c: Delete file.