This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 'treelang' and GCC function-at-a-time mode
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 24 Dec 2001 01:03:12 +0000 (GMT)
- Subject: 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