[trunk][patch] don't use SAVE_EXPR on TYPE_SIZE

Rafael Espindola espindola@google.com
Tue Jun 10 16:34:00 GMT 2008


> It is after gimplification, yes. Interesting, so the gimplifier does
> change some types. If it is unused, we should probably clear the
> field. I will try to find where it should be done in the gimplifier.

The problem is that the gimplifier doesn't search down on pointer types.

The attached patch fixes the problem by creating a temp on the c++ FE.

OK for trunk if bootstraps and tests are OK?

2008-06-10  Rafael Avila de Espindola  <espindola@google.com>

	* init.c (build_new_1): put the number of elements in a variable.

Thanks,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080610/b422f8f0/attachment.bin>


More information about the Gcc-patches mailing list