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: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, Xinliang David Li <davidxl at google dot com>
- Date: Tue, 3 May 2011 22:33:07 +0200
- Subject: Re: [google]: initialize language field for clone function struct
- References: <BANLkTimaZh7CjWiSDoHmd9FJjz9qipwM7g@mail.gmail.com> <201105032151.17713.ebotcazou@adacore.com> <Pine.LNX.4.64.1105031954550.11522@digraph.polyomino.org.uk>
> C returns -1 from global_bindings_p, as does Ada. That the languages that
> probably care most about variable-size types find aspects of the generic
> function need overriding like that should be a good indication that it
> isn't really that generic - as I said above, semantics for variable sizes
> are very front-end-specific.
I think that a large chunk of the non-generic code can be removed because it
is either useless (the error) or obsolete (pending_size) in the 4.x series.
After that, if you prefer to make this particular function FE-specific, fine
with me, but they will all essentially look alike.
--
Eric Botcazou