https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102024
--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by William Schmidt <wschm...@gcc.gnu.org>: https://gcc.gnu.org/g:16e3d6b8b2b5168ebc773833f0e7ccf2191932c1 commit r12-3843-g16e3d6b8b2b5168ebc773833f0e7ccf2191932c1 Author: Bill Schmidt <wschm...@linux.ibm.com> Date: Thu Sep 23 07:35:42 2021 -0500 rs6000: Add psabi diagnostic for C++ zero-width bit field ABI change Previously zero-width bit fields were removed from structs, so that otherwise homogeneous aggregates were treated as such and passed in FPRs and VSRs. This was incorrect behavior per the ELFv2 ABI. Now that these fields are no longer being removed, we generate the correct parameter passing code. Alert the unwary user in the rare cases where this behavior changes. 2021-09-23 Bill Schmidt <wschm...@linux.ibm.com> gcc/ PR target/102024 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect zero-width bit fields and return indicator. (rs6000_discover_homogeneous_aggregate): Diagnose when the presence of a zero-width bit field changes parameter passing in GCC 12. gcc/testsuite/ PR target/102024 * g++.target/powerpc/pr102024.C: New.