public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta
@ 2011-01-24 3:11 zsojka at seznam dot cz
2011-01-24 4:11 ` [Bug tree-optimization/47426] " zsojka at seznam dot cz
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-24 3:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
Summary: [4.6 Regression] wrong code with -O2 -fipa-pta
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
CC: rguenth@gcc.gnu.org
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 23093
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23093
foo.c
Output:
$ gcc main.c foo.c -O2
$ ./a.out
$ gcc main.c foo.c -O2 -fipa-pta
$ ./a.out
Aborted
foo.c is miscompiled
I don't know if this should be marked as regression.
Tested revisions:
r169143 - fail
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
@ 2011-01-24 4:11 ` zsojka at seznam dot cz
2011-01-24 8:25 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-24 4:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-24 02:05:12 UTC ---
Created attachment 23094
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23094
main.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
2011-01-24 4:11 ` [Bug tree-optimization/47426] " zsojka at seznam dot cz
@ 2011-01-24 8:25 ` hjl.tools at gmail dot com
2011-01-25 11:20 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-24 8:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.01.24 05:19:22
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-24 05:19:22 UTC ---
It is caused by revision 158374:
http://gcc.gnu.org/ml/gcc-cvs/2010-04/msg00480.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
2011-01-24 4:11 ` [Bug tree-optimization/47426] " zsojka at seznam dot cz
2011-01-24 8:25 ` hjl.tools at gmail dot com
@ 2011-01-25 11:20 ` rguenth at gcc dot gnu.org
2011-01-25 13:24 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-25 11:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-25 11:10:34 UTC ---
Mine (it's not really a regression).
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-01-25 11:20 ` rguenth at gcc dot gnu.org
@ 2011-01-25 13:24 ` rguenth at gcc dot gnu.org
2011-01-25 16:46 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-25 13:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-25 13:16:58 UTC ---
The problem is that i_1(D) has an empty points-to set. It doesn't even
receive constraints which is because the function is static but it
escapes from getfoo which results in us failing to add NONLOCAL
parameter inputs.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-01-25 13:24 ` rguenth at gcc dot gnu.org
@ 2011-01-25 16:46 ` rguenth at gcc dot gnu.org
2011-01-26 9:58 ` jakub at gcc dot gnu.org
2011-02-02 17:51 ` dnovillo at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-25 16:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-25 16:38:32 UTC ---
Author: rguenth
Date: Tue Jan 25 16:38:26 2011
New Revision: 169241
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169241
Log:
2011-01-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47426
* tree-ssa-structalias.c (ipa_pta_execute): Make externally
visible functions results escape.
* gcc.dg/torture/pr47426-1.c: New testcase.
* gcc.dg/torture/pr47426-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr47426-1.c
trunk/gcc/testsuite/gcc.dg/torture/pr47426-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-structalias.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
` (4 preceding siblings ...)
2011-01-25 16:46 ` rguenth at gcc dot gnu.org
@ 2011-01-26 9:58 ` jakub at gcc dot gnu.org
2011-02-02 17:51 ` dnovillo at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 9:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |FIXED
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 08:39:39 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/47426] [4.6 Regression] wrong code with -O2 -fipa-pta
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
` (5 preceding siblings ...)
2011-01-26 9:58 ` jakub at gcc dot gnu.org
@ 2011-02-02 17:51 ` dnovillo at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 17:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47426
--- Comment #7 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:47:02 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:46:57 2011
New Revision: 169584
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169584
Log:
2011-01-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47426
* tree-ssa-structalias.c (ipa_pta_execute): Make externally
visible functions results escape.
* gcc.dg/torture/pr47426-1.c: New testcase.
* gcc.dg/torture/pr47426-2.c: Likewise.
Added:
branches/google/integration/gcc/testsuite/gcc.dg/torture/pr47426-1.c
branches/google/integration/gcc/testsuite/gcc.dg/torture/pr47426-2.c
Modified:
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/tree-ssa-structalias.c
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-02-02 17:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 3:11 [Bug tree-optimization/47426] New: [4.6 Regression] wrong code with -O2 -fipa-pta zsojka at seznam dot cz
2011-01-24 4:11 ` [Bug tree-optimization/47426] " zsojka at seznam dot cz
2011-01-24 8:25 ` hjl.tools at gmail dot com
2011-01-25 11:20 ` rguenth at gcc dot gnu.org
2011-01-25 13:24 ` rguenth at gcc dot gnu.org
2011-01-25 16:46 ` rguenth at gcc dot gnu.org
2011-01-26 9:58 ` jakub at gcc dot gnu.org
2011-02-02 17:51 ` dnovillo 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).