public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
@ 2011-02-21 15:14 danglin at gcc dot gnu.org
  2011-02-21 15:36 ` [Bug tree-optimization/47838] " danglin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-02-21 15:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

           Summary: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not
                    optimized "fundamentals..0"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: hppa1.1-hp-hpux10.20
            Target: hppa1.1-hp-hpux10.20
             Build: hppa1.1-hp-hpux10.20


Executing on host: /xxx/gnu/gcc/objdir/gcc/xgcc -B/xxx/gnu/gcc/objdir/gcc/
/xxx/
gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c   -O2
-fdump-tree-optimi
zed -S  -o foldconst-2.s    (timeout = 300)
PASS: gcc.dg/tree-ssa/foldconst-2.c (test for excess errors)
FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized
"fundamentals.0
"


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/47838] FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
  2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
@ 2011-02-21 15:36 ` danglin at gcc dot gnu.org
  2011-02-21 17:08 ` mikpe at it dot uu.se
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-02-21 15:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2011-02-21 15:12:18 UTC ---
Created attachment 23427
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23427
Tree dump.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/47838] FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
  2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
  2011-02-21 15:36 ` [Bug tree-optimization/47838] " danglin at gcc dot gnu.org
@ 2011-02-21 17:08 ` mikpe at it dot uu.se
  2011-02-22 10:58 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2011-02-21 17:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2011-02-21 17:03:34 UTC ---
I see the foldconst-2 failure also on powerpc64-linux, ever since the 20100904
trunk snapshot.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/47838] FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
  2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
  2011-02-21 15:36 ` [Bug tree-optimization/47838] " danglin at gcc dot gnu.org
  2011-02-21 17:08 ` mikpe at it dot uu.se
@ 2011-02-22 10:58 ` rguenth at gcc dot gnu.org
  2011-02-23 16:32 ` danglin at gcc dot gnu.org
  2011-02-23 16:44 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-22 10:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.02.22 10:56:25
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-22 10:56:25 UTC ---
IVOPTs chooses (again) some unfortunate IV that is enough to confuse the
tree-dump scan.

  ivtmp.6_6 = (long unsigned int) &fundamentals[1];

vs.

  ivtmp.6_6 = (long unsigned int) &fundamentals[0];

The folding that is tested for should happen at loop header copying time.

Can you check if

Index: testsuite/gcc.dg/tree-ssa/foldconst-2.c
===================================================================
--- testsuite/gcc.dg/tree-ssa/foldconst-2.c     (revision 170359)
+++ testsuite/gcc.dg/tree-ssa/foldconst-2.c     (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fdump-tree-ch" } */
 typedef union tree_node *tree;
 enum tree_code
 {
@@ -54,5 +54,5 @@ emit_support_tinfos (void)
 }
 /* We should copy loop header to fundamentals[0] and then fold it way into
    known value.  */
-/* { dg-final { scan-tree-dump-not "fundamentals.0" "optimized"} } */
-/* { dg-final { cleanup-tree-dump "optimized" } } */
+/* { dg-final { scan-tree-dump-not "fundamentals.0" "ch"} } */
+/* { dg-final { cleanup-tree-dump "ch" } } */

works for you (it does for me) and commit it if so?

Thanks.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/47838] FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
  2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-02-22 10:58 ` rguenth at gcc dot gnu.org
@ 2011-02-23 16:32 ` danglin at gcc dot gnu.org
  2011-02-23 16:44 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-02-23 16:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> 2011-02-23 15:53:56 UTC ---
Author: danglin
Date: Wed Feb 23 15:53:48 2011
New Revision: 170439

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170439
Log:
    PR tree-optimization/47838
    * gcc.dg/tree-ssa/foldconst-2.c: Scan tree-ch dump.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/foldconst-2.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/47838] FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0"
  2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-02-23 16:32 ` danglin at gcc dot gnu.org
@ 2011-02-23 16:44 ` danglin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-02-23 16:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47838

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> 2011-02-23 15:55:02 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-23 15:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-21 15:14 [Bug tree-optimization/47838] New: FAIL: gcc.dg/tree-ssa/foldconst-2.c scan-tree-dump-not optimized "fundamentals..0" danglin at gcc dot gnu.org
2011-02-21 15:36 ` [Bug tree-optimization/47838] " danglin at gcc dot gnu.org
2011-02-21 17:08 ` mikpe at it dot uu.se
2011-02-22 10:58 ` rguenth at gcc dot gnu.org
2011-02-23 16:32 ` danglin at gcc dot gnu.org
2011-02-23 16:44 ` danglin at gcc dot gnu.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).