-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix expansions that start from the end of another expansion (#839)
Do not free an expansion until its offset is *past* its size. This means potentially freeing a nested stack of expansions all at once. Fixes #696
- Loading branch information
Showing
9 changed files
with
94 additions
and
91 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
recurse EQUS "recurse " | ||
recurse EQUS "recurse" | ||
recurse | ||
|
||
; FIXME: also handle the following: | ||
; recurse EQUS "recurse" | ||
; recurse |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
recurse EQUS "\{recurse\} " | ||
recurse EQUS "\{recurse\}" | ||
{recurse} | ||
|
||
; FIXME: also handle the following: | ||
; recurse EQUS "\{recurse\}" | ||
; {recurse} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
FATAL: interpolation-recursion.asm(2): | ||
Recursion limit (64) exceeded | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse} " | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" | ||
while expanding symbol "{recurse}" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
warning: unique-id.asm(12) -> unique-id.asm::m(4): [-Wuser] | ||
_u1 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(12) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~1(6): [-Wuser] | ||
_u2 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(12) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~2(6): [-Wuser] | ||
_u3 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(12) -> unique-id.asm::m(8): [-Wuser] | ||
_u1 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(14) -> unique-id.asm::m(4): [-Wuser] | ||
_u4 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(14) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~1(6): [-Wuser] | ||
_u5 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(14) -> unique-id.asm::m(5) -> unique-id.asm::m::REPT~2(6): [-Wuser] | ||
_u6 | ||
while expanding symbol "warn_unique" | ||
warning: unique-id.asm(14) -> unique-id.asm::m(8): [-Wuser] | ||
_u4 | ||
while expanding symbol "warn_unique" | ||
FATAL: unique-id.asm(15): | ||
Macro argument '\@' not defined | ||
while expanding symbol "warn_unique" |
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