From 4e4f7c872bc46d8b26ebe03a61536620de7bcdea Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 11 Apr 2011 08:27:48 +0000 Subject: * config/tc-i386.c (x86_cons): Define even for non-ELF targets. * config/tc-i386.h (x86_cons): Always prototype. --- gas/config/tc-i386.c | 2 +- gas/config/tc-i386.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index aa345b5..111974e 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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) diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 6ce88af..bf227c6 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -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 -- cgit v1.1