aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pyr
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-03-17 17:30:17 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-03-17 17:30:17 -0500
commit2033a41a96dfcbff14006e26bbc251783ea3e8a3 (patch)
tree54f551ece3d178afd456684c6689da188920d3c4 /gcc/config/pyr
parenta6096a27f69e7940a427f3f354da29e6418d865a (diff)
downloadgcc-2033a41a96dfcbff14006e26bbc251783ea3e8a3.zip
gcc-2033a41a96dfcbff14006e26bbc251783ea3e8a3.tar.gz
gcc-2033a41a96dfcbff14006e26bbc251783ea3e8a3.tar.bz2
(RETURN_POPS_ARGS): Make sure FUDECL is non-nil before we try to use it.
From-SVN: r13729
Diffstat (limited to 'gcc/config/pyr')
-rw-r--r--gcc/config/pyr/pyr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/pyr/pyr.h b/gcc/config/pyr/pyr.h
index 407a39e..ea88ee4 100644
--- a/gcc/config/pyr/pyr.h
+++ b/gcc/config/pyr/pyr.h
@@ -1,6 +1,6 @@
/* Definitions of target machine parameters for GNU compiler,
for Pyramid 90x, 9000, and MIServer Series.
- Copyright (C) 1989, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1989, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -495,7 +495,7 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
We may nevertheless provide this as an option. */
#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) \
- ((TARGET_RETD && TREE_CODE (FUNDECL) != IDENTIFIER_NODE \
+ ((TARGET_RETD && (!(FUNDECL) || TREE_CODE (FUNDECL) != IDENTIFIER_NODE) \
&& (TYPE_ARG_TYPES (FUNTYPE) == 0 \
|| (TREE_VALUE (tree_last (TYPE_ARG_TYPES (FUNTYPE))) \
== void_type_node))) \