[trunk][patch] don't use SAVE_EXPR on TYPE_SIZE
Rafael Espindola
espindola@google.com
Tue Jun 10 15:12:00 GMT 2008
The attached patch avoids the use of SAVE_EXPR on TYPE_SIZE, since a
TYPE_SIZE is never executed.
This fixes
-----------------------------
class string {
int b;
public:
string() : b() { }
};
int a;
void ConvertInsertRequest() {
string* reqs_ = new string[a];
}
---------------------------
On the LTO branch, but since it is not LTO specific I would like to
commit it on trunk.
OK if it bootstraps and tests are OK?
2008-06-10 Rafael Avila de Espindola <espindola@google.com>
* init.c (build_new_1): add nelts_for_type argument.
(build_new): create nelts_for_type without a SAVE_EXPR.
Cheers,
--
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: 2067 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080610/e4d30cff/attachment.bin>
More information about the Gcc-patches
mailing list