Commit 5e8fe12f by Richard Biener Committed by Richard Biener

re PR tree-optimization/81297 (ICE in get_single_symbol)

2017-08-01  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/81297
	* tree-vrp.c (get_single_symbol): Remove assert, instead drop
	TREE_OVERFLOW from INTEGER_CSTs.

	* gcc.dg/torture/pr81297.c: New testcase.

From-SVN: r250758
parent 93ac482a
2017-08-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/81297
* tree-vrp.c (get_single_symbol): Remove assert, instead drop
TREE_OVERFLOW from INTEGER_CSTs.
2017-07-31 Segher Boessenkool <segher@kernel.crashing.org> 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma. * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
......
2017-08-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/81297
* gcc.dg/torture/pr81297.c: New testcase.
2017-07-31 Uros Bizjak <ubizjak@gmail.com> 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/naked-1.c (dg-options): Add -fno-pic. * gcc.target/i386/naked-1.c (dg-options): Add -fno-pic.
......
/* { dg-do compile } */
int
nf (int gy, int x0)
{
while (gy < 1)
++x0;
gy += !!gy;
if (gy < 0)
{
x0 += gy;
return (x0 > (gy + x0)) ? (1 / 0) : 1; /* { dg-warning "division by zero" } */
}
}
...@@ -796,7 +796,8 @@ get_single_symbol (tree t, bool *neg, tree *inv) ...@@ -796,7 +796,8 @@ get_single_symbol (tree t, bool *neg, tree *inv)
if (TREE_CODE (t) != SSA_NAME) if (TREE_CODE (t) != SSA_NAME)
return NULL_TREE; return NULL_TREE;
gcc_assert (! inv_ || ! TREE_OVERFLOW_P (inv_)); if (inv_ && TREE_OVERFLOW_P (inv_))
inv_ = drop_tree_overflow (inv_);
*neg = neg_; *neg = neg_;
*inv = inv_; *inv = inv_;
......
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