Skip to content

Commit 4cdb62f

Browse files
author
H. Peter Anvin (Intel)
committed
listing: modify active_list_options, not just list_options
If the assembly stops after the first pass, only active_list_options will be seen; this is also the value that applies for local changes in the list options. Thus, both variables need to be tweaked. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent 7e82d9d commit 4cdb62f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

asm/listing.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,13 @@ static void list_update_options(const char *str)
365365
break;
366366
default:
367367
mask = list_option_mask(c);
368-
if (state)
368+
if (state) {
369369
list_options |= mask;
370-
else
370+
active_list_options |= mask;
371+
} else {
371372
list_options &= ~mask;
373+
active_list_options &= ~mask;
374+
}
372375
break;
373376
}
374377
}

0 commit comments

Comments
 (0)