summaryrefslogtreecommitdiff
path: root/gcc/config/bfin
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-04 16:10:09 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-04 16:10:09 +0000
commite5f223f4b8990b0e1e7aa489f19f6388b5f6ff09 (patch)
tree1c8a6e9aefa465d2eff4c0e54808543e14cda796 /gcc/config/bfin
parent467b479a1288a4c508dc334911175ec20b348ba8 (diff)
downloadgcc-e5f223f4b8990b0e1e7aa489f19f6388b5f6ff09.tar.gz
* config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
pointer check lost in the recent no-unit-at-a-time patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r--gcc/config/bfin/bfin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c
index 86195eddaf0..90a67888b97 100644
--- a/gcc/config/bfin/bfin.c
+++ b/gcc/config/bfin/bfin.c
@@ -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);