< prev index next >

make/solaris/makefiles/gcc.make

Print this page
rev 10160 : 8144695: --disable-warnings-as-errors does not work for HotSpot build
Reviewed-by: duke


 100 ifeq ($(BUILDARCH), amd64)
 101 ASFLAGS += -march=k8  -march=amd64
 102 LFLAGS += -march=k8
 103 endif
 104 
 105 
 106 # Use C++ Interpreter
 107 ifdef CC_INTERP
 108   CFLAGS += -DCC_INTERP
 109 endif
 110 
 111 # Keep temporary files (.ii, .s)
 112 ifdef NEED_ASM
 113   CFLAGS += -save-temps
 114 else
 115   CFLAGS += -pipe
 116 endif
 117 
 118 
 119 # Compiler warnings are treated as errors
 120 WARNINGS_ARE_ERRORS = -Werror
 121 
 122 # Enable these warnings. See 'info gcc' about details on these options
 123 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
 124 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 125 
 126 # Special cases
 127 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
 128 
 129 # optimization control flags (Used by fastdebug and release variants)
 130 OPT_CFLAGS/NOOPT=-O0
 131 OPT_CFLAGS/DEBUG=-O0
 132 OPT_CFLAGS/SIZE=-Os
 133 OPT_CFLAGS/SPEED=-O3
 134 
 135 OPT_CFLAGS_DEFAULT ?= SPEED
 136 
 137 # Hotspot uses very unstrict aliasing turn this optimization off
 138 # This option is added to CFLAGS rather than OPT_CFLAGS
 139 # so that OPT_CFLAGS overrides get this option too.
 140 CFLAGS += -fno-strict-aliasing




 100 ifeq ($(BUILDARCH), amd64)
 101 ASFLAGS += -march=k8  -march=amd64
 102 LFLAGS += -march=k8
 103 endif
 104 
 105 
 106 # Use C++ Interpreter
 107 ifdef CC_INTERP
 108   CFLAGS += -DCC_INTERP
 109 endif
 110 
 111 # Keep temporary files (.ii, .s)
 112 ifdef NEED_ASM
 113   CFLAGS += -save-temps
 114 else
 115   CFLAGS += -pipe
 116 endif
 117 
 118 
 119 # Compiler warnings are treated as errors
 120 WARNINGS_ARE_ERRORS ?= -Werror
 121 
 122 # Enable these warnings. See 'info gcc' about details on these options
 123 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef -Wformat=2
 124 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)
 125 
 126 # Special cases
 127 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))
 128 
 129 # optimization control flags (Used by fastdebug and release variants)
 130 OPT_CFLAGS/NOOPT=-O0
 131 OPT_CFLAGS/DEBUG=-O0
 132 OPT_CFLAGS/SIZE=-Os
 133 OPT_CFLAGS/SPEED=-O3
 134 
 135 OPT_CFLAGS_DEFAULT ?= SPEED
 136 
 137 # Hotspot uses very unstrict aliasing turn this optimization off
 138 # This option is added to CFLAGS rather than OPT_CFLAGS
 139 # so that OPT_CFLAGS overrides get this option too.
 140 CFLAGS += -fno-strict-aliasing


< prev index next >