8156980: Hotspot build doesn't have -std=gnu++98 gcc option
authorandrew
Thu, 07 Jul 2016 18:40:53 +0100
changeset 39963 5921b7f27d63
parent 39962 128b76ddfd98
child 39964 7e00eb091e5a
child 39996 330c9163d604
child 40005 3c61d67bcfa4
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
hotspot/make/gensrc/GensrcAdlc.gmk
--- 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