shithub: scc

Download patch

ref: a13c17546089254300d24c107065b0f584987069
parent: fc104bb2dabf97b04570992b6c3a6082f0c1aec2
author: Quentin Rameau <quinq@fifth.space>
date: Fri Jun 24 21:38:12 EDT 2016

[cpp] print correct pragma in warning message

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -573,7 +573,7 @@
 	next();
 	if (!strcmp(yytext, "GCC"))
 		warn(magic);
-	warn("ignoring pragma '%s'", input->begin);
+	warn("ignoring pragma '%s'", yytext);
 	*input->p = '\0';
 	next();
 }