From: Andrew Stubbs Date: Thu, 8 Aug 2024 13:12:43 +0000 (+0000) Subject: amdgcn: Re-enable trampolines X-Git-Tag: basepoints/gcc-16~6731 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f71e050a51378e1811b90fe9c16cd37bf4c48ec;p=thirdparty%2Fgcc.git amdgcn: Re-enable trampolines 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. --- diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index 00f2978559b..b22132de6ab 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -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);