Jie Zhang wrote:
This patch is a simplified version of my initial patch:
http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01039.html
Compared to the old patch, this one only handles the case that all
elements of the initializer are non-constant and split out in
split_nonconstant_init_1. This patch is done in C++ front end and does
not touch gimplifier. Hope this will be easier to be accepted. Is it OK?
This patch is OK if it passes the testsuite. I agree that it would be
nice if the downstream optimizers could do this for us, but there's
nothing wrong with simplifying things for them in the front end.