Commit 920eed8c by Eric Botcazou Committed by Eric Botcazou

arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.

	* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
	for NULL decl.

From-SVN: r237903
parent 4bfebb72
2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
for NULL decl.
2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com> 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/71677 PR target/71677
......
...@@ -6756,7 +6756,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp) ...@@ -6756,7 +6756,7 @@ arm_function_ok_for_sibcall (tree decl, tree exp)
/* The PIC register is live on entry to VxWorks PLT entries, so we /* The PIC register is live on entry to VxWorks PLT entries, so we
must make the call before restoring the PIC register. */ must make the call before restoring the PIC register. */
if (TARGET_VXWORKS_RTP && flag_pic && !targetm.binds_local_p (decl)) if (TARGET_VXWORKS_RTP && flag_pic && decl && !targetm.binds_local_p (decl))
return false; return false;
/* If we are interworking and the function is not declared static /* If we are interworking and the function is not declared static
......
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