aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-01-10 10:10:06 +0000
committerNick Clifton <nickc@redhat.com>2011-01-10 10:10:06 +0000
commit7af8ed2d479fcf1180e05b47e294e685dae4626e (patch)
tree117da36d8af5bf965627e7d76b893b94a2a1d644 /gas
parentcdf9ccec6add02e4044663e0dfc264d216d1561d (diff)
downloadgdb-7af8ed2d479fcf1180e05b47e294e685dae4626e.zip
gdb-7af8ed2d479fcf1180e05b47e294e685dae4626e.tar.gz
gdb-7af8ed2d479fcf1180e05b47e294e685dae4626e.tar.bz2
* config/tc-i386.c (x86_elf_abi): Only define for targets that use
it.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5745a91..2318483 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2011-01-10 Nick Clifton <nickc@redhat.com>
+ * config/tc-i386.c (x86_elf_abi): Only define for targets that use
+ it.
+
+2011-01-10 Nick Clifton <nickc@redhat.com>
+
* config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
part of the file.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 6f30dda..a5f9c49 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -391,6 +391,10 @@ static enum flag_code flag_code;
static unsigned int object_64bit;
static int use_rela_relocations = 0;
+#if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \
+ || defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) \
+ || defined (TE_PE) || defined (TE_PEP) || defined (OBJ_MACH_O))
+
/* The ELF ABI to use. */
enum x86_elf_abi
{
@@ -400,6 +404,7 @@ enum x86_elf_abi
};
static enum x86_elf_abi x86_elf_abi = I386_ABI;
+#endif
/* The names used to print error messages. */
static const char *flag_code_names[] =