This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: size_in_bytes



Now that we're being strict about sizes and such, size_in_bytes should
always return some of type `sizetype'.  But, on error, it was
returning integer_zero_node.

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

2000-03-22  Mark Mitchell  <mark@codesourcery.com>

	* tree.c (size_in_bytes): Return size_zero_node, not
	integer_zero_node.

Index: tree.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.c,v
retrieving revision 1.128
diff -c -p -r1.128 tree.c
*** tree.c	2000/03/21 18:10:40	1.128
--- tree.c	2000/03/22 23:54:42
*************** size_in_bytes (type)
*** 2283,2289 ****
    if (t == 0)
      {
        incomplete_type_error (NULL_TREE, type);
!       return integer_zero_node;
      }
  
    if (TREE_CODE (t) == INTEGER_CST)
--- 2283,2289 ----
    if (t == 0)
      {
        incomplete_type_error (NULL_TREE, type);
!       return size_zero_node;
      }
  
    if (TREE_CODE (t) == INTEGER_CST)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]