aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-11-14 20:32:45 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2007-11-14 20:32:45 +0100
commitf7bc70c5bfd8b06a03df87734d37201cc0ac9463 (patch)
tree56a9982dab30a92ee91cd730d2f2414c84520071 /gcc/tree-ssa.c
parent3bc8ba2577b766aa844b84255225cef90e7080bd (diff)
downloadgcc-f7bc70c5bfd8b06a03df87734d37201cc0ac9463.zip
gcc-f7bc70c5bfd8b06a03df87734d37201cc0ac9463.tar.gz
gcc-f7bc70c5bfd8b06a03df87734d37201cc0ac9463.tar.bz2
re PR middle-end/34088 (ICE with uninitialized variable and -Werror)
PR middle-end/34088 * tree-ssa.c (delete_tree_ssa): Don't call fini_ssa_operands if init_ssa_operands has not been called for cfun. * gcc.dg/pr34088.c: New test. From-SVN: r130187
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index 9baf6bc..eeb7680 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -899,7 +899,8 @@ delete_tree_ssa (void)
fini_ssanames ();
fini_phinodes ();
/* we no longer maintain the SSA operand cache at this point. */
- fini_ssa_operands ();
+ if (ssa_operands_active ())
+ fini_ssa_operands ();
cfun->gimple_df->global_var = NULL_TREE;