8156980: Hotspot build doesn't have -std=gnu++98 gcc option
8157358: Syntax error in TOOLCHAIN_CHECK_COMPILER_VERSION
Summary: Add flags for GCC 6 to JVM_CFLAGS and fix prefix handling
Reviewed-by: erikj, kbarrett
--- a/hotspot/make/gensrc/GensrcAdlc.gmk Wed Jul 13 10:51:19 2016 +0300
+++ b/hotspot/make/gensrc/GensrcAdlc.gmk Thu Jul 07 18:40:53 2016 +0100
@@ -51,6 +51,9 @@
ADLC_CFLAGS_WARNINGS := -W3 -D_CRT_SECURE_NO_WARNINGS
endif
+ # Set the C++ standard if supported
+ ADLC_CFLAGS += $(CXXSTD_CXXFLAG)
+
# NOTE: The old build didn't set -DASSERT for windows but it doesn't seem to
# hurt.
ADLC_CFLAGS += -DASSERT