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
+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".
--- /dev/null
+/* { 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);
+}
--- /dev/null
+/* { 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;
+}
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;