scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit d568fd8d152de68813cfe4a3f9a66d9ed9165c69
parent 62f15e1be888bbe090e85f507162bea06bdb0642
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  8 Feb 2023 22:11:42 +0100

cc1: Add additional debug information about cpp

Diffstat:
Msrc/cmd/cc/cc1/cpp.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc1/cpp.c b/src/cmd/cc/cc1/cpp.c @@ -788,6 +788,7 @@ ifclause(int negate, int isifdef) cpperror("parameter of #if is not an integer constant expression"); return; } + DBG("CPP if expr=%d", expr->sym->u.i); status = expr->sym->u.i != 0; freetree(expr); } @@ -796,6 +797,7 @@ ifclause(int negate, int isifdef) status = !status; if (status == 0) ++cppoff; + DBG("CPP if result=%d", status); ifstate[n].enabled = status; ifstate[n].iselse = 0; }