Commit 0e8b84ec by Jakub Jelinek Committed by Jakub Jelinek

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
parent 54381af7
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> 2011-05-20 Joseph Myers <joseph@codesourcery.com>
* Makefile.in: Update comment referring to $(OBJS-common). * Makefile.in: Update comment referring to $(OBJS-common).
......
...@@ -2276,7 +2276,8 @@ and_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, ...@@ -2276,7 +2276,8 @@ and_comparisons_1 (enum tree_code code1, tree op1a, tree op1b,
code2, op2a, op2b)) code2, op2a, op2b))
return NULL_TREE; 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; tree temp;
gimple def_stmt = SSA_NAME_DEF_STMT (arg); gimple def_stmt = SSA_NAME_DEF_STMT (arg);
...@@ -2737,7 +2738,8 @@ or_comparisons_1 (enum tree_code code1, tree op1a, tree op1b, ...@@ -2737,7 +2738,8 @@ or_comparisons_1 (enum tree_code code1, tree op1a, tree op1b,
code2, op2a, op2b)) code2, op2a, op2b))
return NULL_TREE; 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; tree temp;
gimple def_stmt = SSA_NAME_DEF_STMT (arg); gimple def_stmt = SSA_NAME_DEF_STMT (arg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment