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 | 1484e78d337f3d73fd0bf4a588956a494182a022 (patch) | |
tree | b3617d34ef9e4b584028fc539ce3deaaa0e719c8 /gas/symbols.c | |
parent | b21e8cc408eb12bea690167d360e6edfca49d3d5 (diff) | |
download | binutils-redhat-1484e78d337f3d73fd0bf4a588956a494182a022.tar.gz |
* 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 ca2d41ea9c..499e8c4d31 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); |