aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2006-03-15 10:14:51 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2006-03-15 10:14:51 +0000
commitc0fa4721981cd9c1675141bde3741e6151221dec (patch)
tree9fbf776b5cca18df37d94358dc7b8b216c719912
parentcc0f88952b9390e41d25adc84be3eea99808a501 (diff)
downloadgcc-c0fa4721981cd9c1675141bde3741e6151221dec.zip
gcc-c0fa4721981cd9c1675141bde3741e6151221dec.tar.gz
gcc-c0fa4721981cd9c1675141bde3741e6151221dec.tar.bz2
gensupport.c (identify_predicable_attribute): Don't free p_false when it is still in use.
* gensupport.c (identify_predicable_attribute): Don't free p_false when it is still in use. From-SVN: r112081
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gensupport.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 419c5db..8a51c0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-15 Andreas Schwab <schwab@suse.de>
+
+ * gensupport.c (identify_predicable_attribute): Don't free p_false
+ when it is still in use.
+
2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
* config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index 16878b8..c15540b 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -510,10 +510,9 @@ identify_predicable_attribute (void)
"unknown value `%s' for `predicable' attribute",
value);
errors = 1;
+ if (p_false)
+ free (p_false);
}
-
- if (p_false)
- free (p_false);
}
/* Return the number of alternatives in constraint S. */