-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When attempting to expand a macro, the list of argument is parsed by get_macro_args_toks which produced the next token after ')'. This token was then pushed on the tokens stack so it would be processed after the expanded macro's tokens. When multiple macros were expanded sequentially, this caused the last stack entry to never be empty, which broke the stack reuse mechanism (similar to TCO). This bug was not visible when bootstrapping pnuts because not enough macros were expanded in a row to trigger the issue. This is however a common pattern in TCC.
- Loading branch information
1 parent
4064bbc
commit 568be2a
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters