[Bug c++/58772] New: __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code
roothorick at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 17 23:33:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58772
Bug ID: 58772
Summary: __attribute__((aligned(16))) and nested classes cause
-ftree-vectorize to generate segfaulting code
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: roothorick at gmail dot com
Created attachment 31027
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31027&action=edit
Testcase for the bug
Compile the attached code with:
g++ -m32 -O1 -msse2 -ftree-vectorize
It will segfault when run.
Any of the following will remove the segfault:
* Removing -m32 (that is, compiling for x86-64)
* Removing -msse2 (presumably because -ftree-vectorize no longer has an
instruction to vectorize with)
* Removing -ftree-vectorize (presumably the source of the bug)
* Changing __attribute__((aligned(16))) to 32, or removing it entirely.
I do not know if the testcase is in the most reduced form; I just kept adding
things until it did what I saw happening in my (much larger, ~300kLOC)
codebase.
More information about the Gcc-bugs
mailing list