summaryrefslogtreecommitdiff
path: root/gas/macro.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
commit1484e78d337f3d73fd0bf4a588956a494182a022 (patch)
treeb3617d34ef9e4b584028fc539ce3deaaa0e719c8 /gas/macro.c
parentb21e8cc408eb12bea690167d360e6edfca49d3d5 (diff)
downloadbinutils-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/macro.c')
-rw-r--r--gas/macro.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gas/macro.c b/gas/macro.c
index af98bada6a..e6e9d05ba2 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -1025,7 +1025,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out)
sb t;
formal_entry *ptr;
formal_entry *f;
- int is_positional = 0;
int is_keyword = 0;
int narg = 0;
const char *err = NULL;
@@ -1116,8 +1115,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out)
}
else
{
- /* This is a positional arg. */
- is_positional = 1;
if (is_keyword)
{
err = _("can't mix positional and keyword arguments");