]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove 'ALWAYS_INLINE' workaround in 'libgomp.c++/target-exceptions-pr118794-1.C'
authorThomas Schwinge <tschwinge@baylibre.com>
Wed, 16 Apr 2025 14:52:08 +0000 (16:52 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Thu, 17 Apr 2025 07:44:30 +0000 (09:44 +0200)
With commit ca9cffe737d20953082333dacebb65d4261e0d0c
"For nvptx offloading, make sure to emit C++ constructor, destructor aliases [PR97106]",
we're able to remove the 'ALWAYS_INLINE' workaround added in
commit fe283dba774be57b705a7a871b000d2894d2e553
"GCN, nvptx: Support '-mfake-exceptions', and use it for offloading compilation [PR118794]".

libgomp/
* testsuite/libgomp.c++/target-exceptions-pr118794-1.C: Remove
'ALWAYS_INLINE' workaround.

(cherry picked from commit 518efed8cb7d003cd85477060b1fe926a2d7a53b)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c++/target-exceptions-pr118794-1.C

index 0c3741fd0031acfe28cce5fbf2a39e0111e8eb81..44cc3227bbda76bf7810a665f7d07efe3a4ef339 100644 (file)
@@ -3,6 +3,12 @@
        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.
index a73e7f897be7e42a6a250ca02678f7072e3f2d0d..24e3d076a1b1ae259e8dc076fdc4910279e4202c 100644 (file)
@@ -9,10 +9,6 @@
 /* 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;
@@ -20,12 +16,10 @@ bool ok = false;
 template <typename T>
 struct C
 {
-  ALWAYS_INLINE
   C()
   {
     ok = true;
   }
-  ALWAYS_INLINE
   C(int) {};
   ~C() {};