Re: svn commit: r307756 - in head: include sys/sys

2016-10-24 Thread John Baldwin
On Saturday, October 22, 2016 12:00:56 AM Brooks Davis wrote: > On Fri, Oct 21, 2016 at 11:50:02PM +, John Baldwin wrote: > > Author: jhb > > Date: Fri Oct 21 23:50:02 2016 > > New Revision: 307756 > > URL: https://svnweb.freebsd.org/changeset/base/307756 > > > > Log: > > Define max_align_t

Re: svn commit: r307756 - in head: include sys/sys

2016-10-22 Thread Dimitry Andric
On 22 Oct 2016, at 16:00, Dimitry Andric wrote: > > On 22 Oct 2016, at 02:00, Brooks Davis wrote: ... >> Ideally I'd add a void * as well since that will support systems like >> CHERI where pointers are the largest type. > > Is void * larger than a struct

Re: svn commit: r307756 - in head: include sys/sys

2016-10-22 Thread Dimitry Andric
On 22 Oct 2016, at 02:00, Brooks Davis wrote: > > On Fri, Oct 21, 2016 at 11:50:02PM +, John Baldwin wrote: >> Author: jhb >> Date: Fri Oct 21 23:50:02 2016 >> New Revision: 307756 >> URL: https://svnweb.freebsd.org/changeset/base/307756 >> >> Log: >> Define max_align_t

Re: svn commit: r307756 - in head: include sys/sys

2016-10-21 Thread Brooks Davis
On Fri, Oct 21, 2016 at 11:50:02PM +, John Baldwin wrote: > Author: jhb > Date: Fri Oct 21 23:50:02 2016 > New Revision: 307756 > URL: https://svnweb.freebsd.org/changeset/base/307756 > > Log: > Define max_align_t for C11. > > libc++'s stddef.h includes an existing definition of

svn commit: r307756 - in head: include sys/sys

2016-10-21 Thread John Baldwin
Author: jhb Date: Fri Oct 21 23:50:02 2016 New Revision: 307756 URL: https://svnweb.freebsd.org/changeset/base/307756 Log: Define max_align_t for C11. libc++'s stddef.h includes an existing definition of max_align_t for C++11, but it is only defined for C++, not for C. In addition, GCC