This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Emit array initialization from ctor as loop if possible (PR c++/59659)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Jan 2014 16:16:20 +0100
- Subject: Re: [C++ PATCH] Emit array initialization from ctor as loop if possible (PR c++/59659)
- Authentication-results: sourceware.org; auth=none
- References: <20140110203522 dot GG892 at tucnak dot redhat dot com> <52DE8E31 dot 4070008 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jan 21, 2014 at 10:11:45AM -0500, Jason Merrill wrote:
> I'm inclined to handle this situation by using a RANGE_EXPR in
> process_init_constructor_array, and then handling that appropriately
> in build_vec_init, so that we don't have to build up the huge
> CONSTRUCTOR. Would you like to do that, or shall I take it over?
If you could take it over, I'd appreciate it.
Note that the RANGE_EXPR related PR59886 regression is probably
higher priority though (and no idea how to handle the cleanup there
nicely if some ctor throws during second or following iteration).
Jakub