From: Alan Modra Date: Wed, 9 Sep 2009 09:31:16 +0000 (+0000) Subject: * config/tc-i386.c (i386_target_format): Avoid duplicate case label. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9384f2ffd0864b49f201c3fd887492acba3c0c55;p=binutils-gdb.git * config/tc-i386.c (i386_target_format): Avoid duplicate case label. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b76df646fa0..a52d8f4afc2 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 a4b3e118295..af1994d0e25 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: