RFR[8u-dev]: 8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
mattis.castegren at oracle.com
Wed Feb 24 10:14:37 UTC 2016
Regarding: "You can add a check for gcc >= 4.8 when enabling this flag. Although our official compilers are quite old for 8u there may be other community members who use later versions."
If we don't build with this flag in our official builds, I think there is a pretty big risk that we could break things for any OpenJDK engineers who build with 4.8. Adding a new warning flag for those engineers will not give them any benefit, it will only add the risk that they can't build with their gcc version. I suggest we keep the change as it is, and don't include the -Wuninitialized flag on Linux
From: David Holmes
Sent: den 23 februari 2016 10:36
To: Cheleswer Sahu; hotspot-runtime-dev at openjdk.java.net
Subject: Re: RFR[8u-dev]: 8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
On 23/02/2016 7:06 PM, Cheleswer Sahu wrote:
> Could somebody please review the below backport changes.
> Please review the code changes for backport "https://bugs.openjdk.java.net/browse/JDK-8139040".
> JBS link: https://bugs.openjdk.java.net/browse/JDK-8139040
> JDK9 changeset:
> JDK9 review thread:
> JDK8u webrev: http://cr.openjdk.java.net/~csahu/8139040/
> List of files not included in this backport:
> Reason: Above file are either not available in JDK8u or changes are not applicable.
> Reason: This file contain changes related "-Wuninitialized" flag which is available since gcc4.8 . JDK8u is supporting lower version of gcc, hence not included this fix.
You can add a check for gcc >= 4.8 when enabling this flag. Although our official compilers are quite old for 8u there may be other community members who use later versions.
More information about the hotspot-runtime-dev