This is the mail archive of the gcc-help@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]

GENERIC build pointer plus expression


I want to build tree for the following c expression:
p + foo(); (p is pointer type and foo() returns size_t)

Is following the correct way to do it:
(call_expr represents call to foo() )
tree expr = build2 (POINTER_PLUS_EXPR, TREE_TYPE (p), p, call_expr);

Thanks and Regards,
Prathamesh


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