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


I like this idea.  However...

Ziemowit Laski wrote:-

> The main purpose of this patch is to remove clk_objective_c as
> a distinct language supported by the C-flavored front-ends.  Instead,
> Objective-C acquires the status of an _extension_ to the C language;
> the 'compiling_objc' flag is introduced to keep track of whether this

Please use something beginning with flag_ like the rest of GCC.  I
suggest flag_objc.

> extension is being used.  Currently, compiling_objc is unconditionally
> set by cc1obj, and left cleared by cc1.  As we move towards a unified
> front-end, however, compiling_objc will have to be controlled by its
> own flag ('-fobjc'?).  This control will be independent of the specific

This is already handled by -lang- flags passed to CPP.  Please check
that out.  No new switch is needed.

> variant of C (e.g., C94, C99, etc.) desired.
> 
>         * c-common.c (c_common_init_options): Remove uses of
>         clk_objective_c, replace with compiling_objc as needed.

This has moved.  Your patch is at least 24 hours out of date (sorry!).

Neil.


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