]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL.
authorDavid S. Miller <davem@redhat.com>
Fri, 26 Apr 2002 02:05:08 +0000 (19:05 -0700)
committerDavid S. Miller <davem@gcc.gnu.org>
Fri, 26 Apr 2002 02:05:08 +0000 (19:05 -0700)
2002-04-25  David S. Miller  <davem@redhat.com>

* config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
for DECL being NULL.

From-SVN: r52776

gcc/ChangeLog
gcc/config/sparc/sparc.h

index 6678795f7b70502fb906540fb08c2b2173719470..f1df34d72fa0099aa2744c723d44f981baeac464 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-25  David S. Miller  <davem@redhat.com>
+
+       * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
+       for DECL being NULL.
+
 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
 
        * doc/md.texi (Machine Constraints): Add IA-64 constraints.
index 872b1eeeee05745bec69620404d25adac730fc60..52644c62acd6ee678a94c801e25aa8fdf367bd2d 100644 (file)
@@ -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.  */