This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: size_in_bytes
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: size_in_bytes
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 22 Mar 2000 16:04:27 -0800
- Organization: CodeSourcery, LLC
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)