On 05/12/2016 08:29 AM, David Malcolm wrote:
One wart I ran into is that system.h has this:
/* Front ends should never have to include middle-end headers. Enforce
this by poisoning the header double-include protection defines. */
#ifdef IN_GCC_FRONTEND
#pragma GCC poison GCC_RTL_H GCC_EXCEPT_H GCC_EXPR_H
#endif
i.e. the idea of running RTL code from inside the C frontend seems to
be banned.
Yea, we really don't want the front-ends to know about the guts of RTL.
This work would seem to violate that guiding principle.
I'd be more in favor of a true RTL front-end rather than bolting it onto
the side of the C front-end.
jeff