diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-30 22:22:45 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-04-01 22:37:43 +0800 |
commit | 0d4b97f1ee5213dffce107bc9f260a22fb23b4b1 (patch) | |
tree | e0ccf6bd93a74828f946a644daea4211e4683ffd /gcc/function.cc | |
parent | 86d8e0c0652ef5236a460b75c25e4f7093cc0651 (diff) | |
download | gcc-0d4b97f1ee5213dffce107bc9f260a22fb23b4b1.zip gcc-0d4b97f1ee5213dffce107bc9f260a22fb23b4b1.tar.gz gcc-0d4b97f1ee5213dffce107bc9f260a22fb23b4b1.tar.bz2 |
mips: Emit psabi diagnostic for return values affected by C++ zero-width bit-field ABI change [PR 102024]
gcc/
PR target/102024
* config/mips/mips.cc (mips_fpr_return_fields): Detect C++
zero-width bit-fields and set up an indicator.
(mips_return_in_msb): Adapt for mips_fpr_return_fields change.
(mips_function_value_1): Diagnose when the presense of a C++
zero-width bit-field changes function returning in GCC 12.
gcc/testsuite/
PR target/102024
* g++.target/mips/mips.exp: New test supporting file.
* g++.target/mips/pr102024.C: New test.
Diffstat (limited to 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions