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 (Take 2)


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





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