changeset 10458:ab8fadcbbde6 icedtea-3.13.0 icedtea-3.14.0pre00

8210425, PR3745: [AArch64] sharedRuntimeTrig/sharedRuntimeTrans compiled without optimization Summary: Compile with -O3 and relevant C flags as for fdlibm.
author andrew
date Fri, 24 May 2019 20:46:57 +0100
parents 3ffd5d889945
children 162cf03637c7
files make/linux/makefiles/aarch64.make
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/make/linux/makefiles/aarch64.make	Fri May 31 15:51:28 2019 +0800
+++ b/make/linux/makefiles/aarch64.make	Fri May 24 20:46:57 2019 +0100
@@ -22,10 +22,16 @@
 #  
 #
 
-# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized
-OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
-# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized
-OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
+# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
+# the compiler so as to be able to produce optimized objects
+# without losing precision.
+ifneq ($(FDLIBM_CFLAGS),)
+  OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)
+  OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)
+else
+  OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
+  OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
+endif
 # Must also specify if CPU is little endian
 CFLAGS += -DVM_LITTLE_ENDIAN