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: [C++ PATCH] Fix 14179 - memory-hog


Giovanni Bajo wrote:

Nathan Sidwell wrote:



cp/
PR c++/14179
* decl.c (reshape_init): Extract array handling into...
(reshape_init_array): New function. Use integers instead of
trees for indices. Handle out-of-range designated
initializers.


this one is ok, thanks!



Mark, Gaby, is this patch OK for 3.4 and 3.3? http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01852.html

It is actually pretty straightforward, it just changes a loop using INTEGER_CST
into HOST_WIDE_INTEGER. The diff is a bit harder to read because I extracted
the code into a new function. Also, the additional check about out-of-range
designated initializer is unnecessary and can be removed if you want.


OK for 3.4.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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