summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index da6e39758b0..0ebd093f613 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -477,7 +477,7 @@ do_undef (pfile)
if (pfile->cb.undef)
(*pfile->cb.undef) (pfile, node);
- if (node->flags & NODE_BUILTIN)
+ if (node->flags & NODE_WARN)
cpp_warning (pfile, "undefining \"%s\"", node->name);
_cpp_free_definition (node);