OSDN Git Service

gas/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 10 Aug 2009 21:32:26 +0000 (21:32 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 10 Aug 2009 21:32:26 +0000 (21:32 +0000)
Fix compilation of i386-*-go32.
* config/tc-i386.c (i386_target_format <TE_GO32>): New.
(i386_target_format <OBJ_MAYBE_COFF>): Compile only if !TE_GO32.
* config/te-go32.h (TARGET_FORMAT): Move the definition ...
* config/tc-i386.h <!i386_target_format>: ... here.

gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/config/te-go32.h

index 0ad79fd..32d3562 100644 (file)
@@ -1,3 +1,11 @@
+2009-08-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix compilation of i386-*-go32.
+       * config/tc-i386.c (i386_target_format <TE_GO32>): New.
+       (i386_target_format <OBJ_MAYBE_COFF>): Compile only if !TE_GO32.
+       * config/te-go32.h (TARGET_FORMAT): Move the definition ...
+       * config/tc-i386.h <!i386_target_format>: ... here.
+
 2009-08-10  Daniel Gutson  <dgutson@codesourcery.com>
 
        PR gas/10479
index 4109dd9..86e55bf 100644 (file)
@@ -8087,7 +8087,10 @@ i386_target_format (void)
     case bfd_target_aout_flavour:
       return AOUT_TARGET_FORMAT;
 #endif
-#ifdef OBJ_MAYBE_COFF
+#ifdef TE_GO32
+    case bfd_target_coff_flavour:
+      return "coff-go32";
+#elif defined (OBJ_MAYBE_COFF)
     case bfd_target_coff_flavour:
       return "coff-i386";
 #endif
index b51a9f4..3d89a32 100644 (file)
@@ -81,6 +81,9 @@ extern unsigned long i386_mach (void);
 extern const char *i386_target_format (void);
 #define TARGET_FORMAT i386_target_format ()
 #else
+#ifdef TE_GO32
+#define TARGET_FORMAT          "coff-go32"
+#endif
 #ifdef OBJ_AOUT
 #define TARGET_FORMAT          AOUT_TARGET_FORMAT
 #endif
index d70cd03..bdfcb4b 100644 (file)
@@ -22,8 +22,6 @@
 #define LOCAL_LABELS_DOLLAR 1
 #define LOCAL_LABELS_FB 1
 
-#define TARGET_FORMAT "coff-go32"
-
 /* GAS should treat '.align value' as an alignment of 2**value.  */
 #define USE_ALIGN_PTWO