Commit b7c28a47 by Andrew Stubbs Committed by Andrew Stubbs

Fix trampoline execution failures on GCN5.

2019-05-22  Andrew Stubbs  <ams@codesourcery.com>

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

From-SVN: r271525
parent 5859a68d
2019-05-22 Andrew Stubbs <ams@codesourcery.com>
* config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
2019-05-22 Jason Merrill <jason@redhat.com>
* gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment