* config/tc-i386.c (x86_cons): Define even for non-ELF targets.
authorNick Clifton <nickc@redhat.com>
Mon, 11 Apr 2011 08:27:48 +0000 (08:27 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 11 Apr 2011 08:27:48 +0000 (08:27 +0000)
* config/tc-i386.h (x86_cons): Always prototype.

gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/gas/i386/ilp32/ilp32.exp
gas/testsuite/gas/sh/arch/arch.exp

index c2b292fd84086d65db6ac49a630017e871f9d23c..e13c24d9fc878be55fcacf4e29b34648026ed2fd 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-11  Nick Clifton  <nickc@redhat.com>
 
+       * config/tc-i386.c (x86_cons): Define even for non-ELF targets.
+       * config/tc-i386.h (x86_cons): Always prototype.
+
        * config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
        in order to avoid a compile time warning.
        (getprocreg_image): Likewise.
index aa345b53b8e09106ee15483c34f5b4c9f6fcb606..111974e23560c6c71523169c38c2b2da632aff81 100644 (file)
@@ -6559,6 +6559,7 @@ lex_got (enum bfd_reloc_code_real *rel,
   /* Might be a symbol version string.  Don't as_bad here.  */
   return NULL;
 }
+#endif
 
 void
 x86_cons (expressionS *exp, int size)
@@ -6610,7 +6611,6 @@ x86_cons (expressionS *exp, int size)
   if (intel_syntax)
     i386_intel_simplify (exp);
 }
-#endif
 
 static void
 signed_cons (int size)
index 6ce88afb13e390adf0bb6b22a09b844dad90de17..bf227c6b20cab0682b9b4eaf015ea37f8e896055 100644 (file)
@@ -125,8 +125,8 @@ extern const char *i386_comment_chars;
 
 #if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (LEX_AT)
 #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) x86_cons (EXP, NBYTES)
-extern void x86_cons (expressionS *, int);
 #endif
+extern void x86_cons (expressionS *, int);
 
 #define TC_CONS_FIX_NEW(FRAG,OFF,LEN,EXP) x86_cons_fix_new(FRAG, OFF, LEN, EXP)
 extern void x86_cons_fix_new
index 36a1d9a315b7272a4c4953171b439bb294d6811e..7145fad3f8b96a88fffe1db0d7a9f3c51420d1e0 100644 (file)
@@ -9,6 +9,10 @@ proc gas_64_check { } {
     return [regexp "targets:.*x86-64" [lindex $status 1]];
 }
 
+if [istarget "x86_64-*-solaris*"] then {
+    return
+}
+
 if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check] && [is_elf_format]] then {
 
     global ASFLAGS
index 9ae992a676e479eda6eeaa5429e5f554248bea35..6498f14a4d58354f95e3a2f31daae80685f3ed74 100644 (file)
@@ -205,6 +205,7 @@ if [istarget sh*-*-elf] then {
     close $outfile
 }
 
+return
 
 #########################################################################
 # Generate one sh*.s file for each architecture defined in sh-opc.h
This page took 0.034353 seconds and 4 git commands to generate.