Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153218703
D25419.id73544.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25419.id73544.diff
View Options
Index: lib/libc/tests/gen/Makefile
===================================================================
--- lib/libc/tests/gen/Makefile
+++ lib/libc/tests/gen/Makefile
@@ -35,11 +35,12 @@
CFLAGS+= -DTEST_LONG_DOUBLE
-# Not sure why this isn't defined for all architectures, since most
-# have long double.
+# Define __HAVE_LONG_DOUBLE for architectures whose long double has greater
+# precision than their double.
.if ${MACHINE_CPUARCH} == "aarch64" || \
${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "i386"
+ ${MACHINE_CPUARCH} == "i386" || \
+ ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -D__HAVE_LONG_DOUBLE
.endif
Index: lib/libc/tests/stdlib/Makefile
===================================================================
--- lib/libc/tests/stdlib/Makefile
+++ lib/libc/tests/stdlib/Makefile
@@ -23,7 +23,8 @@
# have long double.
.if ${MACHINE_CPUARCH} == "aarch64" || \
${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "i386"
+ ${MACHINE_CPUARCH} == "i386" || \
+ ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -D__HAVE_LONG_DOUBLE
.endif
Index: lib/msun/tests/Makefile
===================================================================
--- lib/msun/tests/Makefile
+++ lib/msun/tests/Makefile
@@ -10,11 +10,12 @@
# For isqemu.h
CFLAGS+= -I${TESTSRC:H}/libc/gen
-# Not sure why this isn't defined for all architectures, since most
-# have long double.
+# Define __HAVE_LONG_DOUBLE for architectures whose long double has greater
+# precision than their double.
.if ${MACHINE_CPUARCH} == "aarch64" || \
${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "i386"
+ ${MACHINE_CPUARCH} == "i386" || \
+ ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -D__HAVE_LONG_DOUBLE
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 9:19 PM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31865465
Default Alt Text
D25419.id73544.diff (1 KB)
Attached To
Mode
D25419: Enable long double tests on RISC-V
Attached
Detach File
Event Timeline
Log In to Comment