PATCH RFA: C frontend: Generate SWITCH_EXPR rather than SWITCH_STMT

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Apr 3 17:04:00 GMT 2005


Ian Lance Taylor <ian@airs.com> writes:

[...]

| It would also be possible to change the C++ frontend to no longer
| generate these looping constructs, but to emit GENERIC directly.
| However, my present understanding is that the C++ frontend maintainers
| would prefer to continue to generate them.

In fact, I'm also of the opinion that the C++ front-end should
generate a parse tree as high-elevel and close to input program as
possible, and have a separate phase to emit GENERIC and whatever is
considered appropriate to whatever phase comes after that.
(the current state is very mixed which is unfortunate).

-- Gaby



More information about the Gcc-patches mailing list