ref: ae85c343cdfd8e1e5c2d58e59afb79e915f85383
parent: 340a01c8ba628e3e496356ce61e8c5186712da11
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri May 13 10:57:18 EDT 2016
[cc1] Simplify pragma() message printing There is no need of printing character by character when you can print the full string at once.
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -548,16 +548,13 @@
{
static char magic[] = {
#include "stallman.msg"
- }, *p = magic;
- extern int warnings;
+ };
if (cppoff)
return;
next();
- if (!strcmp(yytext, "GCC") && warnings) {
- for (; *p; p++)
- putc(*p, stderr);
- }
+ if (!strcmp(yytext, "GCC"))
+ warn(magic);
warn("ignoring pragma '%s'", input->begin);
*input->p = '\0';
next();