This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
committed: testsuite patches (11/14): Don't expect null pointer check elimination for target { keeps_null_pointer_checks }
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 20 Jul 2013 02:41:29 -0400
- Subject: committed: testsuite patches (11/14): Don't expect null pointer check elimination for target { keeps_null_pointer_checks }
Tested for avr with --target_board=atmega128-sim and native on
i686-pc-linuc-gnu.
Committed as obvious.
2013-07-17 Joern Rennecke <joern.rennecke@embecosm.com>
* gcc.dg/tree-ssa/pr21090.c: Do vrp1 scan check only for
target { ! keeps_null_pointer_checks }.
* gcc.dg/tree-ssa/unreachable.c: Do optimized scan check only for
target { ! keeps_null_pointer_checks }.
Index: gcc.dg/tree-ssa/pr21090.c
===================================================================
--- gcc.dg/tree-ssa/pr21090.c (revision 201032)
+++ gcc.dg/tree-ssa/pr21090.c (working copy)
@@ -19,5 +19,5 @@ foo (int a)
return 0;
}
-/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" } } */
+/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" { target { ! keeps_null_pointer_checks } } } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */
Index: gcc.dg/tree-ssa/unreachable.c
===================================================================
--- gcc.dg/tree-ssa/unreachable.c (revision 201032)
+++ gcc.dg/tree-ssa/unreachable.c (working copy)
@@ -11,5 +11,5 @@ main()
return 1;
return 0;
}
-/* { dg-final { scan-tree-dump-not "bad_boy" "optimized"} } */
+/* { dg-final { scan-tree-dump-not "bad_boy" "optimized" { target { ! keeps_null_pointer_checks } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */