]> 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>
Fri, 30 May 2025 12:47:40 +0000 (14:47 +0200)
commit543f7e1d59f0b6628e0de6610ad5e1cf7150090b
tree7b43530489cd742a7284a9c68cef5eb2320a6a0b
parentc13d5b939fee565047394475952878dc5394fb74
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>
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