diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 1999-10-08 05:48:29 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-10-08 05:48:29 +0000 |
commit | 0f4fd75d9a8c1b923d996e05c0ae4f048c1cc795 (patch) | |
tree | 7c69957d784c9144aa03ed1caf1c123fd0dbffff /gcc/tree.c | |
parent | f8191e640d0bfc3e92dbd47a3b086e3e88fffcd7 (diff) | |
download | gcc-0f4fd75d9a8c1b923d996e05c0ae4f048c1cc795.zip gcc-0f4fd75d9a8c1b923d996e05c0ae4f048c1cc795.tar.gz gcc-0f4fd75d9a8c1b923d996e05c0ae4f048c1cc795.tar.bz2 |
tree.c (make_lang_type_fn): New funtion pointer.
* tree.c (make_lang_type_fn): New funtion pointer.
(make_lang_type): Call it.
* tree.h (make_lang_type): Declare.
(make_lang_type_fn): Likewise.
* rs6000.c (rs6000_build_va_list): Use make_lang_type.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r29864
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1103,6 +1103,21 @@ make_node (code) return t; } + +/* A front-end can reset this to an appropriate function if types need + special handling. */ + +tree (*make_lang_type_fn) PROTO((enum tree_code)) = make_node; + +/* Return a new type (with the indicated CODE), doing whatever + language-specific processing is required. */ + +tree +make_lang_type (code) + enum tree_code code; +{ + return (*make_lang_type_fn) (code); +} /* Return a new node with the same contents as NODE except that its TREE_CHAIN is zero and it has a fresh uid. Unlike make_node, this |