This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/61068] -O3 generates bad code (when tree-vectorize or inline-functions is on)
- From: "wence at gmx dot li" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 May 2014 06:12:56 +0000
- Subject: [Bug target/61068] -O3 generates bad code (when tree-vectorize or inline-functions is on)
- Auto-submitted: auto-generated
- References: <bug-61068-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61068
--- Comment #5 from Lawrence Mitchell <wence at gmx dot li> ---
(In reply to Zdenek Sojka from comment #3)
> You are casting "double arg1_0[12][3]" (and others) to "(double *)arg1_0"
> and then using it as a single-dimensional array. The code has undefined
> behaviour.
Apologies, I I've updated the test case to use 1D arrays everywhere and the
problem persists. I believe this latter does not invoke undefined behaviour.
Thanks,
Lawrence