This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
COMMIT: Fix compile time error building i386-netware
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 11 Apr 2011 09:29:22 +0100
- Subject: 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'
Cheers
Nick
gas/ChangeLog
2011-04-11 Nick Clifton <nickc@redhat.com>
* 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;
}
+#endif
void
x86_cons (expressionS *exp, int size)
@@ -6610,7 +6611,6 @@ x86_cons (expressionS *exp, int size)
if (intel_syntax)
i386_intel_simplify (exp);
}
-#endif
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)
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) x86_cons (EXP, NBYTES)
-extern void x86_cons (expressionS *, int);
#endif
+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