diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-05-01 09:21:46 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2006-05-01 09:21:46 +0000 |
commit | 89cdfe5739c7646eaba0f004158522d39c0808aa (patch) | |
tree | bfc15e9af77db4b990d69efbcc464bfad21aabe7 /gas/symbols.c | |
parent | c35da14031bf1f026af52fcce346803f47b5ae94 (diff) | |
download | gdb-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.c | 5 |
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); |