]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: let plain -Wabi warn about future changes
authorJason Merrill <jason@redhat.com>
Thu, 1 May 2025 13:42:40 +0000 (09:42 -0400)
committerJason Merrill <jason@redhat.com>
Sat, 3 May 2025 13:30:19 +0000 (09:30 -0400)
commit11e62bc6d9f8109a98facd1f90d4602869eb12e7
treef9fbab479ff43807f7b7e67a1ea22310c5152dde
parenta63d871eac0e57002b4ab4e1522f3f3851183b5e
c++: let plain -Wabi warn about future changes

c_common_post_options limits flag_abi_version and flag_abi_compat_version to
actual ABI version numbers, but let's not do that for warn_abi_version; we
might want to add a warning relative to a future ABI version that isn't
available in the current release, such backporting the PR120012 warning.

Also allow plain -Wabi to include such a warning without complaining that
it's useless.

Also warn about an unsupported -fabi-version argument.

gcc/c-family/ChangeLog:

* c-opts.cc (c_common_post_options): Let plain -Wabi warn
about changes in a future version.
gcc/c-family/c-opts.cc