On Mon, Aug 31, 2020 at 12:38:57AM +, Taylor R Campbell wrote:
> > Date: Mon, 31 Aug 2020 00:25:52 +
> > From: m...@netbsd.org
> >
> > The following script fails to compile, it shouldn't.
> >
> > #!/bin/sh
> >
> > cat << EOF > test.c
> > #include
> > #include
> >
> > void f1(void)
>
> Date: Mon, 31 Aug 2020 00:25:52 +
> From: m...@netbsd.org
>
> The following script fails to compile, it shouldn't.
>
> #!/bin/sh
>
> cat << EOF > test.c
> #include
> #include
>
> void f1(void)
> {
> puts("pushed first");
> fflush(stdout);
> }
>
> void f2(void)
> {
> puts(
On Sun, Aug 30, 2020 at 07:50:59PM +0200, Joerg Sonnenberger wrote:
> On Sun, Aug 30, 2020 at 05:18:43PM +, m...@netbsd.org wrote:
> > On Sun, Aug 30, 2020 at 06:09:47PM +0200, Joerg Sonnenberger wrote:
> > > On Sun, Aug 30, 2020 at 12:00:33PM +, co...@sdf.org wrote:
> > > > Move the big "i
On Sun, Aug 30, 2020 at 05:18:43PM +, m...@netbsd.org wrote:
> On Sun, Aug 30, 2020 at 06:09:47PM +0200, Joerg Sonnenberger wrote:
> > On Sun, Aug 30, 2020 at 12:00:33PM +, co...@sdf.org wrote:
> > > Move the big "if _NETBSD_SOURCE" chunk to the "Implementation defined"
> > > section.
> >
On Sun, Aug 30, 2020 at 06:09:47PM +0200, Joerg Sonnenberger wrote:
> On Sun, Aug 30, 2020 at 12:00:33PM +, co...@sdf.org wrote:
> > Move the big "if _NETBSD_SOURCE" chunk to the "Implementation defined"
> > section.
> > Makes "at_quick_exit" and others visible for strict C/C++.
>
> alloca is
On Sun, Aug 30, 2020 at 12:00:33PM +, co...@sdf.org wrote:
> Move the big "if _NETBSD_SOURCE" chunk to the "Implementation defined"
> section.
> Makes "at_quick_exit" and others visible for strict C/C++.
alloca is not part of POSIX.
Joerg
... This is some progress towards the previous patch being viable,
however I'll have to patch libstdc++ and a bunch of other things, too.
Move the big "if _NETBSD_SOURCE" chunk to the "Implementation defined" section.
Makes "at_quick_exit" and others visible for strict C/C++.
Index: stdlib
On Sun, Aug 30, 2020 at 10:42:14AM +, co...@sdf.org wrote:
> _NETBSD_SOURCE defines some extra functions, which may use reserved
> names. The following patch avoids this problem.
>
> OK?
I immediately regret my decision. Things are very broken this way.
_NETBSD_SOURCE defines some extra functions, which may use reserved
names. The following patch avoids this problem.
OK?
Index: sys/featuretest.h
===
RCS file: /cvsroot/src/sys/sys/featuretest.h,v
retrieving revision 1.10
diff -u -r