public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44050]  New: Wrong code is produced with -fipa-pta -fno-tree-pta
@ 2010-05-09 18:32 zsojka at seznam dot cz
  2010-05-09 18:34 ` [Bug tree-optimization/44050] " zsojka at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-05-09 18:32 UTC (permalink / raw)
  To: gcc-bugs

Tested revisions:
r159202 - fail
r159152 - fail

Compiler output:
$ gcc -O1 -fipa-cp -fipa-pta -fno-tree-pta testcase.c -DDEBUG && ./a.out
res = 0
Aborted

Corrent coutput:
$ gcc testcase.c -DDEBUG && ./a.out
res = 500500


-- 
           Summary: Wrong code is produced with -fipa-pta -fno-tree-pta
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
@ 2010-05-09 18:34 ` zsojka at seznam dot cz
  2010-05-09 18:41 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-05-09 18:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zsojka at seznam dot cz  2010-05-09 18:34 -------
Created an attachment (id=20613)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20613&action=view)
reduced testcase (from testsuite/gcc.dg/graphite/interchange-10.c)

Command line:
$ gcc -O1 -fipa-cp -fipa-pta -fno-tree-pta testcase.c && ./a.out
Aborted


-- 


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
  2010-05-09 18:34 ` [Bug tree-optimization/44050] " zsojka at seznam dot cz
@ 2010-05-09 18:41 ` rguenth at gcc dot gnu dot org
  2010-05-09 18:43 ` zsojka at seznam dot cz
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-09 18:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-05-09 18:41 -------
Mine.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-09 18:41:02
               date|                            |


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
  2010-05-09 18:34 ` [Bug tree-optimization/44050] " zsojka at seznam dot cz
  2010-05-09 18:41 ` rguenth at gcc dot gnu dot org
@ 2010-05-09 18:43 ` zsojka at seznam dot cz
  2010-05-09 20:49 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2010-05-09 18:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from zsojka at seznam dot cz  2010-05-09 18:43 -------
Created an attachment (id=20616)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20616&action=view)
even shorter testcase

$ gcc -O1 -fipa-cp -fipa-pta -fno-tree-pta pr44050-2.c && ./a.out
Aborted


-- 

zsojka at seznam dot cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20613|0                           |1
        is obsolete|                            |


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-05-09 18:43 ` zsojka at seznam dot cz
@ 2010-05-09 20:49 ` rguenth at gcc dot gnu dot org
  2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
  2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-09 20:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-05-09 20:49 -------
Hm.  The issue is we do not clone the ipa-pta flag in gimple_df but transfer
ipa-pta info based on the setting of the flag in the src.  This confuses
us later.

I have a patch.


-- 


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-05-09 20:49 ` rguenth at gcc dot gnu dot org
@ 2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
  2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-10  8:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2010-05-10 08:56 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


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


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

* [Bug tree-optimization/44050] Wrong code is produced with -fipa-pta -fno-tree-pta
  2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
@ 2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-10  8:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-05-10 08:55 -------
Subject: Bug 44050

Author: rguenth
Date: Mon May 10 08:55:32 2010
New Revision: 159214

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159214
Log:
2010-05-10  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/44050
        * tree-inline.c (tree_function_versioning): Clone the ipa-pta
        flag.

        * gcc.dg/torture/pr44050.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr44050.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


-- 


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


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

end of thread, other threads:[~2010-05-10  8:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-09 18:32 [Bug tree-optimization/44050] New: Wrong code is produced with -fipa-pta -fno-tree-pta zsojka at seznam dot cz
2010-05-09 18:34 ` [Bug tree-optimization/44050] " zsojka at seznam dot cz
2010-05-09 18:41 ` rguenth at gcc dot gnu dot org
2010-05-09 18:43 ` zsojka at seznam dot cz
2010-05-09 20:49 ` rguenth at gcc dot gnu dot org
2010-05-10  8:56 ` rguenth at gcc dot gnu dot org
2010-05-10  8:56 ` rguenth 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).