This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2008 09:57:56 -0000
- Subject: [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
- References: <bug-35538-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ubizjak at gmail dot com 2008-03-12 09:57 -------
(In reply to comment #3)
> There are also issues with ssa-store-cpp-3.c and -fpic on i686 and x86_64
Index: ssa-store-ccp-3.c
===================================================================
--- ssa-store-ccp-3.c (revision 133134)
+++ ssa-store-ccp-3.c (working copy)
@@ -8,7 +8,8 @@
return conststaticvariable;
}
-/* There should be no reference to conststaticvariable as we should have
- inlined the 0. */
-/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized"} } */
+/* There should be no reference for nonpic targets to
+ conststaticvariable as we should have inlined the 0. */
+/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized" {
target nonpic } } } */
+/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized" {
target { ! nonpic } } } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538