From d8612738c0a87db19e8ed0e8d130bfaa0aec9cb5 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 4 Sep 2008 16:10:09 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/bfin/bfin.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7dd49a719c7..34253d3c961 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-09-04 Bernd Schmidt + + * 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 PR middle-end/37343 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); -- 2.30.2