+2017-11-20 Eric Gallager <egall@gwmail.gwu.edu>
+
+ PR preprocessor/81794
+ * gcc.dg/pragma-diag-7.c: Update to include check for
+ stringification.
+
2017-11-20 David Malcolm <dmalcolm@redhat.com>
PR c/81404
/* Note the extra space before the pragma on this next line: */
#pragma GCC diagnostic pop
unsigned long ok_again = 2UL; /* { dg-bogus "suffix" } */
+
+/* Redundant with the previous pop, but just shows that it fails to stop the
+ * following warning with an unpatched GCC: */
+#pragma GCC diagnostic ignored "-Wtraditional"
+
+/* { dg-bogus "would be stringified" "" { target *-*-* } .+1 } */
+#define UNW_DEC_PROLOGUE(fmt, body, rlen, arg) \
+ do { \
+ unw_rlen = rlen; \
+ *(int *)arg = body; \
+ printf(" %s:%s(rlen=%lu)\n", \
+ fmt, (body ? "body" : "prologue"), (unsigned long)rlen); \
+ } while (0)
+2017-11-20 Eric Gallager <egall@gwmail.gwu.edu>
+
+ PR preprocessor/81794
+ * macro.c (check_trad_stringification): Have warning be controlled
+ by -Wtraditional.
+
2017-11-20 David Malcolm <dmalcolm@redhat.com>
PR c++/72786
if (NODE_LEN (node) == len
&& !memcmp (p, NODE_NAME (node), len))
{
- cpp_error (pfile, CPP_DL_WARNING,
+ cpp_warning (pfile, CPP_W_TRADITIONAL,
"macro argument \"%s\" would be stringified in traditional C",
NODE_NAME (node));
break;