GENERIC build pointer plus expression

Prathamesh Kulkarni bilbotheelffriend@gmail.com
Wed Feb 12 16:06:00 GMT 2014


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



More information about the Gcc-help mailing list