Mercurial > hg > graal-compiler
diff make/bsd/makefiles/gcc.make @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 4823ccaf5023 |
children | 9a980af18ec5 |
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make Tue Apr 01 14:09:03 2014 +0200 +++ b/make/bsd/makefiles/gcc.make Tue Apr 01 13:57:07 2014 +0200 @@ -261,13 +261,14 @@ WARNINGS_ARE_ERRORS += -Wno-empty-body endif -WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wformat=2 -Wno-error=format-nonliteral +WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -ifeq ($(USE_CLANG),) +ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit # conversions which might affect the values. Only enable it in earlier versions. - ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" - WARNINGS_FLAGS += -Wconversion + WARNING_FLAGS = -Wunused-function + ifeq ($(USE_CLANG),) + WARNING_FLAGS += -Wconversion endif endif @@ -290,7 +291,7 @@ # The flags to use for an Optimized g++ build ifeq ($(OS_VENDOR), Darwin) # use -Os by default, unless -O3 can be proved to be worth the cost, as per policy - # <https://wiki.openjdk.java.net/display/MacOSXPort/Compiler+Errata> + # <http://wikis.sun.com/display/OpenJDK/Mac+OS+X+Port+Compilers> OPT_CFLAGS_DEFAULT ?= SIZE else OPT_CFLAGS_DEFAULT ?= SPEED