]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix trampoline execution failures on GCN5.
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 28 Jun 2019 16:37:14 +0000 (16:37 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Fri, 28 Jun 2019 16:37:14 +0000 (16:37 +0000)
2019-06-28  Andrew Stubbs  <ams@codesourcery.com>

Backport from mainline:
2019-05-22  Andrew Stubbs  <ams@codesourcery.com>

* config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.

From-SVN: r272788

gcc/ChangeLog
gcc/config/gcn/gcn.c

index 5b5678716462054f49eeae7fa21eabc668c25ceb..ffc86f95ed57242a02336e8c4cdf1e1bffa27e10 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-28  Andrew Stubbs  <ams@codesourcery.com>
+
+       Backport from mainline:
+       2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
+
+       * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
+
 2019-06-26  Martin Jambor  <mjambor@suse.cz>
 
        Backport from mainline
index f1fad3bb7b5b7058d8f96361fc9cf5d4e9199b25..99fa45edcd4b00a8112914973cd9a5646f2e73b5 100644 (file)
@@ -3062,6 +3062,10 @@ gcn_asm_trampoline_template (FILE *f)
 static void
 gcn_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value)
 {
+  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);