Mercurial > hg > graal-jvmci-8
changeset 23748:3e551611f1fc
Build flags for gcc 6 compatibility.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 07 Sep 2016 11:22:05 +0200 |
parents | 4da0ab22649c |
children | d6bd0b9cd0b6 |
files | make/linux/makefiles/gcc.make |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make Thu Jun 23 16:46:41 2016 -0400 +++ b/make/linux/makefiles/gcc.make Wed Sep 07 11:22:05 2016 +0200 @@ -216,6 +216,11 @@ ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" WARNING_FLAGS += -Wconversion endif + # Since GCC 6 gnu++98 is not the default language anymore and the compiler is more aggressive + ifeq "$(shell expr \( $(CC_VER_MAJOR) \>= 6 \))" "1" + CFLAGS += -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse + WARNINGS_ARE_ERRORS += -Wno-deprecated-declarations + endif endif CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(WARNING_FLAGS)