hotspot/make/linux/makefiles/gcc.make
changeset 29580 a67a581cfe11
parent 29474 81a5c5330d08
child 29700 66239a99ec24
--- a/hotspot/make/linux/makefiles/gcc.make	Thu Mar 12 15:51:12 2015 -0700
+++ b/hotspot/make/linux/makefiles/gcc.make	Mon Feb 16 14:07:36 2015 +0100
@@ -214,6 +214,11 @@
   # 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"
     WARNING_FLAGS += -Wconversion
+  endif  
+  ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 8 \) \))" "1"
+    # This flag is only known since GCC 4.3. Gcc 4.8 contains a fix so that with templates no
+    # warnings are issued: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856
+    WARNING_FLAGS += -Wtype-limits
   endif
 endif