We need to enable delayed-branch scheduling to have sibling calls on SPARC.

Tested on SPARC64/Linux, applied on the mainline and 7 branch.


2018-01-16  Eric Botcazou  <ebotca...@adacore.com>

        PR testsuite/77734
        * gcc.dg/plugin/must-tail-call-1.c: Pass -fdelayed-branch on SPARC.

-- 
Eric Botcazou
Index: gcc.dg/plugin/must-tail-call-1.c
===================================================================
--- gcc.dg/plugin/must-tail-call-1.c	(revision 256562)
+++ gcc.dg/plugin/must-tail-call-1.c	(working copy)
@@ -1,3 +1,5 @@
+/* { dg-options "-fdelayed-branch" { target sparc*-*-* } } */
+
 extern void abort (void);
 
 int __attribute__((noinline,noclone))

Reply via email to