aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-05-20 13:48:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-05-20 13:48:16 +0000
commit321098a5ad7818e3c08bcd5144f3049c4884309a (patch)
treedca326b3a770d692301e75fd4ceb2e99051f6f2c /gas/config/obj-coff.h
parenteca41774ed42348bcea54dce730cc4b7ea47d9c6 (diff)
downloadgdb-321098a5ad7818e3c08bcd5144f3049c4884309a.zip
gdb-321098a5ad7818e3c08bcd5144f3049c4884309a.tar.gz
gdb-321098a5ad7818e3c08bcd5144f3049c4884309a.tar.bz2
2009-05-20 Kai Tietz <kai.tietz@onevision.com>
H.J. Lu <hongjiu.lu@intel.com> * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff. (TARGET_FORMAT): Removed for x86 pe-coff. (COFF_TARGET_FORMAT): Likewise. * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff. (md_parse_option): Likewise. (md_show_usage): Show option --32/--64 for x86 pe-coff. (i386_target_format): Use also for x86 pe-coff. * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format for x86 pe-coff.
Diffstat (limited to 'gas/config/obj-coff.h')
-rw-r--r--gas/config/obj-coff.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/gas/config/obj-coff.h b/gas/config/obj-coff.h
index d7e985d..11a1123 100644
--- a/gas/config/obj-coff.h
+++ b/gas/config/obj-coff.h
@@ -55,22 +55,12 @@
#endif
#ifdef TC_I386
-#ifndef TE_PEP
+#ifdef TE_PEP
#include "coff/x86_64.h"
#else
#include "coff/i386.h"
#endif
-#ifdef TE_PE
-#ifdef TE_PEP
-extern const char *i386_target_format (void);
-#define TARGET_FORMAT i386_target_format ()
-#define COFF_TARGET_FORMAT "pe-x86-64"
-#else
-#define TARGET_FORMAT "pe-i386"
-#endif
-#endif
-
#ifndef TARGET_FORMAT
#ifdef TE_PEP
#define TARGET_FORMAT "coff-x86-64"