summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-03-22 07:32:35 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-03-22 07:32:35 +0000
commit8ee73ce0f99999cbe894966fe11127d4526ba77d (patch)
tree59e246a923e044b6a220825003229fb99fc67942
parent37e6cfe3b2764349780ec82b74185c1e01a6112a (diff)
Provide the necessary weak alias for fpgetround(). Delete the obsolete
__weak_alias() uses problem noted by drahn@ ok kettenis@
-rw-r--r--lib/libc/arch/aarch64/gen/fpgetround.c7
-rw-r--r--lib/libc/arch/aarch64/gen/fpsetround.c6
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/libc/arch/aarch64/gen/fpgetround.c b/lib/libc/arch/aarch64/gen/fpgetround.c
index fa7dda454c7..046ebe473ea 100644
--- a/lib/libc/arch/aarch64/gen/fpgetround.c
+++ b/lib/libc/arch/aarch64/gen/fpgetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpgetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpgetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpgetround,fpgetround);
-#endif
-
fp_rnd
fpgetround(void)
{
@@ -44,3 +40,4 @@ fpgetround(void)
return ((fpscr >> 22) & 3);
}
+DEF_WEAK(fpgetround);
diff --git a/lib/libc/arch/aarch64/gen/fpsetround.c b/lib/libc/arch/aarch64/gen/fpsetround.c
index 05f1c6e7d4e..ff36af0b1e3 100644
--- a/lib/libc/arch/aarch64/gen/fpsetround.c
+++ b/lib/libc/arch/aarch64/gen/fpsetround.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpsetround.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */
+/* $OpenBSD: fpsetround.c,v 1.2 2017/03/22 07:32:34 guenther Exp $ */
/*
* Copyright (C) 2014 Andrew Turner
* All rights reserved.
@@ -31,10 +31,6 @@
#include <sys/types.h>
#include <ieeefp.h>
-#ifdef __weak_alias
-__weak_alias(_fpsetround,fpsetround);
-#endif
-
fp_rnd
fpsetround(fp_rnd rnd_dir)
{