This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66804] Alignment issue caused by auto vectorization
- From: "felix.yang at huawei dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 08 Jul 2015 09:05:23 +0000
- Subject: [Bug tree-optimization/66804] Alignment issue caused by auto vectorization
- Auto-submitted: auto-generated
- References: <bug-66804-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804
--- Comment #4 from Fei Yang <felix.yang at huawei dot com> ---
(In reply to Markus Trippelsdorf from comment #2)
> You're invoking undefined behavior:
test.c:34:12: runtime error: store to
> misaligned address 0x000000401c8c for type 'unsigned char *', which requires
> 8 byte alignment
0x000000401c8c: note: pointer points here
00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
^
So your testcase is invalid.
Any reference? The testcase works fine without vectorization. thanks