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: PATCH: Make ObjC an extension of C


Neil Booth wrote:-

> Ziemowit Laski wrote:-
> 
> > Hm... The whole point of my patch is to have ObjC be treated as an
> > extension to another language, rather than a language on its own.
> > Under your scenario, the user would wind up saying things like,
> > '-lang-c89 -lang-objc', which I would personally find confusing.
> > Please advise.
> 
> The driver does this silently for you, unless you have something else
> in mind?  Check the output of gcc -v to see what currently happens;
> there is a -lang-objc (which comes from objc/lang-specs.h or whatever
> the file name is).

I should add that you cannot pass -lang-anything to the driver, as it
is interpreted as a linker flag.  The driver gives you the -lang-objc
based on the file extension (or -x I think).  If you want a particular
C standard, you specify that with -std=.

Neil.


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