Commit 85339618 by Marek Polacek Committed by Marek Polacek

re PR middle-end/67821 (ICE in duplicate_ssa_name_range_info)

	PR tree-optimization/67821
	* tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.

	* gcc.dg/torture/pr67821-2.c: New test.
	* gcc.dg/torture/pr67821.c: New test.

From-SVN: r228490
parent 66c69a82
2015-10-05 Marek Polacek <polacek@redhat.com>
PR tree-optimization/67821
* tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
PR other/65021
2015-10-05 Marek Polacek <polacek@redhat.com>
PR tree-optimization/67821
* gcc.dg/torture/pr67821-2.c: New test.
* gcc.dg/torture/pr67821.c: New test.
2015-10-05 Kirill Yukhin <kirill.yukhin@intel.com>
* gcc.target/i386/builtin_target.c: Add check for "skylake-avx512".
......
/* { dg-do compile } */
int a, b, c, d, e, g;
short f;
void
fn1 ()
{
int i;
f = a - b;
e = (c && (i = d = (unsigned) f - 1)) || i;
g = (unsigned) f - 1;
c && (d = 0);
}
/* { dg-do compile } */
int isdigit (int);
int
foo (const char *s)
{
int success = 1;
const char *p = s + 2;
if (!isdigit (*p))
success = 0;
while (isdigit (*p))
++p;
return success;
}
......@@ -503,7 +503,6 @@ duplicate_ssa_name_range_info (tree name, enum value_range_type range_type,
gcc_assert (!POINTER_TYPE_P (TREE_TYPE (name)));
gcc_assert (!SSA_NAME_RANGE_INFO (name));
gcc_assert (!SSA_NAME_ANTI_RANGE_P (name));
if (!range_info)
return;
......
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