summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-02-17 21:50:40 -0800
committerOri Bernstein <ori@eigenstate.org>2017-02-17 21:59:48 -0800
commit210b24e9cf07baef21fb0fd943f81f38a3196945 (patch)
treec7751599a9424edc4b2ecbdb851971d89c9b12c5 /parse/gram.y
parent2e48449a7eff16d5e1c47938747f1b35c1440ee3 (diff)
downloadmc-210b24e9cf07baef21fb0fd943f81f38a3196945.tar.gz
Set loc when parsing decllist
Otherwise, the .use file gets a garbage line value, causing builds to be unreproducible.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index bc3e114..540a4fe 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -287,7 +287,7 @@ attrs : /* empty */ {$$.nstr = 0; $$.str = NULL;}
;
decllist: declbody {
- $$.nl = NULL; $$.nn = 0;
+ $$.loc = $1->loc; $$.nl = NULL; $$.nn = 0;
lappend(&$$.nl, &$$.nn, $1);
}
| declbody Tcomma decllist {