JDK-8324530: Build error with gcc 10#424
Conversation
|
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
|
Build errors unrelated but annoying. |
gnu-andrew
left a comment
There was a problem hiding this comment.
Sorry, Thomas, I only just saw this.
I seem to remember looking at JDK-8140594 myself a while back and it does have a lot of unrelated changes, some of which potentially change behaviour. I agree cherry-picking the fix we actually need here is the better approach.
I have built 8u myself on GCC 13 (with the help of #357) but I guess that was a product build and this code is inside #ifndef PRODUCT.
|
|
|
Windows x86 issue was a result of the January 2024 security changes and should now have been resolved by JDK-8324184 |
|
/approval this is a small fix for a compile problem and a (non-critical) off-by-one when building with GCC 10 |
|
@tstuefe usage: |
|
/approval JDK-8324530 request this is a small fix for a compile problem and a (non-critical) off-by-one when building with GCC 10 |
|
/approve yes |
|
@gnu-andrew |
|
@tstuefe This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 14 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
Thanks @gnu-andrew . /integrate |
|
Going to push as commit 5e70a86.
Your commit was automatically rebased without conflicts. |
This is a trivial fix to a build error (and the underlying off-by-one error, which is only theoretical) gcc 10 warns about.
Note that this issue has been fixed in JDK 11 and later as part of 8140594: "Various minor code improvements (compiler)", but that patch is much larger and would need more intense review. Here, I'd like to just fix this one problem that breaks the build with gcc 10.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/424/head:pull/424$ git checkout pull/424Update a local copy of the PR:
$ git checkout pull/424$ git pull https://git.openjdk.org/jdk8u-dev.git pull/424/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 424View PR using the GUI difftool:
$ git pr show -t 424Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/424.diff
Webrev
Link to Webrev Comment