This is the mail archive of the gcc@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] | |
On 7 Oct 2004, at 9.47, Geoffrey Keating wrote:
On 06/10/2004, at 5:35 PM, Ziemowit Laski wrote:
On 6 Oct 2004, at 17.15, Geoffrey Keating wrote:
On 06/10/2004, at 4:51 PM, Ziemowit Laski wrote:
On 6 Oct 2004, at 16.18, Geoffrey Keating wrote:
Hi Zem,
How's the objc++ merge doing?
You're blocking it:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02513.html
Aaah, yes.
So, I need some more information from you.
- What is actually being stored in these fields?
For now, just protocol annotations (e.g., 'NSObject <NCCopying, NSArchiving> *').
So, it's one tree pointer?
That's all I need, since I can store them as a TREE_LIST (or some other structure if need be).
- How often is it used?
Very often. Protocols are used very heavily in AppKit and Foundation, for example.
No, I mean "how often is it used in a compilation". As in, is it used every time a field is referenced?
Protocols attach to types, not fields. Protocols are used in type comparisons and when dispatching ObjC messages (so that the proper method signature may be selected), but are not needed for things such as codegen.
- Is it ever necessary to have this information as well as the information that C or C++ stores in the lang_specific field?
No idea.
Could you please find out? This information is essential to the design.
How do you suggest I do that? You're asking me to establish constraints on the use of a local data structure by other front-ends.
However, even if we were to somehow convince ourselves that both C/C++ and ObjC lang_specific info is needed
simultaneously _today_, this might not hold true in the future as more C/C++ lang_specific stuff gets added.
At that point, we would need to reconsider this design. However, there is no benefit in penalising today's compiler because of something that might or might not happen in the future.
Don't know what you mean by "this design", since we don't have one yet.
At any rate, please take this discussion to gcc-patches where it belongs.
-- Geoff Keating <geoffk@apple.com>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |