ref: 9833ce7547fe04b441bdabf7ad86783c7be6efeb
parent: fb8177349e9d26b8f2ded4fb54128d56c2f9c179
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Apr 4 10:09:02 EDT 2022
cc1: Assign name in defdefine() The name field can be used later with DBG() so it is better to assign some meaningful value.
--- a/src/cmd/cc/cc1/cpp.c
+++ b/src/cmd/cc/cc1/cpp.c
@@ -35,7 +35,7 @@
defdefine(char *macro, char *val, char *source)
{
char *def, *fmt = "#define %s %s\n";
- Symbol dummy = {.flags = SDECLARED};
+ Symbol dummy = {.name = macro, .flags = SDECLARED};
if (!val)
val = "";