commit 96318574d434d66a7ea8b3b5ebefb773f4b6cb3d
parent 2e7e4ca6b9def1b7bae6b93285f6431039f9656a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 22 Mar 2022 11:15:33 +0100
cc1: Increase macro expansion debug output
This new output shows when the symbols are hided
and when they are unhided.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/cmd/cc/cc1/lex.c b/src/cmd/cc/cc1/lex.c
@@ -55,6 +55,7 @@ addinput(char *fname, Symbol *hide, char *buffer, int fail)
fp = NULL;
if (hide->hide == UCHAR_MAX)
die("cc1: too many macro expansions");
+ DBG("SYM: hidding symbol %s %d\n", hide->name, hide->hide);
++hide->hide;
flags = IMACRO;
} else if (fname) {
@@ -115,6 +116,7 @@ delinput(void)
break;
case IMACRO:
assert(hide->hide == 1);
+ DBG("SYM: unhidding symbol %s %d\n", hide->name, hide->hide);
--hide->hide;
break;
}