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: [tree-ssa]: More C++ PTA Fixes



On Sunday, May 18, 2003, at 01:01 AM, Jason Merrill wrote:


Who generates REFERENCE_EXPR?
No idea.
I assumed something did, since we handle it in both c-pretty-print and tree-pretty-print.


What distinguishes it from NON_LVALUE_EXPR?

According to tree.def, nothing that i can discern:
"
/* Non-lvalue reference or pointer to an object.  */
DEFTREECODE (REFERENCE_EXPR, "reference_expr", 'e', 1)
"

Looking closer, however, it appears, however, that nothing actually *generates* it anymore, we just handle it in a few places.

It appears (excluding *-pretty-print)
1 time in c-common.c
1 time in dojump.c
2 times in expr.c
2 times in f/com.c

None of them generate it, only use it.
If nothing is using it, and we have no use for it, it should be removed.

Jason


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