This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA]: Clean up C front ends init_options langhook
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: Sun, 29 Jun 2003 09:15:38 +0100
- Subject: Re: [RFA]: Clean up C front ends init_options langhook
- References: <20030628220625.GA4447@daikokuya.co.uk> <87he69k34d.fsf@egil.codesourcery.com>
Zack Weinberg wrote:-
> Neil Booth <neil@daikokuya.co.uk> writes:
>
> > This arose out of the next step I want to do with the options stuff.
> > The patch removes c_language, and uses flag_cxx instead, which is
> > canonical with use of flag_objc.
>
> I don't have a strong opinion here but I would kind of prefer it go
> the other way, i.e. fold flag_objc into c_language.
That is doable, but means two enums for one flag, and two checks
for each if (flag_objc) now. Being ObjC or not is really canonical;
remember that Apple have ObjC++.
Neil.