diff options
author | Alan Modra <amodra@gmail.com> | 2009-09-09 09:31:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-09-09 09:31:16 +0000 |
commit | 9384f2ffd0864b49f201c3fd887492acba3c0c55 (patch) | |
tree | 65a6488c193f90457b787e31f7fb822c369e687d /gas | |
parent | 1004c3e14acc32a219f141bca170b12174e57ab3 (diff) | |
download | gdb-9384f2ffd0864b49f201c3fd887492acba3c0c55.zip gdb-9384f2ffd0864b49f201c3fd887492acba3c0c55.tar.gz gdb-9384f2ffd0864b49f201c3fd887492acba3c0c55.tar.bz2 |
* config/tc-i386.c (i386_target_format): Avoid duplicate case label.
Diffstat (limited to 'gas')
-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: |