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
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 -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
|