diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-14 07:57:30 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-14 07:57:30 +0000 |
commit | f9ba428f57a347082e6786362d7ce4aa7681944e (patch) | |
tree | 66d1ca092896d7ad7fe024a5554a310afefc23e4 /gcc/cpplib.c | |
parent | 67b8719a740421cb528d9266ac5a0782d15a8fdf (diff) | |
download | gcc-f9ba428f57a347082e6786362d7ce4aa7681944e.zip gcc-f9ba428f57a347082e6786362d7ce4aa7681944e.tar.gz gcc-f9ba428f57a347082e6786362d7ce4aa7681944e.tar.bz2 |
cpplib.c (do_define): Only free the old definition if it actually had one.
* cpplib.c (do_define): Only free the old definition if it
actually had one.
From-SVN: r31964
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 9238d33..844b89f 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -715,8 +715,9 @@ do_define (pfile, keyword) if (hp->type != T_POISON) { /* Replace the old definition. */ + if (hp->type == T_MACRO) + free_definition (hp->value.defn); hp->type = T_MACRO; - free_definition (hp->value.defn); hp->value.defn = mdef.defn; } } |