提交 4eee399e 编写于 作者: S sgehwolf

8210425: [x86] sharedRuntimeTrig/sharedRuntimeTrans compiled without optimization

Summary: Compile with -O3 and relevant C flags as for fdlibm.
Reviewed-by: andrew
上级 2e1aa959
...@@ -22,11 +22,16 @@ ...@@ -22,11 +22,16 @@
# #
# #
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) ifneq ($(FDLIBM_CFLAGS),)
# Must also specify if CPU is little endian 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
CFLAGS += -DVM_LITTLE_ENDIAN CFLAGS += -DVM_LITTLE_ENDIAN
CFLAGS += -D_LP64=1 CFLAGS += -D_LP64=1
......
...@@ -24,10 +24,16 @@ ...@@ -24,10 +24,16 @@
# TLS helper, assembled from .s file # TLS helper, assembled from .s file
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 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 # Must also specify if CPU is little endian
CFLAGS += -DVM_LITTLE_ENDIAN CFLAGS += -DVM_LITTLE_ENDIAN
......
...@@ -22,8 +22,16 @@ ...@@ -22,8 +22,16 @@
# #
# #
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # 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 big endian # Must also specify if CPU is big endian
CFLAGS += -DVM_BIG_ENDIAN CFLAGS += -DVM_BIG_ENDIAN
......
...@@ -25,10 +25,16 @@ ...@@ -25,10 +25,16 @@
# Setup common to Zero (non-Shark) and Shark versions of VM # Setup common to Zero (non-Shark) and Shark versions of VM
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 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
# Specify that the CPU is little endian, if necessary # Specify that the CPU is little endian, if necessary
ifeq ($(ZERO_ENDIANNESS), little) ifeq ($(ZERO_ENDIANNESS), little)
......
...@@ -22,10 +22,16 @@ ...@@ -22,10 +22,16 @@
# #
# #
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 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 # Must also specify if CPU is little endian
CFLAGS += -DVM_LITTLE_ENDIAN CFLAGS += -DVM_LITTLE_ENDIAN
......
...@@ -24,10 +24,16 @@ ...@@ -24,10 +24,16 @@
# TLS helper, assembled from .s file # TLS helper, assembled from .s file
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 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 # Must also specify if CPU is little endian
CFLAGS += -DVM_LITTLE_ENDIAN CFLAGS += -DVM_LITTLE_ENDIAN
......
...@@ -49,3 +49,14 @@ else ...@@ -49,3 +49,14 @@ else
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string
endif endif
# 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
...@@ -28,10 +28,16 @@ ...@@ -28,10 +28,16 @@
# override this from the main file because some version of llvm do not like -Wundef # override this from the main file because some version of llvm do not like -Wundef
WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value
# The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) # the compiler so as to be able to produce optimized objects
# The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized # without losing precision.
OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) 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
# Specify that the CPU is little endian, if necessary # Specify that the CPU is little endian, if necessary
ifeq ($(ZERO_ENDIANNESS), little) ifeq ($(ZERO_ENDIANNESS), little)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册