This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49413] over-optimization that causes valid code to segfault
- From: "gattis at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jun 2011 01:19:59 +0000
- Subject: [Bug tree-optimization/49413] over-optimization that causes valid code to segfault
- Auto-submitted: auto-generated
- References: <bug-49413-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49413
--- Comment #7 from Matt Gattis <gattis at gmail dot com> 2011-06-15 01:19:57 UTC ---
(In reply to comment #6)
> The problem is:
> double *v = (qp == &(t->q)) ? t->xyz->va : t->xyz->vb;
>
> the pointer v is a pointer to a 8 byte aligned data but you supply it with
> something which is only 4 byte aligned.
Silly me, I thought the whole point of a compiler was to make it so you didn't
have to code to machine-specific byte alignments and instructions.