Backported from trunk:
2025-04-16 Thomas Schwinge <tschwinge@baylibre.com>
+ * testsuite/libgomp.c++/target-exceptions-pr118794-1.C: Remove
+ 'ALWAYS_INLINE' workaround.
+
+ Backported from trunk:
+ 2025-04-16 Thomas Schwinge <tschwinge@baylibre.com>
+
PR target/106445
* testsuite/libgomp.c++/pr106445-1.C: New.
* testsuite/libgomp.c++/pr106445-1-O0.C: Likewise.
/* See also '../../../gcc/testsuite/g++.target/gcn/exceptions-pr118794-1.C',
'../../../gcc/testsuite/g++.target/nvptx/exceptions-pr118794-1.C'. */
-/* Help nvptx offloading overcome a code generation issue;
- PR106445, PR118518. */
-#define ALWAYS_INLINE __attribute__((always_inline))
-
#pragma omp begin declare target
bool ok = false;
template <typename T>
struct C
{
- ALWAYS_INLINE
C()
{
ok = true;
}
- ALWAYS_INLINE
C(int) {};
~C() {};