function.c (aggregate_value_p): VOID_TYPE nodes are never aggregates.
authorMark Mitchell <mark@codesourcery.com>
Wed, 12 Apr 2000 22:07:38 +0000 (22:07 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 12 Apr 2000 22:07:38 +0000 (22:07 +0000)
* function.c (aggregate_value_p): VOID_TYPE nodes are never
aggregates.

From-SVN: r33129

gcc/ChangeLog
gcc/function.c

index 566f8401d4750cd40fd01d4cee79ae3cfaddeacd..3f6949651c1381dab971ede7b54bc22a3f4d2c30 100644 (file)
@@ -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
index b17f360cd7746704b51e36c4e64b9d5be5d62c53..f31e20da448a91c2d792546fd9bcf57fe4404ab5 100644 (file)
@@ -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,