summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-10-28 21:37:29 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-10-28 21:37:29 +0000
commit29738c23db23f076d60e5f43f299831de3cdb4ea (patch)
tree2c8af507c3d42769ee221be660019ef3147d6905 /lib/libc/arch
parent304de858fd8cf910c1fd24b570fba187f7e84c1d (diff)
Remove __builtin_saveregs: gcc hasn't used it for years.
suggested by miod@ ok kettenis@
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/sparc64/Symbols.list1
-rw-r--r--lib/libc/arch/sparc64/gen/Makefile.inc4
-rw-r--r--lib/libc/arch/sparc64/gen/saveregs.S60
3 files changed, 2 insertions, 63 deletions
diff --git a/lib/libc/arch/sparc64/Symbols.list b/lib/libc/arch/sparc64/Symbols.list
index c61f3f6cac0..70c4d7f0f1f 100644
--- a/lib/libc/arch/sparc64/Symbols.list
+++ b/lib/libc/arch/sparc64/Symbols.list
@@ -49,7 +49,6 @@ _Qp_sub
_Qp_uitoq
_Qp_uxtoq
_Qp_xtoq
-__builtin_saveregs
__dtoul
__ftoul
_mcount
diff --git a/lib/libc/arch/sparc64/gen/Makefile.inc b/lib/libc/arch/sparc64/gen/Makefile.inc
index e75461ed470..58259cedef6 100644
--- a/lib/libc/arch/sparc64/gen/Makefile.inc
+++ b/lib/libc/arch/sparc64/gen/Makefile.inc
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile.inc,v 1.13 2012/04/19 19:14:56 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.14 2017/10/28 21:37:28 guenther Exp $
SRCS+= _setjmp.S fabs.S fixunsdfsi.S flt_rounds.c fpclassifyl.c \
fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
fpsetround.c fpsetsticky.c infinity.c isfinitel.c \
isinfl.c isnanl.c isnormall.c ldexp.c modf.S \
- mul.S nan.c saveregs.S setjmp.S signbitl.c sigsetjmp.S umul.S
+ mul.S nan.c setjmp.S signbitl.c sigsetjmp.S umul.S
diff --git a/lib/libc/arch/sparc64/gen/saveregs.S b/lib/libc/arch/sparc64/gen/saveregs.S
deleted file mode 100644
index bbf1e8ae727..00000000000
--- a/lib/libc/arch/sparc64/gen/saveregs.S
+++ /dev/null
@@ -1,60 +0,0 @@
-/* $OpenBSD: saveregs.S,v 1.2 2003/06/02 20:18:32 millert Exp $ */
-/* $NetBSD: saveregs.S,v 1.2 2000/07/21 03:14:15 eeh Exp $ */
-
-/*
- * Copyright (c) 1992, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This software was developed by the Computer Systems Engineering group
- * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
- * contributed to Berkeley.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: Header: saveregs.s,v 1.1 91/07/06 17:22:33 torek Exp
- */
-
-#include <machine/asm.h>
-
-/*
- * Save register arguments in caller's `arg dump' area, so that
- * stdarg functions work.
- *
- * This really should be done with a pointer to the arg dump area;
- * our caller should allocate that area, not our caller's caller.
- * But then, they did not let me invent the calling sequence....
- *
- * We assume the caller has executed a `save' instruction.
- */
-#define REGOFF (BIAS - CC64FSZ)
-
-ENTRY(__builtin_saveregs)
- stx %i0, [%fp + REGOFF + 0x00] ! fr->fr_argd[0]
- stx %i1, [%fp + REGOFF + 0x08] ! fr->fr_argd[1]
- stx %i2, [%fp + REGOFF + 0x10] ! fr->fr_argd[2]
- stx %i3, [%fp + REGOFF + 0x18] ! fr->fr_argd[3]
- stx %i4, [%fp + REGOFF + 0x20] ! fr->fr_argd[4]
- retl
- stx %i5, [%fp + REGOFF + 0x28] ! fr->fr_argd[5]