aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c34
2 files changed, 11 insertions, 27 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7c0b4d3..8b4e382 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
Fri Oct 3 15:40:38 1997 Ian Lance Taylor <ian@cygnus.com>
+ * config/tc-mips.c: Undef OBJ_COPY_SYMBOL_ATTRIBUTES before
+ including obj-elf.h in OBJ_MAYBE_ELF case.
+ (mips_target_format): Return NULL after abort to avoid warning.
+
* ecoff.c (generate_ecoff_stab): Remove unused static function.
* expr.c (operator): Accept ==. From Anders Blomdell
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index e0c0a38..cb7f0bd 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -60,6 +60,7 @@ static int mips_output_flavor () { return OUTPUT_FLAVOR; }
#undef obj_frob_symbol
#undef obj_pop_insert
#undef obj_sec_sym_ok_for_reloc
+#undef OBJ_COPY_SYMBOL_ATTRIBUTES
#include "obj-elf.h"
/* Fix any of them that we actually care about. */
@@ -122,6 +123,7 @@ mips_target_format ()
: (mips_64 ? "elf64-littlemips" : "elf32-littlemips"));
default:
abort ();
+ return NULL;
}
}
@@ -216,17 +218,16 @@ static int mips_3900 = -1;
/* Whether the processor uses hardware interlocks to protect
reads from the HI and LO registers, and thus does not
require nops to be inserted. */
-static int hilo_interlocks = -1;
+#define hilo_interlocks (mips_4010 || mips_cpu == 4300 || mips_3900)
-/* Whether the processor uses hardware interlocks to protect
- reads from the GPRs, and thus does not
- require nops to be inserted. */
-static int gpr_interlocks = -1;
+/* Whether the processor uses hardware interlocks to protect reads
+ from the GPRs, and thus does not require nops to be inserted. */
+#define gpr_interlocks (mips_opts.isa >= 2 || mips_3900)
/* As with other "interlocks" this is used by hardware that has FP
(co-processor) interlocks. */
/* Itbl support may require additional care here. */
-static int cop_interlocks = -1;
+#define cop_interlocks (mips_cpu == 4300)
/* MIPS PIC level. */
@@ -948,27 +949,6 @@ md_begin ()
if (mips_3900 < 0)
mips_3900 = 0;
- if (mips_4010
- || mips_cpu == 4300
- || mips_3900
- )
- hilo_interlocks = 1;
- else
- hilo_interlocks = 0;
-
- if (mips_opts.isa >= 2
- || mips_3900
- )
- gpr_interlocks = 1;
- else
- gpr_interlocks = 0;
-
- /* Itbl support may require additional care here. */
- if (mips_cpu == 4300)
- cop_interlocks = 1;
- else
- cop_interlocks = 0;
-
if (mips_opts.isa < 2 && mips_trap)
as_bad ("trap exception not supported at ISA 1");