Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2014 03:28:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 193594] stddef.h should define max_align_t
Message-ID:  <bug-193594-15-2LpsTStM5S@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193594-15@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193594-15@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193594

--- Comment #1 from lichray@gmail.com ---
One more issue needs to be fixed for libc++ in base if we make the change:

In cstddef, the latest version contains

#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T)
// Re-use the compiler's <stddef.h> max_align_t where possible.
using ::max_align_t;
#else
typedef long double max_align_t;
#endif

which is hacky, but the version we use is even worse

typedef long double max_align_t;

, which is bad.

After we updated /usr/include/stddef.h, we should patch our libc++ to say just

using ::max_align_t;

in C++11 mode (exactly what libstdc++ does).

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193594-15-2LpsTStM5S>