diff options
author | Jason Merrill <jason@redhat.com> | 2025-05-01 11:40:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2025-05-02 07:47:17 -0400 |
commit | 4af5de21363cfdd2be227c05dfdee7e053337f6a (patch) | |
tree | 645589edac54029a7def702dbdbdc29e69b72ce4 /gcc/fortran/trans-array.h | |
parent | 0e65fef8717f404cf9c85bff51bf87d534f87828 (diff) | |
download | gcc-4af5de21363cfdd2be227c05dfdee7e053337f6a.zip gcc-4af5de21363cfdd2be227c05dfdee7e053337f6a.tar.gz gcc-4af5de21363cfdd2be227c05dfdee7e053337f6a.tar.bz2 |
i386: -Wabi false positive with indirect call [PR60336]
This warning relies on the TRANSLATION_UNIT_WARN_EMPTY_P flag (set in
cxx_init_decl_processing) to decide whether we want to warn about the GCC 8
empty class parameter passing fix, but in a call through a function pointer
we don't have a translation unit and so complain for any -Wabi flag, even
now long after this was likely to be relevant.
In that situation, let's check the TU for current_function_decl instead.
And if we still can't come up with a TU, default to not warning.
PR c++/60336
gcc/ChangeLog:
* config/i386/i386.cc (ix86_warn_parameter_passing_abi):
If no target, check the current TU.
gcc/testsuite/ChangeLog:
* g++.dg/abi/pr60336-8a.C: New test.
Diffstat (limited to 'gcc/fortran/trans-array.h')
0 files changed, 0 insertions, 0 deletions