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] | |
- 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.
Is it necessary in the current compilers, to which you have source?
Even if the "current compilers" were set in stone, I still fail to see how you'd compute this predicate.
More generally, given what the current compilers have in the lang_type structures, is it necessary to have both that data and the data that objc needs?
Or, to phrase it another way, could we just decide that lang_type can be a union that can point to either the data that objc needs or the data that the C or C++ frontend needs?
You're asking me
(1) the exact conditions under which C or C++ might decide to store lang_specific information in a type node; and
(2) the exact conditions under which ObjC/ObjC++ needs to store lang_specific information (for now, protocols) in a type node; and
(3) whether (1) and (2) are guaranteed to be mutually exclusive.
The only one of these I could even _begin_ to answer is (2).
Unless you can present a methodology for computing (1), as well as ensuring that _no_ future patch to the C or C++ front-ends alters (1) in ways that violates (3), I posit that the C/C++ and ObjC/ObjC++ lang_specific information must be treated as orthogonal.
-- 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] |