summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-09-12 18:31:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-09-12 18:31:29 -0700
commitd626f355f6d3eb158968945b64d08411b259153b (patch)
tree5b55416d31dd2d835d5303e39988a6b3df910603
parent86b2e93081072a5c0032eba7d0008948ca5cae75 (diff)
downloadnasm-d626f355f6d3eb158968945b64d08411b259153b.tar.gz
preproc: correct handling of %ifdef for aliases
Correctly handling %ifdef when operating on aliases; we had an infinite loop going... Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index 2f1f767f..42cb969e 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1875,7 +1875,7 @@ restart:
(m->greedy && nparam >= m->nparam-1))) {
if (m->alias && !find_alias) {
if (do_aliases) {
- name = m->name;
+ name = m->expansion->text;
goto restart;
} else {
continue;