diff options
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <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 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: |