This is the mail archive of the 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]

COMMIT: Fix compile time error building i386-netware

Hi Guys,

  I am checking in the patch below to fix this compile time error
  building the i386-netware toolchain:

    gas/config/tc-i386.c: In function 'handle_quad':
    gas/config/tc-i386.c:9180:7: error: implicit declaration of function 'x86_cons'


2011-04-11  Nick Clifton  <>

	* config/tc-i386.c (x86_cons): Define even for non-ELF targets.
	* config/tc-i386.h (x86_cons): Always prototype.

Index: gas/config/tc-i386.c
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.469
diff -u -3 -p -r1.469 tc-i386.c
--- gas/config/tc-i386.c	29 Mar 2011 12:40:50 -0000	1.469
+++ gas/config/tc-i386.c	11 Apr 2011 08:23:44 -0000
@@ -6559,6 +6559,7 @@ lex_got (enum bfd_reloc_code_real *rel,
   /* Might be a symbol version string.  Don't as_bad here.  */
   return NULL;
 x86_cons (expressionS *exp, int size)
@@ -6610,7 +6611,6 @@ x86_cons (expressionS *exp, int size)
   if (intel_syntax)
     i386_intel_simplify (exp);
 static void
 signed_cons (int size)
Index: gas/config/tc-i386.h
RCS file: /cvs/src/src/gas/config/tc-i386.h,v
retrieving revision 1.117
diff -u -3 -p -r1.117 tc-i386.h
--- gas/config/tc-i386.h	31 Dec 2010 00:33:34 -0000	1.117
+++ gas/config/tc-i386.h	11 Apr 2011 08:23:44 -0000
@@ -125,8 +125,8 @@ extern const char *i386_comment_chars;
 #if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (LEX_AT)
-extern void x86_cons (expressionS *, int);
+extern void x86_cons (expressionS *, int);
 #define TC_CONS_FIX_NEW(FRAG,OFF,LEN,EXP) x86_cons_fix_new(FRAG, OFF, LEN, EXP)
 extern void x86_cons_fix_new

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