This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42508] New: wrong code with "-O1 -fipa-sra"
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2009 11:18:33 -0000
- Subject: [Bug tree-optimization/42508] New: wrong code with "-O1 -fipa-sra"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
+++ This bug was initially created as a clone of Bug #42290 +++
Command line:
g++ -O1 -fipa-sra testcase.cpp && ./a.out
(-Wall shows valid (but misleading?) warnings as described in bug 42290)
Tested versions:
r155434 - broken
r154886 - broken
r154830 - OK
r153685 - OK
Output:
g++ -O1 -fipa-sra testcase.cpp && ./a.out
2
-1419800576
Expected output:
g++ -O1 -fipa-sra testcase.cpp && ./a.out
2
1
--
Summary: wrong code with "-O1 -fipa-sra"
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: major
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42508