public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: pinskia@gmail.com To: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> Cc: "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org> Subject: Re: [Bug c++/58772] __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code Date: Mon, 21 Oct 2013 09:50:00 -0000 [thread overview] Message-ID: <1FFB3FFD-C4AB-4F6E-859B-8C373659DE7A@gmail.com> (raw) In-Reply-To: <bug-58772-4-hA92m9mOyw@http.gcc.gnu.org/bugzilla/> Sent from my iPad > On Oct 21, 2013, at 2:35 AM, "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58772 > > Tobias Burnus <burnus at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |burnus at gcc dot gnu.org > > --- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> --- > (In reply to Richard Biener from comment #3) >> The syntax would be >> ::posix_memalign (&act, 16, sizeof (Actor)); > > Or > #include <mm_malloc.h> > ... > act = _mm_malloc, sizeof (Actor), 16); > which is supposed to be a bit more portable. (mm_malloc.h ships with GCC since > 4.0, if I recall correctly.) Less portable as that only works on x86 while posix_memalign works on all posix targets. >From gcc-bugs-return-432334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 21 09:50:11 2013 Return-Path: <gcc-bugs-return-432334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24526 invoked by alias); 21 Oct 2013 09:50:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24231 invoked by uid 55); 21 Oct 2013 09:50:07 -0000 From: "pinskia at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58772] __attribute__((aligned(16))) and nested classes cause -ftree-vectorize to generate segfaulting code Date: Mon, 21 Oct 2013 09:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-58772-4-biqSkdOvdG@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-58772-4@http.gcc.gnu.org/bugzilla/> References: <bug-58772-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01478.txt.bz2 Content-length: 1041 http://gcc.gnu.org/bugzilla/show_bug.cgi?idX772 --- Comment #6 from pinskia at gmail dot com <pinskia at gmail dot com> --- Sent from my iPad > On Oct 21, 2013, at 2:35 AM, "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?idX772 > > Tobias Burnus <burnus at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |burnus at gcc dot gnu.org > > --- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> --- > (In reply to Richard Biener from comment #3) >> The syntax would be >> ::posix_memalign (&act, 16, sizeof (Actor)); > > Or > #include <mm_malloc.h> > ... > act = _mm_malloc, sizeof (Actor), 16); > which is supposed to be a bit more portable. (mm_malloc.h ships with GCC since > 4.0, if I recall correctly.) Less portable as that only works on x86 while posix_memalign works on all posix targets.
next prev parent reply other threads:[~2013-10-21 9:50 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-17 23:33 [Bug c++/58772] New: " 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 [this message] 2013-10-21 10:07 ` burnus at gcc dot gnu.org 2013-10-22 9:50 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1FFB3FFD-C4AB-4F6E-859B-8C373659DE7A@gmail.com \ --to=pinskia@gmail.com \ --cc=gcc-bugs@gcc.gnu.org \ --cc=gcc-bugzilla@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).