aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-04-12 22:07:38 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-04-12 22:07:38 +0000
commitd7bf8ada06726b45cc1a153bc561b843cefa93bc (patch)
treedbbf869bd2804b20c2c53a1d470bb79db1d3aa46 /gcc/function.c
parent90314e8242f2722ea003bbd9fc507209f82af03b (diff)
downloadgcc-d7bf8ada06726b45cc1a153bc561b843cefa93bc.zip
gcc-d7bf8ada06726b45cc1a153bc561b843cefa93bc.tar.gz
gcc-d7bf8ada06726b45cc1a153bc561b843cefa93bc.tar.bz2
function.c (aggregate_value_p): VOID_TYPE nodes are never aggregates.
* function.c (aggregate_value_p): VOID_TYPE nodes are never aggregates. From-SVN: r33129
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c
index b17f360..f31e20d 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4031,6 +4031,8 @@ aggregate_value_p (exp)
tree type = (TYPE_P (exp)) ? exp : TREE_TYPE (exp);
+ if (TREE_CODE (type) == VOID_TYPE)
+ return 0;
if (RETURN_IN_MEMORY (type))
return 1;
/* Types that are TREE_ADDRESSABLE must be constructed in memory,