minimal gcc version for jdk/jdk and usage of -Wno-int-in-bool-context flag in HS build (original) (raw)
Aleksey Shipilev shade at redhat.com
Wed Oct 31 15:49:05 UTC 2018
- Previous message (by thread): minimal gcc version for jdk/jdk and usage of -Wno-int-in-bool-context flag in HS build
- Next message (by thread): minimal gcc version for jdk/jdk and usage of -Wno-int-in-bool-context flag in HS build
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/31/2018 04:40 PM, Baesken, Matthias wrote:
https://hg.openjdk.java.net/jdk/jdk/file/896e80158d35/make/hotspot/lib/CompileJvm.gmk
_DISABLEDWARNINGSgcc := extra parentheses comment unknown-pragmas address _ _delete-non-virtual-dtor char-subscripts array-bounds int-in-bool-context _ _ignored-qualifiers missing-field-initializers implicit-fallthrough _ _empty-body strict-overflow sequence-point maybe-uninitialized _ misleading-indentation
However int-in-bool-context ( -Wnoint-in-bool-context ) seems to be available only in gcc 7 + . Example call with gcc 6 leads to a warning :
Current jdk/jdk build works fine with 6.3.0 for me:
Is this the indication that build system actually probes the warnings before trying warning options?
The troubles start when you supply additional options, apparently: https://bugs.openjdk.java.net/browse/JDK-8211088
-Aleksey
- Previous message (by thread): minimal gcc version for jdk/jdk and usage of -Wno-int-in-bool-context flag in HS build
- Next message (by thread): minimal gcc version for jdk/jdk and usage of -Wno-int-in-bool-context flag in HS build
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]