targetm.binds_local_p to check for local function calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108269
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
/* 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