This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix target/19334, a CONST_DECL is placed in the wrong section on darwin
On Wed, Jan 12, 2005 at 12:51:50PM -0500, Andrew Pinski wrote:
> - tree size = TYPE_SIZE (TREE_TYPE (exp));
> + tree size = TYPE_SIZE_UNIT (TREE_TYPE (exp));
This seems ok, though you might actually want to do
unsigned HOST_WIDE_INT size
= tree_low_cst (TYPE_SIZE_UNIT (TREE_TYPE (exp)), 1);
There should never be any _CST that doesn't fit inside
a host integer.