public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
@ 2008-03-11 13:16 dominiq at lps dot ens dot fr
2008-03-11 14:19 ` [Bug testsuite/35538] " hjl dot tools at gmail dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-03-11 13:16 UTC (permalink / raw)
To: gcc-bugs
On (powerpc|i686)-apple-darwin9 I see the following failure in 32 and 64 bit
modes:
FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized
"conststaticvariable" 1
[ibook-dhum] test/tmp% cat ssa-store-ccp-4.c.127t.optimized
;; Function f (f)
Analyzing Edge Insertions.
f ()
{
<bb 2>:
return 0;
}
Is this a bug in gcc or in the testsuite?
--
Summary: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-
times optimized "conststaticvariable" 1
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dominiq at lps dot ens dot fr
GCC build triplet: i686-apple-darwin9
GCC host triplet: i686-apple-darwin9
GCC target triplet: i686-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
@ 2008-03-11 14:19 ` hjl dot tools at gmail dot com
2008-03-11 14:20 ` hjl dot tools at gmail dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-11 14:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjl dot tools at gmail dot com 2008-03-11 14:18 -------
It looks like variables in a shared library can't be overridden
at run time on MacOS. You can skip or xfail it for MacOS.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
2008-03-11 14:19 ` [Bug testsuite/35538] " hjl dot tools at gmail dot com
@ 2008-03-11 14:20 ` hjl dot tools at gmail dot com
2008-03-12 9:34 ` ubizjak at gmail dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-11 14:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2008-03-11 14:20 -------
Created an attachment (id=15296)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15296&action=view)
A patch
Try this patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
2008-03-11 14:19 ` [Bug testsuite/35538] " hjl dot tools at gmail dot com
2008-03-11 14:20 ` hjl dot tools at gmail dot com
@ 2008-03-12 9:34 ` ubizjak at gmail dot com
2008-03-12 9:58 ` ubizjak at gmail dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ubizjak at gmail dot com @ 2008-03-12 9:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ubizjak at gmail dot com 2008-03-12 09:33 -------
There are also issues with ssa-store-cpp-3.c and -fpic on i686 and x86_64
linux:
http://gcc.gnu.org/ml/gcc-testresults/2008-03/msg00828.html
http://gcc.gnu.org/ml/gcc-testresults/2008-03/msg00831.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (2 preceding siblings ...)
2008-03-12 9:34 ` ubizjak at gmail dot com
@ 2008-03-12 9:58 ` ubizjak at gmail dot com
2008-03-12 10:36 ` dominiq at lps dot ens dot fr
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ubizjak at gmail dot com @ 2008-03-12 9:58 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (3 preceding siblings ...)
2008-03-12 9:58 ` ubizjak at gmail dot com
@ 2008-03-12 10:36 ` dominiq at lps dot ens dot fr
2008-03-12 13:46 ` hjl dot tools at gmail dot com
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-03-12 10:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dominiq at lps dot ens dot fr 2008-03-12 10:35 -------
> There are also issues with ssa-store-cpp-3.c and -fpic on i686 and x86_64 linux:
I have noticed the same issue on i686-apple-darwin9:
http://gcc.gnu.org/ml/gcc-testresults/2008-03/msg00841.html
The config is:
configure flags: --build=i686-apple-darwin9 --host=i686-apple-darwin9
--target=i686-apple-darwin9 --with-gnu-as --enable-shared
--prefix=/opt/gnu/gcc/gcc-4.4.0 --with-gmp=/opt/gnu/gcc/gcc-4.4.0
--enable-debug=no --disable-nls
--enable-languages=c,c++,objc,fortran,ada,obj-c++,java
compared to mine:
configure flags: --prefix=/opt/gcc/gcc4.4w --mandir=/opt/gcc/gcc4.4w/share/man
--infodir=/opt/gcc/gcc4.4w/share/info --build=i686-apple-darwin9
--enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/usr --with-system-zlib --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (4 preceding siblings ...)
2008-03-12 10:36 ` dominiq at lps dot ens dot fr
@ 2008-03-12 13:46 ` hjl dot tools at gmail dot com
2008-03-12 15:22 ` dominiq at lps dot ens dot fr
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-12 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl dot tools at gmail dot com 2008-03-12 13:45 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00727.html
Dominique, can you test it?
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2008-
| |03/msg00727.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (5 preceding siblings ...)
2008-03-12 13:46 ` hjl dot tools at gmail dot com
@ 2008-03-12 15:22 ` dominiq at lps dot ens dot fr
2008-03-12 16:07 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-03-12 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dominiq at lps dot ens dot fr 2008-03-12 15:21 -------
Subject: Re: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c
scan-tree-dump-times optimized "conststaticvariable" 1
> Dominique, can you test it?
I have now on i686-apple-darwin9 32 bit mode:
FAIL: gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized
"conststaticvariable" 1
while the failure for gcc.dg/tree-ssa/ssa-store-ccp-4.c is gone.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (6 preceding siblings ...)
2008-03-12 15:22 ` dominiq at lps dot ens dot fr
@ 2008-03-12 16:07 ` hjl dot tools at gmail dot com
2008-03-12 16:14 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-12 16:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl dot tools at gmail dot com 2008-03-12 16:06 -------
(In reply to comment #7)
> Subject: Re: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c
> scan-tree-dump-times optimized "conststaticvariable" 1
>
> > Dominique, can you test it?
>
> I have now on i686-apple-darwin9 32 bit mode:
>
> FAIL: gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized
> "conststaticvariable" 1
>
> while the failure for gcc.dg/tree-ssa/ssa-store-ccp-4.c is gone.
>
I guess we have to skip this one on darwin.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (7 preceding siblings ...)
2008-03-12 16:07 ` hjl dot tools at gmail dot com
@ 2008-03-12 16:14 ` hjl dot tools at gmail dot com
2008-03-14 6:55 ` uros at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-12 16:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl dot tools at gmail dot com 2008-03-12 16:14 -------
(In reply to comment #7)
> Subject: Re: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c
> scan-tree-dump-times optimized "conststaticvariable" 1
>
> > Dominique, can you test it?
>
> I have now on i686-apple-darwin9 32 bit mode:
>
> FAIL: gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized
> "conststaticvariable" 1
Please try
http://gcc.gnu.org/ml/gcc-patches/2008-03/msg00744.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |http://gcc.gnu.org/ml/gcc-
|patches/2008- |patches/2008-
|03/msg00727.html |03/msg00744.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (8 preceding siblings ...)
2008-03-12 16:14 ` hjl dot tools at gmail dot com
@ 2008-03-14 6:55 ` uros at gcc dot gnu dot org
2008-03-14 7:00 ` ubizjak at gmail dot com
2008-03-16 16:50 ` danglin at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: uros at gcc dot gnu dot org @ 2008-03-14 6:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from uros at gcc dot gnu dot org 2008-03-14 06:55 -------
Subject: Bug 35538
Author: uros
Date: Fri Mar 14 06:54:19 2008
New Revision: 133208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133208
Log:
PR testsuite/35538
* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Support PIC targets.
Skip *-*-darwin*.
* gcc.dg/tree-ssa/ssa-store-ccp-4.c: Skip *-*-darwin*.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-3.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-store-ccp-4.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (9 preceding siblings ...)
2008-03-14 6:55 ` uros at gcc dot gnu dot org
@ 2008-03-14 7:00 ` ubizjak at gmail dot com
2008-03-16 16:50 ` danglin at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: ubizjak at gmail dot com @ 2008-03-14 7:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from ubizjak at gmail dot com 2008-03-14 07:00 -------
Fixed.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug testsuite/35538] FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
` (10 preceding siblings ...)
2008-03-14 7:00 ` ubizjak at gmail dot com
@ 2008-03-16 16:50 ` danglin at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-03-16 16:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from danglin at gcc dot gnu dot org 2008-03-16 16:49 -------
On hppa64-hp-hpux11.11,
FAIL: gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized
"conststa
ticvariable" 1
The tree dump is the same as for darwin. This target is always pic.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35538
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-03-16 16:50 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-11 13:16 [Bug testsuite/35538] New: FAIL: gcc.dg/tree-ssa/ssa-store-ccp-4.c scan-tree-dump-times optimized "conststaticvariable" 1 dominiq at lps dot ens dot fr
2008-03-11 14:19 ` [Bug testsuite/35538] " hjl dot tools at gmail dot com
2008-03-11 14:20 ` hjl dot tools at gmail dot com
2008-03-12 9:34 ` ubizjak at gmail dot com
2008-03-12 9:58 ` ubizjak at gmail dot com
2008-03-12 10:36 ` dominiq at lps dot ens dot fr
2008-03-12 13:46 ` hjl dot tools at gmail dot com
2008-03-12 15:22 ` dominiq at lps dot ens dot fr
2008-03-12 16:07 ` hjl dot tools at gmail dot com
2008-03-12 16:14 ` hjl dot tools at gmail dot com
2008-03-14 6:55 ` uros at gcc dot gnu dot org
2008-03-14 7:00 ` ubizjak at gmail dot com
2008-03-16 16:50 ` danglin at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).