This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA]: Clean up C front ends init_options langhook


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]