aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/function.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 566f840..3f69496 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-12 Mark Mitchell <mark@codesourcery.com>
+
+ * function.c (aggregate_value_p): VOID_TYPE nodes are never
+ aggregates.
+
2000-04-05 Andreas Jaeger <aj@suse.de>
* config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
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,