This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, ObjC/C++] Recognize attributes on class, category and protocol declarations.
- From: IainS <developer at sandoe-acoustics dot co dot uk>
- To: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Mike Stump <mrs at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>, Jason Merrill <jason at redhat dot com>
- Date: Sun, 26 Sep 2010 15:39:30 +0100
- Subject: Re: [Patch, ObjC/C++] Recognize attributes on class, category and protocol declarations.
- References: <C97DAA0C-0D72-429A-A276-ADA2FE3090E1@sandoe-acoustics.co.uk> <1285511207.857121235@192.168.2.228>
On 26 Sep 2010, at 15:26, Nicola Pero wrote:
I wonder about the warning messages though. They mention "ObjC
Version 1",
but I'm not even sure I know myself what "ObjC Version 1" is ;-)
Hm. I wonder if it was ever official
Perhaps we can only go by release dates (of XCode versions supporting
additional features)
--- that will require a trawl through the release notes (see below).
I would suggest we use something more neutral (for now), such as
class attributes are ignored (not supported by the compiler)
fine by me - I intend that the 'unimplemented' phase will only last
for a short time.
We'll need to classify and document the Objective-C features as
we're going to be
adding all the new ones, so we may want to revisit the message once
we have done
some classification (which should probably go in the gcc/doc/
standards.texi).
I would like to have (very soon) something equivalent to the
-std= option (maybe -objc-std= ) so that we can have an enum (e.g.
apple_200x ... or gnu_xxx ) so that we can provide decent diagnostics
for compatibility.
I think this needs discussion on a separate thread tho.
Iain