From 6bfd0c63fe2dd008297767295656c24048475a3f Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 25 Apr 2002 19:05:08 -0700 Subject: [PATCH] sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL. 2002-04-25 David S. Miller * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL. From-SVN: r52776 --- gcc/ChangeLog | 5 +++++ gcc/config/sparc/sparc.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6678795f7b7..f1df34d72fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-04-25 David S. Miller + + * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check + for DECL being NULL. + 2002-04-25 Steve Christiansen * doc/md.texi (Machine Constraints): Add IA-64 constraints. diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 872b1eeeee0..52644c62acd 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1918,7 +1918,9 @@ do { \ void) and then nothing else happens. Such a sibling call would look valid without the added check here. */ #define FUNCTION_OK_FOR_SIBCALL(DECL) \ - (! TARGET_FLAT && (TARGET_ARCH64 || ! current_function_returns_struct)) + (DECL \ + && ! TARGET_FLAT \ + && (TARGET_ARCH64 || ! current_function_returns_struct)) /* Generate RTL to flush the register windows so as to make arbitrary frames available. */ -- 2.30.2