aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2006-05-01 09:21:46 +0000
committerBen Elliston <bje@au.ibm.com>2006-05-01 09:21:46 +0000
commit89cdfe5739c7646eaba0f004158522d39c0808aa (patch)
treebfc15e9af77db4b990d69efbcc464bfad21aabe7 /gas/symbols.c
parentc35da14031bf1f026af52fcce346803f47b5ae94 (diff)
downloadgdb-89cdfe5739c7646eaba0f004158522d39c0808aa.zip
gdb-89cdfe5739c7646eaba0f004158522d39c0808aa.tar.gz
gdb-89cdfe5739c7646eaba0f004158522d39c0808aa.tar.bz2
* listing.c (listing_listing): Remove useless loop.
* macro.c (macro_expand): Remove is_positional local variable. * read.c (s_comm_internal): Simplify `if' condition 1 || x -> 1 and simplify surrounding expressions, where possible. (assign_symbol): Likewise. (s_weakref): Likewise. * symbols.c (colon): Likewise.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index ca2d41e..499e8c4 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -336,10 +336,7 @@ colon (/* Just seen "x:" - rattle symbols & frags. */
|| S_IS_COMMON (symbolP)
|| S_IS_VOLATILE (symbolP))
{
- if (S_IS_VOLATILE (symbolP)
- /* This could be avoided when the symbol wasn't used so far, but
- the comment in struc-symbol.h says this flag isn't reliable. */
- && (1 || !symbol_used_p (symbolP)))
+ if (S_IS_VOLATILE (symbolP))
{
symbolP = symbol_clone (symbolP, 1);
S_SET_VALUE (symbolP, 0);