make/solaris/makefiles/gcc.make

Print this page




 101 LFLAGS += -march=k8 
 102 endif
 103 
 104 
 105 # Use C++ Interpreter
 106 ifdef CC_INTERP
 107   CFLAGS += -DCC_INTERP
 108 endif
 109 
 110 # Keep temporary files (.ii, .s)
 111 ifdef NEED_ASM
 112   CFLAGS += -save-temps
 113 else
 114   CFLAGS += -pipe
 115 endif
 116 
 117 
 118 # Compiler warnings are treated as errors 
 119 WARNINGS_ARE_ERRORS = -Werror 
 120 # Enable these warnings. See 'info gcc' about details on these options
 121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2 -Wno-error=format-nonliteral







 122 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 123 # Special cases 
 124 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))  
 125 
 126 # The flags to use for an Optimized g++ build
 127 OPT_CFLAGS += -O3
 128 
 129 # Hotspot uses very unstrict aliasing turn this optimization off
 130 OPT_CFLAGS += -fno-strict-aliasing
 131 
 132 # The gcc compiler segv's on ia64 when compiling bytecodeInterpreter.cpp 
 133 # if we use expensive-optimizations
 134 # Note: all ia64 setting reflect the ones for linux
 135 # No actial testing was performed: there is no Solaris on ia64 presently
 136 ifeq ($(BUILDARCH), ia64)
 137 OPT_CFLAGS/bytecodeInterpreter.o += -fno-expensive-optimizations
 138 endif
 139 
 140 OPT_CFLAGS/NOOPT=-O0
 141 




 101 LFLAGS += -march=k8 
 102 endif
 103 
 104 
 105 # Use C++ Interpreter
 106 ifdef CC_INTERP
 107   CFLAGS += -DCC_INTERP
 108 endif
 109 
 110 # Keep temporary files (.ii, .s)
 111 ifdef NEED_ASM
 112   CFLAGS += -save-temps
 113 else
 114   CFLAGS += -pipe
 115 endif
 116 
 117 
 118 # Compiler warnings are treated as errors 
 119 WARNINGS_ARE_ERRORS = -Werror 
 120 # Enable these warnings. See 'info gcc' about details on these options
 121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
 122 
 123 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
 124   WARNING_FLAGS += -Wconversion -Wno-format-nonliteral
 125 else 
 126   WARNING_FLAGS += -Wno-error=format-nonliteral
 127 endif
 128 
 129 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 130 # Special cases 
 131 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))  
 132 
 133 # The flags to use for an Optimized g++ build
 134 OPT_CFLAGS += -O3
 135 
 136 # Hotspot uses very unstrict aliasing turn this optimization off
 137 OPT_CFLAGS += -fno-strict-aliasing
 138 
 139 # The gcc compiler segv's on ia64 when compiling bytecodeInterpreter.cpp 
 140 # if we use expensive-optimizations
 141 # Note: all ia64 setting reflect the ones for linux
 142 # No actial testing was performed: there is no Solaris on ia64 presently
 143 ifeq ($(BUILDARCH), ia64)
 144 OPT_CFLAGS/bytecodeInterpreter.o += -fno-expensive-optimizations
 145 endif
 146 
 147 OPT_CFLAGS/NOOPT=-O0
 148