This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Language hooks
- To: gcc-patches at gcc dot gnu dot org
- Subject: Language hooks
- From: Tim Josling <tej at melbpc dot org dot au>
- Date: Sun, 07 Jan 2001 19:47:54 +1100
- Organization: Melbourne PC User Group
- References: <978817840.2999.ezmlm@gcc.gnu.org>
> Richard Henderson wrote:-
>
> > I'm not in favour of this as it stands. We have a _lot_ more
> > language hooks than this. If you're planning on moving them
> > all here, maybe.
>
> Exactly, that's what I was proposing to do, but not all in that
> preliminary patch. So should I
>
> a) add yet another lang_post_options () function and put it in all
> front ends (ugly IMO),
>
> b) go ahead with the patch, and then start putting other hooks in the
> lang_hooks structure, or
>
> c) something else you prefer?
>
> Thanks,
>
> Neil.
Well I certainlywould like to have just one
language_provide_hooks call. Then I can fill in the hooks I want
to use and anyone can add hooks on the end without anyone having
to change their front ends. After this last change of course ;-)
Tim Josling