aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 2d466ff..384f5fb 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -980,9 +980,7 @@ do_pragma_poison (pfile)
if (hp->type != T_POISON)
{
cpp_warning (pfile, "poisoning existing macro `%s'", hp->name);
- if (hp->type == T_MACRO)
- _cpp_free_definition (hp->value.defn);
- hp->value.defn = 0;
+ _cpp_free_definition (hp);
hp->type = T_POISON;
}
}