aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-06 18:36:55 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-06 18:36:55 +0000
commita0eb1c2c5673e8a13fa444359624e65beceb6b6b (patch)
treedb73c4499a752682d78f374dbea11e5c9b144424
parentbcaa9b051cff16a3fd53962e41add8fc2900fd3d (diff)
downloadgdb-a0eb1c2c5673e8a13fa444359624e65beceb6b6b.zip
gdb-a0eb1c2c5673e8a13fa444359624e65beceb6b6b.tar.gz
gdb-a0eb1c2c5673e8a13fa444359624e65beceb6b6b.tar.bz2
* config/tc-sparc.c (s_reserve): Don't permit redefinition, even
if the symbol was already in bss_section. Fix warning message. PR 6797.
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-sparc.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9174299..a59501d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Thu Jul 6 12:54:27 1995 Ian Lance Taylor <ian@cygnus.com>
+ * config/tc-sparc.c (s_reserve): Don't permit redefinition, even
+ if the symbol was already in bss_section. Fix warning message.
+
* listing.c (struct file_info_struct): Rename end_pending field to
at_end.
(file_info): Initialize at_end, not end_pending.
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 5bfa901..3d07a63 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -250,8 +250,7 @@ s_reserve (ignore)
else
align = 0;
- if ((S_GET_SEGMENT (symbolP) == bss_section
- || !S_IS_DEFINED (symbolP))
+ if (!S_IS_DEFINED (symbolP)
#ifdef OBJ_AOUT
&& S_GET_OTHER (symbolP) == 0
&& S_GET_DESC (symbolP) == 0
@@ -285,7 +284,8 @@ s_reserve (ignore)
}
else
{
- as_warn("Ignoring attempt to re-define symbol %s.", name);
+ as_warn("Ignoring attempt to re-define symbol %s",
+ S_GET_NAME (symbolP));
} /* if not redefining */
demand_empty_rest_of_line ();