This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'treelang' and GCC function-at-a-time mode


On 24 Dec 2001, Steven Bosscher wrote:

> Should `treelang' use functions from `c-common.c' instead of 'stmt.c' to
> make it use function-at-a-time mode. Is that what I should do in G95 and
> in my own toy front-ends?

All the infrastructure for functions as trees is at present
C/C++-specific.  The names of tree-dump.* and tree-inline.* are
misleading, since these files too are C/C++ specific and include C front
end headers.

The basic infrastructure should be changed not to be C/C++ specific; the
tree codes, except those that arguably are C/C++ specific rather than
generic, should become generic ones, and the tree-* files should stop
including C/C++ headers, instead using language hooks to handle those tree
codes that are specific to C/C++.  All the necessary infrastructure
functions presently in the C/C++ files, to handle those tree codes that
become generic, should move to the generic files.

Non-C-family front ends should not use c-common.c.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]