From: Mark Mitchell Date: Wed, 12 Apr 2000 22:07:38 +0000 (+0000) Subject: function.c (aggregate_value_p): VOID_TYPE nodes are never aggregates. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7bf8ada06726b45cc1a153bc561b843cefa93bc;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 566f8401d47..3f6949651c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-04-12 Mark Mitchell + + * function.c (aggregate_value_p): VOID_TYPE nodes are never + aggregates. + 2000-04-05 Andreas Jaeger * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if diff --git a/gcc/function.c b/gcc/function.c index b17f360cd77..f31e20da448 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,