[PATCH] [rtlfe] Barebones implementation of "__RTL"; next steps?
Richard Biener
richard.guenther@gmail.com
Tue May 17 11:19:00 GMT 2016
On Mon, May 16, 2016 at 8:48 PM, Jeff Law <law@redhat.com> wrote:
> 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.
It will require inventing sth new for types and decls though. Which I expect
to be the majority of the new frontend then (similar to the GIMPLE FE).
I don't think that's desirable.
Richard.
> jeff
>
More information about the Gcc-patches
mailing list