]> git.ipfire.org Git - thirdparty/gcc.git/commit
Defuse 'RESULT_DECL' check in 'pass_nrv' (for offloading compilation) [PR119835]
authorThomas Schwinge <tschwinge@baylibre.com>
Wed, 28 May 2025 16:40:31 +0000 (18:40 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Tue, 22 Jul 2025 09:11:50 +0000 (11:11 +0200)
commite4dbeb01fc816a8fca9d9dcb3fd66ce6e6137fa2
tree0ba1d6f37a14dc47803570403e55009697f82b47
parent7a9b7f81f19c05cdb730c70dd825ba3ab5c30443
Defuse 'RESULT_DECL' check in 'pass_nrv' (for offloading compilation) [PR119835]

... to avoid running into ICEs per PR119835, until that's resolved properly.

PR middle-end/119835
gcc/
* tree-nrv.cc (pass_nrv::execute): Defuse 'RESULT_DECL' check.
libgomp/
* testsuite/libgomp.oacc-c-c++-common/abi-struct-1.c:
'#pragma GCC optimize "-fno-inline"'.
* testsuite/libgomp.c-c++-common/target-abi-struct-1.c: New.
* testsuite/libgomp.c-c++-common/target-abi-struct-1-O0.c: Adjust.

Co-authored-by: Richard Biener <rguenther@suse.de>
(cherry picked from commit 543f7e1d59f0b6628e0de6610ad5e1cf7150090b)
gcc/tree-nrv.cc
libgomp/testsuite/libgomp.c-c++-common/target-abi-struct-1-O0.c
libgomp/testsuite/libgomp.c-c++-common/target-abi-struct-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/abi-struct-1.c