Commit d8612738 by Bernd Schmidt Committed by Bernd Schmidt

bfin.c (bfin_function_ok_for_sibcall): Restore a null pointer check lost in the…

bfin.c (bfin_function_ok_for_sibcall): Restore a null pointer check lost in the recent no-unit-at-a-time patch.

	* config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
	pointer check lost in the recent no-unit-at-a-time patch.

From-SVN: r139989
parent 04888e68
2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
pointer check lost in the recent no-unit-at-a-time patch.
2008-09-04 Jan Hubicka <jh@suse.cz>
PR middle-end/37343
......
......@@ -1942,6 +1942,9 @@ bfin_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED,
not need to reload P5 in the prologue, but the sibcall wil pop P5 in the
sibcall epilogue, and we end up with the wrong value in P5. */
if (!decl)
/* Not enough information. */
return false;
this_func = cgraph_local_info (current_function_decl);
called_func = cgraph_local_info (decl);
......
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