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] |
On Mar 7, 2005, Mark Mitchell <mark@codesourcery.com> wrote:
Are you sure that we can use TARGET_EXPR as a type-conversion node?
Actually, no. I was led to believe so because there is a function that creates a TARGET_EXPR given an initializer and a type, in addition to the one that takes the type from the initializer.
I was thinking references, actually, so there wouldn't be a constructor involved. I.e., I was trying to preserve the earlier behavior of TARGET_EXPRs (i.e., mostly do nothing with them), while adjusting the behavior only as much as needed for this new use.
Then we really should do that.
Eek. What for? All we need to do is adjust its type. A new tree node scattered all over the place feels like way too much overhead for this.
The games that you want to play with type-equality are just too fragile.
I still don't see why.
-- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |