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 (Take 2)
- From: Stan Shebs <shebs at apple dot com>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 09 Aug 2002 10:16:10 -0700
- Subject: Re: PATCH: Make ObjC an extension of C (Take 2)
- References: <7803438A-AB3D-11D6-8561-000393673036@apple.com>
Ziemowit Laski wrote:
Ok, I've incorporated some of Neil Booth's suggestions, notably
renaming compiling_objc to flag_objc, and removing this flag
from cpplib. Selecting Objective-C will currently imply C89;
I have a fix to c-parse.in in the queue which will allow C99
designated initializers to coexist with ObjC messages; once that
goes in, we could have ObjC imply C99 instead.
I'm currently bootstrapping the whole thing on i686-pc-linux-gnu.
OK for TOT if all goes well?
OK, with Neil's changes and the following tweaks.
+ /* The following flag is non-zero whenever ObjC or ObjC++ is being
Reword to say "Objective-C functionality" or something like that. As
you yourself noted, references to things not actually in the source are
confusing at best.
+ /* The following flag is non-zero whenever ObjC or ObjC++ is being
Ditto.
! #ifdef OBJCPLUS
! cxx_init_options (clk_cplusplus);
! #else
! c_common_init_options (clk_c);
! #endif
! }
Don't forget about this bit...
Stan