This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: i386: Only define x86_elf_abi for targets that use it


Hi Guys,

  I am applying the patch below as an obvious fix for x86 targets which
  do not use the x86_elf_abi variable in tc-i386.c  (eg i386-coff,
  i586-aout).

Cheers
  Nick

gas/ChangeLog
2011-01-10  Nick Clifton  <nickc@redhat.com>

	* config/tc-i386.c (x86_elf_abi): Only define for targets that use
	it.

Index: gas/config/tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.455
diff -u -3 -p -r1.455 tc-i386.c
--- gas/config/tc-i386.c	7 Jan 2011 17:44:28 -0000	1.455
+++ gas/config/tc-i386.c	10 Jan 2011 10:05:06 -0000
@@ -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[] =


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]