Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compiling with GCC v9.x #2258

Merged
merged 1 commit into from Jul 11, 2019
Merged

Conversation

dscho
Copy link
Member

@dscho dscho commented Jul 11, 2019

This fix already made it into git.git's master, via gitgitgadget#265.

The `labs()` function operates, as the initial `l` suggests, on `long`
parameters. However, in `config.c` we tried to use it on values of type
`intmax_t`.

This problem was found by GCC v9.x.

To fix it, let's just "unroll" the function (i.e. negate the value if it
is negative).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested review from drizzd, orgads and kgybels July 11, 2019 11:26
Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dscho dscho added this to the v2.22.0(2) milestone Jul 11, 2019
@dscho
Copy link
Member Author

dscho commented Jul 11, 2019

Thanks, both!

@dscho dscho merged commit 271c090 into git-for-windows:master Jul 11, 2019
@dscho dscho deleted the gcc-9-gfw branch July 11, 2019 12:08
git-for-windows-ci pushed a commit that referenced this pull request Jul 11, 2019
Support compiling with GCC v9.x
dscho added a commit to git-for-windows/git-sdk-32 that referenced this pull request Jul 15, 2019
The issues with GCC have been resolved:

- The bug in GCC v8.x was fixed that prevented
  `-fstack-protector-strong` to produce valid code:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86832

- The issues were resolved in Git for Windows' source code that
  triggered build warnings with GCC v8.x (warnings that cause build
  failures with `DEVELOPER=1`):

  git-for-windows/git#2149

- The issue preventing Git for Windows to be compiled with GCC v9.x
  under `DEVELOPER=1` was resolved:

  git-for-windows/git#2258

- The issues preventing Git's `master` to be compiled with GCC v9.x
  (rolling up the fixes for GCC v8.x) were resolved:

  gitgitgadget/git#265

The issue with osslsigncode no longer signing the code after the upgrade
to OpenSSL v1.1.1, but pretending to succeed, has been fixed some time
recently through a rebuild of mingw-w64-osslsigncode.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho added a commit to git-for-windows/git-sdk-64 that referenced this pull request Jul 15, 2019
The issues with GCC have been resolved:

- The bug in GCC v8.x was fixed that prevented
  `-fstack-protector-strong` to produce valid code:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86832

- The issues were resolved in Git for Windows' source code that
  triggered build warnings with GCC v8.x (warnings that cause build
  failures with `DEVELOPER=1`):

  git-for-windows/git#2149

- The issue preventing Git for Windows to be compiled with GCC v9.x
  under `DEVELOPER=1` was resolved:

  git-for-windows/git#2258

- The issues preventing Git's `master` to be compiled with GCC v9.x
  (rolling up the fixes for GCC v8.x) were resolved:

  gitgitgadget/git#265

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
git-for-windows-ci pushed a commit that referenced this pull request Jul 23, 2019
Support compiling with GCC v9.x
git-for-windows-ci pushed a commit that referenced this pull request Jul 25, 2019
Support compiling with GCC v9.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants