mailing list of musl libc
 help / color / mirror / code / Atom feed
* _Alignas in i386/bits/alltypes.h.in
@ 2014-09-10 15:22 Szabolcs Nagy
  2014-09-11  3:01 ` Natanael Copa
  0 siblings, 1 reply; 2+ messages in thread
From: Szabolcs Nagy @ 2014-09-10 15:22 UTC (permalink / raw)
  To: musl

_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


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

* Re: _Alignas in i386/bits/alltypes.h.in
  2014-09-10 15:22 _Alignas in i386/bits/alltypes.h.in Szabolcs Nagy
@ 2014-09-11  3:01 ` Natanael Copa
  0 siblings, 0 replies; 2+ messages in thread
From: Natanael Copa @ 2014-09-11  3:01 UTC (permalink / raw)
  To: musl; +Cc: musl

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



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

end of thread, other threads:[~2014-09-11  3:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-10 15:22 _Alignas in i386/bits/alltypes.h.in Szabolcs Nagy
2014-09-11  3:01 ` Natanael Copa

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).