From 9384f2ffd0864b49f201c3fd887492acba3c0c55 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 9 Sep 2009 09:31:16 +0000 Subject: [PATCH] * config/tc-i386.c (i386_target_format): Avoid duplicate case label. --- gas/ChangeLog | 4 ++++ gas/config/tc-i386.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index b76df64..a52d8f4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-09-09 Alan Modra + + * config/tc-i386.c (i386_target_format): Avoid duplicate case label. + 2009-09-08 Kaz Kojima * configure.tgt (sh*-*-netbsdelf*): Set endian according to cpu. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index a4b3e11..af1994d 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: -- 2.7.4