This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to use VEC_INIT_EXPR for array mem-initializers
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 27 Nov 2010 16:09:03 -0800
- Subject: Re: C++ PATCH to use VEC_INIT_EXPR for array mem-initializers
- References: <4CC719A0.2060001@redhat.com>
On Tue, Oct 26, 2010 at 11:10 AM, Jason Merrill <jason@redhat.com> wrote:
> Our implementation of constexpr constructors involves walking the trees
> generated for the mem-initializers of a constructor and building up a
> simpler representation for use at expansion time. ?When we're dealing with
> an array member, this has meant trying to parse the output of
> build_vec_init, which is daunting. ?This patch changes perform_member_init
> to generate a VEC_INIT_EXPR instead, which is much easier to analyze.
>
> Tested x86_64-pc-linux-gnu, applied to trunk.
>
This patch caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46688
--
H.J.