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]
Other format: [Raw text]

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.


r~


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