On Wed, Aug 23, 2017 at 04:37:07PM +0200, Tijl Coosemans wrote:
> Hi,
>
> The following program segfaults for me on amd64 when linked like this:
>
> cc -o test test.c -lpthread -L/usr/local/lib/gcc5 -lgcc_s -rpath
> /usr/local/lib/gcc5
>
>
> #include
> #include
On Thu, 24 Aug 2017 18:42:35 +0300 Konstantin Belousov
wrote:
> On Wed, Aug 23, 2017 at 04:37:07PM +0200, Tijl Coosemans wrote:
>> The following program segfaults for me on amd64 when linked like this:
>>
>> cc -o test test.c -lpthread -L/usr/local/lib/gcc5 -lgcc_s -rpath
>> /usr/local/lib/gcc5
> Author: imp
> Date: Fri Aug 25 04:33:06 2017
> New Revision: 322875
> URL:
> https://svnweb.freebsd.org/changeset/base/322875
>
>
> Log:
> Use _Static_assert
>
> These files are compiled in userland too, so we can't use sys/systm.h
> and rely on CTASSERT. Switch to using _Static_asser