jdk11u-dev
jdk11u-dev copied to clipboard
8335801: [11u] Backport of 8210988 to 11u removes gcc warnings
The backport of 8210988 contained a number of issues, the most serious of which is it completely removed warnings from gcc builds by changing WARNING_CFLAGS_JDK and WARNING_CFLAGS_JVM, but not defining WARNINGS_ENABLE_ALL, WARNINGS_ENABLE_ADDITIONAL_JVM and DISABLED_WARNINGS.
The other more minor issues are the silent inclusion of -Wreorder to clang builds (should be a backport of JDK-8208672) and -xc99=%none (reverting JDK-8215296), because new lines were used as is without comparing differences in what was being replaced.
All three of these changes show up clearly when comparing the 11u & 12u changesets, and are corrected by this patch.
I can also confirm this has the desired effect with warnings as my local build on GCC 13 now fails again, whereas it was passing before (we need some backports there to make that work)
Progress
- [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue
- [ ] JDK-8335801 needs maintainer approval
Issue
- JDK-8335801: [11u] Backport of 8210988 to 11u removes gcc warnings (Bug - P4 - Requested)
Reviewers
- Paul Hohensee (@phohensee - Reviewer)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2838/head:pull/2838
$ git checkout pull/2838
Update a local copy of the PR:
$ git checkout pull/2838
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2838/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2838
View PR using the GUI difftool:
$ git pr show -t 2838
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2838.diff