Comments

Hello Everyone,
Is it OK to move build_c_cast prototype into c-common.h? The reason for this is that, I would like to share some of the code between array notation for C and C++ and this function is sort of required for both places. Also, the exact same call is available for both C and C++ with the same parameters at the same locations. The change involves removing the prototype from c-tree.h and cp-tree.h and moving it to c-common.h.
Here is the changelogs and the patch to accomplish what I am requesting. Please let me know if it is OK for the trunk.
gcc/c-family/ChangeLog
2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-common.h (build_c_cast): Added new extern prototype.
gcc/c/ChangeLog
2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-tree.h (build_c_cast): Remove prototype.
gcc/cp/ChangeLog
2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
* c-tree.h (build_c_cast): Remove prototype.
Thanks,
Balaji V. Iyer.