ref: 4d3bd7972a348bbadd872312a68a0b2570a8bd02
parent: b8e51de07999a695f7e66bcfa1b270e61896dd5d
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Oct 6 05:21:43 EDT 2015
Fix output of string in only cpp mode The quotation marks were omitted.
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -741,7 +741,7 @@
printf("%s ", yytext);
continue;
}
- for (s = yylval.sym->u.s; c = *s; ++s) {
+ for (s = yytext; c = *s; ++s) {
switch (c) {
case '\n':
t = "\\n";
@@ -770,6 +770,7 @@
break;
}
}
+ putchar(' ');
}
putchar('\n');
}