mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Natanael Copa <ncopa@alpinelinux.org>
To: musl@lists.openwall.com
Cc: musl@lists.openwall.com
Subject: Re: _Alignas in i386/bits/alltypes.h.in
Date: Thu, 11 Sep 2014 05:01:10 +0200	[thread overview]
Message-ID: <1410418870.6465.1@mail.alpinelinux.org> (raw)
In-Reply-To: <20140910152220.GB21835@port70.net>

On Wed, Sep 10, 2014 at 1:22 PM, Szabolcs Nagy <nsz@port70.net> wrote:
> _Alignas usage in the definition of max_align_t
> is visible in stddef.h when __cplusplus >= 201103L
> 
> there should be a
> 
>  #if __cplusplus >= 201103L
>  #define _Alignas alignas
>  #endif
> 
> somewhere, or use alignas ifdef __cpluslpus in alltypes
> 
> it may be reasonable to define _Alignas and _Noreturn
> in features.h to the c++11 equivalents in c++ mode


FYI. This issue breaks qt5 build and xulrunner/firefox build on x86.

Testcase:

#include <iostream>
#include <cstddef>
int main()
{
    std::cout << alignof(::max_align_t) << '\n';
}


-nc



      reply	other threads:[~2014-09-11  3:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 15:22 Szabolcs Nagy
2014-09-11  3:01 ` Natanael Copa [this message]

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=1410418870.6465.1@mail.alpinelinux.org \
    --to=ncopa@alpinelinux.org \
    --cc=musl@lists.openwall.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).