]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Re-enable trampolines
authorAndrew Stubbs <ams@baylibre.com>
Thu, 8 Aug 2024 13:12:43 +0000 (13:12 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Thu, 8 Aug 2024 13:49:10 +0000 (13:49 +0000)
The stacks are executable since the reverse-offload features were added, so
trampolines actually do work.

gcc/ChangeLog:

* config/gcn/gcn.cc (gcn_trampoline_init): Re-enable trampolines.

gcc/config/gcn/gcn.cc

index 00f2978559bdafc3b7aa22ab36b7f163a58d0e64..b22132de6ab79837ecffecf48b34f3848610a2a7 100644 (file)
@@ -3799,11 +3799,6 @@ gcn_asm_trampoline_template (FILE *f)
 static void
 gcn_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value)
 {
-  // FIXME
-  if (TARGET_GCN5_PLUS)
-    sorry ("nested function trampolines not supported on GCN5 due to"
-           " non-executable stacks");
-
   emit_block_move (m_tramp, assemble_trampoline_template (),
                   GEN_INT (TRAMPOLINE_SIZE), BLOCK_OP_NORMAL);