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 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
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
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
#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