PATCH: `void' is not an aggregate

Mark Mitchell mark@codesourcery.com
Wed Apr 12 15:06:00 GMT 2000


This patch fixes problems arising from the fact that `void' is now
(correctly) an incomplete type.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-04-12  Mark Mitchell  <mark@codesourcery.com>

	* function.c (aggregate_value_p): VOID_TYPE nodes are never
	aggregates.

Index: function.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/function.c,v
retrieving revision 1.188
diff -c -p -r1.188 function.c
*** function.c	2000/04/06 00:51:22	1.188
--- function.c	2000/04/12 22:03:45
*************** aggregate_value_p (exp)
*** 4031,4036 ****
--- 4031,4038 ----
  
    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,


More information about the Gcc-patches mailing list