This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Make ObjC an extension of C
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Aug 2002 23:12:07 +0100
- Subject: Re: PATCH: Make ObjC an extension of C
- References: <5DCC9BC6-AB1B-11D6-8561-000393673036@apple.com>
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.