'treelang' and GCC function-at-a-time mode
Joseph S. Myers
jsm28@cam.ac.uk
Sun Dec 23 19:24:00 GMT 2001
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
More information about the Gcc
mailing list