diff options
author | 2012-04-19 19:14:55 +0000 | |
---|---|---|
committer | 2012-04-19 19:14:55 +0000 | |
commit | c8b37736ee368613a840ed5118094e98d38d7607 (patch) | |
tree | ef5f59a46490f801b894ccf8c34eb4cac08677ed /lib/libc/arch/amd64 | |
parent | clear memory before passing to ioctl routines instead of praying it (diff) | |
download | wireguard-openbsd-c8b37736ee368613a840ed5118094e98d38d7607.tar.xz wireguard-openbsd-c8b37736ee368613a840ed5118094e98d38d7607.zip |
rely on the compiler giving us a built-in alloca. any new architecture
or compiler we use will.
ok millert
Diffstat (limited to 'lib/libc/arch/amd64')
-rw-r--r-- | lib/libc/arch/amd64/gen/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libc/arch/amd64/gen/alloca.S | 13 |
2 files changed, 1 insertions, 16 deletions
diff --git a/lib/libc/arch/amd64/gen/Makefile.inc b/lib/libc/arch/amd64/gen/Makefile.inc index 283e1115513..e995309ed71 100644 --- a/lib/libc/arch/amd64/gen/Makefile.inc +++ b/lib/libc/arch/amd64/gen/Makefile.inc @@ -1,9 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.11 2012/04/12 16:14:09 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.12 2012/04/19 19:14:55 deraadt Exp $ SRCS+= _setjmp.S fabs.S infinity.c ldexp.c modf.S nan.c setjmp.S \ sigsetjmp.S SRCS+= fpclassifyl.c isfinitel.c isinfl.c isnanl.c isnormall.c signbitl.c SRCS+= flt_rounds.S fpgetmask.S fpgetround.S fpgetsticky.S fpsetmask.S \ fpsetround.S fpsetsticky.S - -SRCS+= alloca.S diff --git a/lib/libc/arch/amd64/gen/alloca.S b/lib/libc/arch/amd64/gen/alloca.S deleted file mode 100644 index 8c15583012c..00000000000 --- a/lib/libc/arch/amd64/gen/alloca.S +++ /dev/null @@ -1,13 +0,0 @@ -/* $OpenBSD: alloca.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */ -/* $NetBSD: alloca.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $ */ - -#include <machine/asm.h> - -ENTRY(alloca) - popq %rdx - movq %rsp,%rcx - addq $15,%rdi /* round up to 16 bytes */ - andq $~15,%rdi - subq %rdi,%rsp - movq %rsp,%rax - jmp *%rdx |