summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-07-27 14:08:08 +0000
committerH.J. Lu <hjl@lucon.org>2005-07-27 14:08:08 +0000
commit17a781cb3e80808a2539e010d9c81c99e1402211 (patch)
tree9df7130133d3b186b8c1a1ff1fafb54081fe3f13
parent7fdd95d5d0721cf514579c779ca781d4f452e6bc (diff)
downloadbinutils-redhat-17a781cb3e80808a2539e010d9c81c99e1402211.tar.gz
2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (handle_large_common): Declare only for ELF.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-i386.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0d0a3ff418..bd65c4b625 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (handle_large_common): Declare only for ELF.
+
2005-07-27 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.h (unw_r_record): Change type of fr_mem to unsigned
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 139e403699..948231185a 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -111,6 +111,9 @@ static void output_disp PARAMS ((fragS *insn_start_frag,
#ifndef I386COFF
static void s_bss PARAMS ((int));
#endif
+#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
+static void handle_large_common (int small ATTRIBUTE_UNUSED);
+#endif
static const char *default_arch = DEFAULT_ARCH;
@@ -305,7 +308,6 @@ static int allow_naked_reg = 0;
leave, push, and pop instructions so that gcc has the same stack
frame as in 32 bit mode. */
static char stackop_size = '\0';
-static void handle_large_common (int small ATTRIBUTE_UNUSED);
/* Non-zero to optimize code alignment. */
int optimize_align_code = 1;