Commit 6aa1abe5 by Martin Liska Committed by Martin Liska

re PR tree-optimization/71239 (ICE in operand_equal_p (fold-const.c:2769))

Fix PR tree-optimization/71239.

	* g++.dg/pr71239.C: New test.
	PR tree-optimization/71239
	* tree.c (array_at_struct_end_p): Do not call operand_equal_p
	if DECL_SIZE is NULL.

From-SVN: r236696
parent 6ca8e33c
2016-05-25 Martin Liska <mliska@suse.cz>
PR tree-optimization/71239
* tree.c (array_at_struct_end_p): Do not call operand_equal_p
if DECL_SIZE is NULL.
2016-05-25 Richard Biener <rguenther@suse.de> 2016-05-25 Richard Biener <rguenther@suse.de>
* timevar.def (TV_TREE_LOOP_IFCVT): Add. * timevar.def (TV_TREE_LOOP_IFCVT): Add.
......
2016-05-25 Martin Liska <mliska@suse.cz>
* g++.dg/pr71239.C: New test.
2016-05-25 Richard Biener <rguenther@suse.de> 2016-05-25 Richard Biener <rguenther@suse.de>
* gcc/testsuite/gcc.dg/vect/pr58135.c: Rename to ... * gcc/testsuite/gcc.dg/vect/pr58135.c: Rename to ...
......
...@@ -13097,7 +13097,8 @@ array_at_struct_end_p (tree ref) ...@@ -13097,7 +13097,8 @@ array_at_struct_end_p (tree ref)
is valid because BUF allocate enough space. */ is valid because BUF allocate enough space. */
&& (!size || operand_equal_p (DECL_SIZE (ref), size, 0)) && (!size || (DECL_SIZE (ref) != NULL
&& operand_equal_p (DECL_SIZE (ref), size, 0)))
&& !(flag_unconstrained_commons && !(flag_unconstrained_commons
&& TREE_CODE (ref) == VAR_DECL && DECL_COMMON (ref))) && TREE_CODE (ref) == VAR_DECL && DECL_COMMON (ref)))
return false; return false;
......
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