diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-05-20 20:22:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-05-20 20:22:49 +0200 |
commit | 0e8b84ec02f16c1560f81eaf971f4deb8e3223ad (patch) | |
tree | de1a085f9d0f6b9844b2ba4d78b283a22df23d44 | |
parent | 54381af7343506f3be32c51921faae1045fc5574 (diff) | |
download | gcc-0e8b84ec02f16c1560f81eaf971f4deb8e3223ad.zip gcc-0e8b84ec02f16c1560f81eaf971f4deb8e3223ad.tar.gz gcc-0e8b84ec02f16c1560f81eaf971f4deb8e3223ad.tar.bz2 |
re PR bootstrap/49086 (libgomp/task.c:79:1: internal compiler error: Segmentation fault)
PR bootstrap/49086
* gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
From-SVN: r173967
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2dd964..bacccd1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-20 Jakub Jelinek <jakub@redhat.com> + + PR bootstrap/49086 + * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL + for PHI args that are SSA_NAME_IS_DEFAULT_DEF. + 2011-05-20 Joseph Myers <joseph@codesourcery.com> * Makefile.in: Update comment referring to $(OBJS-common). diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 933a47b..c98fd6a 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -2276,7 +2276,8 @@ and_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, code2, op2a, op2b)) return NULL_TREE; } - else if (TREE_CODE (arg) == SSA_NAME) + else if (TREE_CODE (arg) == SSA_NAME + && !SSA_NAME_IS_DEFAULT_DEF (arg)) { tree temp; gimple def_stmt = SSA_NAME_DEF_STMT (arg); @@ -2737,7 +2738,8 @@ or_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, code2, op2a, op2b)) return NULL_TREE; } - else if (TREE_CODE (arg) == SSA_NAME) + else if (TREE_CODE (arg) == SSA_NAME + && !SSA_NAME_IS_DEFAULT_DEF (arg)) { tree temp; gimple def_stmt = SSA_NAME_DEF_STMT (arg); |