This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trunk][patch] don't use SAVE_EXPR on TYPE_SIZE
> Well, the SAVE_EXPR is to make sure side-effects in TYPE_SIZE{_UNIT}
> are only executed once. Why is the SAVE_EXPR a problem for LTO?
We don't really need a SAVE_EXPR in the IL. It can be expanded into
two statements. We can add support for it, but it would be better to
expand it before getting into the streamer.
Another option is doing just that on build_new. I could create a temp
variable with the size and put that on the type.
> Richard.
>
Cheers,
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047