2010-11-08 Xinliang David Li <davidxl@google.com>
- PR/46316
+ PR tree-optimization/46316
* tree-vrp.c (adjust_range_with_scev): Check double_int
overflow.
* double-int.h (double_int_mul_with_sign): New function.
2010-11-08 Xinliang David Li <davidxl@google.com>
- PR/46316
- * gcc.dg/tree-ssa/pr46316.c: New test.
+ PR tree-optimization/46316
+ * gcc.c-torture/execute/pr46316.c: New test.
2010-11-08 Janus Weil <janus@gcc.gnu.org>
--- /dev/null
+extern void abort (void);
+
+long long __attribute__((noinline,noclone))
+foo (long long t)
+{
+ while (t > -4)
+ t -= 2;
+
+ return t;
+}
+
+int main(void)
+{
+ if (foo (0) != -4)
+ abort ();
+ return 0;
+}
+++ /dev/null
-/* { dg-do run } */
-/* { dg-options "-O2" } */
-
-extern void abort (void);
-
-long long __attribute__((noinline,noclone))
-foo (long long t)
-{
- while (t > -4)
- t -= 2;
-
- return t;
-}
-
-int main(void)
-{
- if (foo (0) != -4)
- abort ();
- return 0;
-}