Skip to content

Commit 0811a63

Browse files
clazissartemiy-volkov
authored andcommitted
Add Sibcall hook
1 parent 81d077a commit 0811a63

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gcc/config/arc64/arc64.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,15 @@ arc64_initialize_trampoline (rtx tramp, tree fndecl, rtx cxt)
11121112
Pmode);
11131113
}
11141114

1115+
1116+
/* Implement FUNCTION_OK_FOR_SIBCALL hook. */
1117+
static bool
1118+
arc64_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED,
1119+
tree exp ATTRIBUTE_UNUSED)
1120+
{
1121+
return true;
1122+
}
1123+
11151124
/*
11161125
Global functions.
11171126
*/
@@ -1584,6 +1593,9 @@ arc64_limm_addr_p (rtx op)
15841593
#undef TARGET_HAVE_SPECULATION_SAFE_VALUE
15851594
#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
15861595

1596+
#undef TARGET_FUNCTION_OK_FOR_SIBCALL
1597+
#define TARGET_FUNCTION_OK_FOR_SIBCALL arc64_function_ok_for_sibcall
1598+
15871599
struct gcc_target targetm = TARGET_INITIALIZER;
15881600

15891601
#include "gt-arc64.h"

0 commit comments

Comments
 (0)