diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-05-02 19:20:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-05-02 19:20:27 +0000 |
commit | 805ef5a0e29b1440bef7df44bd19e613762170c6 (patch) | |
tree | b6d5a0ba027ef2dcb0c640c3c50afe0b502216bf /lib/libc/arch | |
parent | 81138b1756e772c36615fbbdc27a8c0ea1a19c3f (diff) |
Add Doug Gwyn's portable alloca() for platforms w/o an assembler
version. Normally, gcc provides its own alloca() (unless -fno-builtin
is specified). The C version is decidedly suboptimal--we really
need proper assembler versions but this will work as a stop-gap
measure.
Diffstat (limited to 'lib/libc/arch')
-rw-r--r-- | lib/libc/arch/alpha/gen/Makefile.inc | 6 | ||||
-rw-r--r-- | lib/libc/arch/hppa/gen/Makefile.inc | 3 | ||||
-rw-r--r-- | lib/libc/arch/m88k/gen/Makefile.inc | 3 | ||||
-rw-r--r-- | lib/libc/arch/mips/gen/Makefile.inc | 3 | ||||
-rw-r--r-- | lib/libc/arch/powerpc/gen/Makefile.inc | 1 | ||||
-rw-r--r-- | lib/libc/arch/sparc/gen/Makefile.inc | 3 | ||||
-rw-r--r-- | lib/libc/arch/sparc64/gen/Makefile.inc | 3 |
7 files changed, 14 insertions, 8 deletions
diff --git a/lib/libc/arch/alpha/gen/Makefile.inc b/lib/libc/arch/alpha/gen/Makefile.inc index b9df181ef49..67af127a822 100644 --- a/lib/libc/arch/alpha/gen/Makefile.inc +++ b/lib/libc/arch/alpha/gen/Makefile.inc @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.4 2001/09/10 22:38:11 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2003/05/02 19:20:26 millert Exp $ # $NetBSD: Makefile.inc,v 1.3 1995/04/29 05:09:14 cgd Exp $ -SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c modf.c \ - setjmp.S +SRCS+= _setjmp.S alloca.c fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c \ + modf.c setjmp.S SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= sigsetjmp.S diff --git a/lib/libc/arch/hppa/gen/Makefile.inc b/lib/libc/arch/hppa/gen/Makefile.inc index 26a255cdba7..e59f0cd20ff 100644 --- a/lib/libc/arch/hppa/gen/Makefile.inc +++ b/lib/libc/arch/hppa/gen/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.5 2002/05/17 18:41:02 mickey Exp $ +# $OpenBSD: Makefile.inc,v 1.6 2003/05/02 19:20:26 millert Exp $ SRCS+= setjmp.S SRCS+= fabs.c frexp.c ldexp.c @@ -6,3 +6,4 @@ SRCS+= isnan.c isinf.c infinity.c setjmp.S SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= modf.c +SRCS+= alloca.c diff --git a/lib/libc/arch/m88k/gen/Makefile.inc b/lib/libc/arch/m88k/gen/Makefile.inc index c89d6e16a5a..a21dd5d2966 100644 --- a/lib/libc/arch/m88k/gen/Makefile.inc +++ b/lib/libc/arch/m88k/gen/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.2 2001/09/21 14:49:15 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2003/05/02 19:20:26 millert Exp $ # $NetBSD: Makefile.inc,v 1.3 1995/04/10 21:09:06 jtc Exp $ #SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c modf.S @@ -11,3 +11,4 @@ SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= setjmp.S sigsetjmp.S SRCS+= modf.c +SRCS+= alloca.c diff --git a/lib/libc/arch/mips/gen/Makefile.inc b/lib/libc/arch/mips/gen/Makefile.inc index d2afa4040a2..27d23fc3e9b 100644 --- a/lib/libc/arch/mips/gen/Makefile.inc +++ b/lib/libc/arch/mips/gen/Makefile.inc @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.3 1996/08/19 08:15:50 tholo Exp $ +# $OpenBSD: Makefile.inc,v 1.4 2003/05/02 19:20:26 millert Exp $ SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.S ldexp.S modf.S SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= setjmp.S sigsetjmp.S +SRCS+= alloca.c diff --git a/lib/libc/arch/powerpc/gen/Makefile.inc b/lib/libc/arch/powerpc/gen/Makefile.inc index 3e0e5091c31..7f9092c3dc4 100644 --- a/lib/libc/arch/powerpc/gen/Makefile.inc +++ b/lib/libc/arch/powerpc/gen/Makefile.inc @@ -3,3 +3,4 @@ SRCS+= ldexp.c fabs.c frexp.c SRCS+= fpgetmask.c fpsetmask.c SRCS+= fpgetround.c fpsetround.c SRCS+= fpgetsticky.c fpsetsticky.c +SRCS+= alloca.c diff --git a/lib/libc/arch/sparc/gen/Makefile.inc b/lib/libc/arch/sparc/gen/Makefile.inc index d0fa7366173..95e1b4011ef 100644 --- a/lib/libc/arch/sparc/gen/Makefile.inc +++ b/lib/libc/arch/sparc/gen/Makefile.inc @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.2 1996/08/19 08:17:24 tholo Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2003/05/02 19:20:26 millert Exp $ SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c modf.S SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= fixunsdfsi.S mul.S umul.S saveregs.S setjmp.S sigsetjmp.S +SRCS+= alloca.c diff --git a/lib/libc/arch/sparc64/gen/Makefile.inc b/lib/libc/arch/sparc64/gen/Makefile.inc index fc594a5525e..227469f6920 100644 --- a/lib/libc/arch/sparc64/gen/Makefile.inc +++ b/lib/libc/arch/sparc64/gen/Makefile.inc @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.1 2001/08/29 01:48:12 art Exp $ +# $OpenBSD: Makefile.inc,v 1.2 2003/05/02 19:20:26 millert Exp $ SRCS+= _setjmp.S fabs.S frexp.c infinity.c isinf.c isnan.c ldexp.c modf.S SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \ fpsetround.c fpsetsticky.c SRCS+= fixunsdfsi.S mul.S umul.S saveregs.S setjmp.S sigsetjmp.S +SRCS+= alloca.c |