This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: function-at-a-time processing in C
>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:
Richard> On Wed, Jun 14, 2000 at 10:29:00AM -0700, Benjamin Chelf
Richard> wrote:
>> RCS file: c-common.def diff -N c-common.def
Richard> Why oh why does this file exist? What about it is C or
Richard> C++ specific? Not one single thing. All of these codes
Richard> should be defined by the *generic* tree.def, to be used
Richard> by all front ends.
Interesting that you think so. I thought about this the other way:
these nodes have structure that very closely matches C's syntax and
semantics. For example, FOR_STMT has four children: the
initialization, test, increment, and body. That might well not match
up with what other languages might want in an iteration statement.
Following on later will be bits to build these things, and bits to
turn them into RTL. Turning them into RTL is also going to have
C-like semantics.
If however, you think that this stuff is really useful to lots of
different languages, I'm in no way opposed to moving it into
tree.def/tree.h.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com