re PR preprocessor/32868 (Don't warn about redefinitions of __STDC_FORMAT_MACROS)
libcpp PR preprocessor/32868: * macro.c (_cpp_create_definition): Special case __STDC_FORMAT_MACROS. gcc/testsuite PR preprocessor/32868: * gcc.dg/cpp/pr32868.c: New file. From-SVN: r130544
This commit is contained in:
parent
28d67019f9
commit
607f74e9c6
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR preprocessor/32868:
|
||||||
|
* gcc.dg/cpp/pr32868.c: New file.
|
||||||
|
|
||||||
2007-11-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
2007-11-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||||
|
|
||||||
PR fortran/34248
|
PR fortran/34248
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
/* PR preprocessor/32868. It is ok to redefine __STDC_FORMAT_MACROS. */
|
||||||
|
|
||||||
|
/* { dg-do preprocess } */
|
||||||
|
|
||||||
|
#define __STDC_FORMAT_MACROS 1
|
||||||
|
#define __STDC_FORMAT_MACROS 1
|
|
@ -1,3 +1,9 @@
|
||||||
|
2007-11-30 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR preprocessor/32868:
|
||||||
|
* macro.c (_cpp_create_definition): Special case
|
||||||
|
__STDC_FORMAT_MACROS.
|
||||||
|
|
||||||
2007-11-16 Michael Matz <matz@suse.de>
|
2007-11-16 Michael Matz <matz@suse.de>
|
||||||
|
|
||||||
* files.c (search_path_head): Fix check for absolute paths.
|
* files.c (search_path_head): Fix check for absolute paths.
|
||||||
|
|
|
@ -1695,7 +1695,8 @@ _cpp_create_definition (cpp_reader *pfile, cpp_hashnode *node)
|
||||||
/* Enter definition in hash table. */
|
/* Enter definition in hash table. */
|
||||||
node->type = NT_MACRO;
|
node->type = NT_MACRO;
|
||||||
node->value.macro = macro;
|
node->value.macro = macro;
|
||||||
if (! ustrncmp (NODE_NAME (node), DSC ("__STDC_")))
|
if (! ustrncmp (NODE_NAME (node), DSC ("__STDC_"))
|
||||||
|
&& ustrcmp (NODE_NAME (node), (const uchar *) "__STDC_FORMAT_MACROS"))
|
||||||
node->flags |= NODE_WARN;
|
node->flags |= NODE_WARN;
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
|
Loading…
Reference in New Issue