diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2008-09-04 16:10:09 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2008-09-04 16:10:09 +0000 |
commit | d8612738c0a87db19e8ed0e8d130bfaa0aec9cb5 (patch) | |
tree | 1c8a6e9aefa465d2eff4c0e54808543e14cda796 /gcc/config/bfin | |
parent | 04888e68e729b9ac689ed6610efe7adc29adaafb (diff) | |
download | gcc-d8612738c0a87db19e8ed0e8d130bfaa0aec9cb5.zip gcc-d8612738c0a87db19e8ed0e8d130bfaa0aec9cb5.tar.gz gcc-d8612738c0a87db19e8ed0e8d130bfaa0aec9cb5.tar.bz2 |
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
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r-- | gcc/config/bfin/bfin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 86195ed..90a6788 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); |