commit 23d3a6d3c2d03f9de9f586306ccda0132ecc0f2d
parent 3ead769a620c76bba4456774c718a8bf9f39fe7f
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;
}