This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google]: initialize language field for clone function struct
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Xinliang David Li <davidxl at google dot com>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Thu, 5 May 2011 11:23:33 +0200
- Subject: Re: [google]: initialize language field for clone function struct
- References: <BANLkTimaZh7CjWiSDoHmd9FJjz9qipwM7g@mail.gmail.com> <201105041914.14958.ebotcazou@adacore.com> <BANLkTimtGCbEs0+FkNCCJb1qmZ1cYdrqvw@mail.gmail.com>
> Sure, but that's a limitation of out SAVE_EXPR handling (given that it
> would be ok to expand the SAVE_EXPR multiple times - once per
> "instantiation context").
You need to expand the initializer exactly once and you need to make sure that
this occurrence is invoked before all the others at run time. Not trivial.
--
Eric Botcazou