Mercurial > hg > graal-jvmci-8
comparison make/solaris/makefiles/gcc.make @ 8722:67342b960b47
8008474: Add -Wundef to warning flags.
Summary: Force use of undefined macros to be and error.
Reviewed-by: dholmes, mikael
author | jprovino |
---|---|
date | Wed, 06 Mar 2013 13:50:54 -0500 |
parents | 892acf0431ef |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
8721:47bc9800972c | 8722:67342b960b47 |
---|---|
116 | 116 |
117 | 117 |
118 # Compiler warnings are treated as errors | 118 # Compiler warnings are treated as errors |
119 WARNINGS_ARE_ERRORS = -Werror | 119 WARNINGS_ARE_ERRORS = -Werror |
120 # Enable these warnings. See 'info gcc' about details on these options | 120 # Enable these warnings. See 'info gcc' about details on these options |
121 ADDITIONAL_WARNINGS = -Wpointer-arith -Wconversion -Wsign-compare | 121 WARNING_FLAGS = -Wpointer-arith -Wconversion -Wsign-compare -Wundef |
122 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(ADDITIONAL_WARNINGS) | 122 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS) |
123 # Special cases | 123 # Special cases |
124 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) | 124 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) |
125 | 125 |
126 # The flags to use for an Optimized g++ build | 126 # The flags to use for an Optimized g++ build |
127 OPT_CFLAGS += -O3 | 127 OPT_CFLAGS += -O3 |