summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-09-09 09:31:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-09-09 09:31:16 +0000
commitc1a8d676ce2d0f23f91eb3941df4c6eac69f8283 (patch)
tree530aafc8801e5627ac746542f1a54c62585a97c0
parent4c29b5067ef214fc5a925fab0b58ac228fd289e0 (diff)
downloadbinutils-redhat-c1a8d676ce2d0f23f91eb3941df4c6eac69f8283.tar.gz
* config/tc-i386.c (i386_target_format): Avoid duplicate case label.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-i386.c15
2 files changed, 12 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b76df646fa..a52d8f4afc 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-09 Alan Modra <amodra@bigpond.net.au>
+
+ * config/tc-i386.c (i386_target_format): Avoid duplicate case label.
+
2009-09-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index a4b3e11829..af1994d0e2 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -8084,20 +8084,21 @@ i386_target_format (void)
as_fatal (_("Unknown architecture"));
switch (OUTPUT_FLAVOR)
{
-#if defined (TE_PE) || defined (TE_PEP)
- case bfd_target_coff_flavour:
- return flag_code == CODE_64BIT ? "pe-x86-64" : "pe-i386";
-#endif
-#ifdef OBJ_MAYBE_AOUT
+#if defined (OBJ_MAYBE_AOUT) || defined (OBJ_AOUT)
case bfd_target_aout_flavour:
return AOUT_TARGET_FORMAT;
#endif
-#ifdef TE_GO32
+#if defined (OBJ_MAYBE_COFF) || defined (OBJ_COFF)
+# if defined (TE_PE) || defined (TE_PEP)
+ case bfd_target_coff_flavour:
+ return flag_code == CODE_64BIT ? "pe-x86-64" : "pe-i386";
+# elif defined (TE_GO32)
case bfd_target_coff_flavour:
return "coff-go32";
-#elif defined (OBJ_MAYBE_COFF)
+# else
case bfd_target_coff_flavour:
return "coff-i386";
+# endif
#endif
#if defined (OBJ_MAYBE_ELF) || defined (OBJ_ELF)
case bfd_target_elf_flavour: