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

build: fix -Wtrampolines picky warning for gcc 4.x versions #15962

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jan 10, 2025

Caused an error when using cmake with gcc 4.4 and 4.5.
Also 4.3 when using autotools.

Seen with GNU 4.4.0 in CeGCC 0.59.1:

cc1: error: unrecognized command line option "-Wtrampolines"

-Wtrampolines requires gcc 4.6 or upper.

Ref: https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Warning-Options.html
Ref: https://master.dl.sourceforge.net/project/cegcc/cegcc/0.59.1/cegcc_mingw32ce_snowleopard_r1397.tar.bz2

Fixes:
```
cc1: error: unrecognized command line option "-Wtrampolines"
```

`-Wtrampolines` requires gcc 4.6 or upper.

Ref: https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Warning-Options.html
@vszakats vszakats added the build label Jan 10, 2025
@vszakats vszakats changed the title build: fix -Wtrampolines for gcc 4.4 and 4.5 build: fix -Wtrampolines picky warning for gcc 4.4 and 4.5 Jan 10, 2025
@vszakats vszakats changed the title build: fix -Wtrampolines picky warning for gcc 4.4 and 4.5 build: fix -Wtrampolines picky warning for old gcc versions Jan 10, 2025
@vszakats vszakats changed the title build: fix -Wtrampolines picky warning for old gcc versions build: fix -Wtrampolines picky warning for gcc 4.x versions Jan 10, 2025
@vszakats vszakats closed this in 95658f9 Jan 10, 2025
@vszakats vszakats deleted the gcc44-fix-picky-warning branch January 13, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant