2011-04-28 Richard Guenther <rguenther@suse.de>
PR tree-optimization/40052
PR tree-optimization/15347
* gcc.dg/tree-ssa/vrp57.c: New testcase.
* gcc.dg/pr15347.c: Likewise.
From-SVN: r173064
+2011-04-28 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/40052
+ PR tree-optimization/15347
+ * gcc.dg/tree-ssa/vrp57.c: New testcase.
+ * gcc.dg/pr15347.c: Likewise.
+
2011-04-28 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48530
--- /dev/null
+/* { dg-do link } */
+
+extern void link_error (void);
+int
+main ()
+{
+ if ("<12ers" + 1 == 0)
+ link_error ();
+ return 0;
+}
--- /dev/null
+/* PR40052 */
+/* { dg-do compile } */
+/* { dg-options "-O -ftree-vrp -fdump-tree-optimized" } */
+
+int foo(_Bool b)
+{
+ return b | 1;
+}
+
+int bar(_Bool b)
+{
+ return b & -2;
+}
+
+/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
+/* { dg-final { scan-tree-dump "return 1;" "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */