This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41630] [4.3/4.4 Regression] Optimization error on vectors of uint64_t
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 15:07:55 -0000
- Subject: [Bug c/41630] [4.3/4.4 Regression] Optimization error on vectors of uint64_t
- References: <bug-41630-18290@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-10-08 15:07 -------
With 4.3 and 4.4 it is SRA that does not avoid generating wrong code, with
4.5 SRA optimizes the code correctly and recognizes both forms access the
same memory (and thus we optimize the program to return 0).
Workaround: -fno-tree-sra
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41630