public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58772] New: __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code
@ 2013-10-17 23:33 roothorick at gmail dot com
  2013-10-18  8:30 ` [Bug c++/58772] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: roothorick at gmail dot com @ 2013-10-17 23:33 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-22  9:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 23:33 [Bug c++/58772] New: __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code roothorick at gmail dot com
2013-10-18  8:30 ` [Bug c++/58772] " rguenth at gcc dot gnu.org
2013-10-18 15:41 ` roothorick at gmail dot com
2013-10-21  8:52 ` rguenth at gcc dot gnu.org
2013-10-21  9:04 ` paolo.carlini at oracle dot com
2013-10-21  9:35 ` burnus at gcc dot gnu.org
2013-10-21  9:50   ` pinskia
2013-10-21 10:07 ` burnus at gcc dot gnu.org
2013-10-22  9:50 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).