26 # Setup common to Zero (non-Shark) and Shark versions of VM |
26 # Setup common to Zero (non-Shark) and Shark versions of VM |
27 |
27 |
28 # override this from the main file because some version of llvm do not like -Wundef |
28 # override this from the main file because some version of llvm do not like -Wundef |
29 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value |
29 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value |
30 |
30 |
31 # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized |
31 # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to |
32 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) |
32 # the compiler so as to be able to produce optimized objects |
33 # The copied fdlibm routines in sharedRuntimeTrans.o must not be optimized |
33 # without losing precision. |
34 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) |
34 ifneq ($(FDLIBM_CFLAGS),) |
|
35 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS) |
|
36 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS) |
|
37 else |
|
38 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) |
|
39 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) |
|
40 endif |
35 |
41 |
36 # Specify that the CPU is little endian, if necessary |
42 # Specify that the CPU is little endian, if necessary |
37 ifeq ($(ZERO_ENDIANNESS), little) |
43 ifeq ($(ZERO_ENDIANNESS), little) |
38 CFLAGS += -DVM_LITTLE_ENDIAN |
44 CFLAGS += -DVM_LITTLE_ENDIAN |
39 endif |
45 endif |