Commit 7691ec4e by Ulrich Weigand Committed by Ulrich Weigand

s390.c (s390_function_ok_for_sibcall): Use targetm.binds_local_p to check for local function calls.

	* config/s390/s390.c (s390_function_ok_for_sibcall): Use
	targetm.binds_local_p to check for local function calls.

From-SVN: r108269
parent a5a9aa38
2005-12-09 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_function_ok_for_sibcall): Use
targetm.binds_local_p to check for local function calls.
2005-12-09 Alan Modra <amodra@bigpond.net.au>
PR debug/24908
......
......@@ -8574,7 +8574,7 @@ s390_function_ok_for_sibcall (tree decl, tree exp)
/* The 31 bit PLT code uses register 12 (GOT pointer - caller saved)
which would have to be restored before the sibcall. */
if (!TARGET_64BIT && flag_pic && decl && TREE_PUBLIC (decl))
if (!TARGET_64BIT && flag_pic && decl && !targetm.binds_local_p (decl))
return false;
/* Register 6 on s390 is available as an argument register but unfortunately
......
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