diff options
author | Richard Biener <rguenther@suse.de> | 2022-09-14 15:59:37 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-09-15 14:16:25 +0200 |
commit | 8ff2a92a0450243e52d3299a13b30f208bafa7e0 (patch) | |
tree | 87720f77ed71647fb88fa102343e30c1eea649ee /gcc/c | |
parent | e3220adc444b00d6fd6e8775565222f65fd37138 (diff) | |
download | gcc-8ff2a92a0450243e52d3299a13b30f208bafa7e0.zip gcc-8ff2a92a0450243e52d3299a13b30f208bafa7e0.tar.gz gcc-8ff2a92a0450243e52d3299a13b30f208bafa7e0.tar.bz2 |
Move void_list_node init to common code
All frontends replicate this, so move it.
gcc/
* tree.cc (build_common_tree_nodes): Initialize void_list_node
here.
gcc/ada/
* gcc-interface/trans.cc (gigi): Do not initialize void_list_node.
gcc/c-family/
* c-common.h (build_void_list_node): Remove.
* c-common.cc (c_common_nodes_and_builtins): Do not initialize
void_list_node.
gcc/c/
* c-decl.cc (build_void_list_node): Remove.
gcc/cp/
* decl.cc (cxx_init_decl_processing): Inline last
build_void_list_node call.
(build_void_list_node): Remove.
gcc/d/
* d-builtins.cc (d_build_c_type_nodes): Do not initialize
void_list_node.
gcc/fortran/
* f95-lang.cc (gfc_init_decl_processing): Do not initialize
void_list_node.
gcc/go/
* go-lang.cc (go_langhook_init): Do not initialize
void_list_node.
gcc/jit/
* dummy-frontend.cc (jit_langhook_init): Do not initialize
void_list_node.
gcc/lto/
* lto-lang.cc (lto_build_c_type_nodes): Do not initialize
void_list_node.
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/c-decl.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc index 34f8fed..b09c639 100644 --- a/gcc/c/c-decl.cc +++ b/gcc/c/c-decl.cc @@ -10676,14 +10676,6 @@ record_builtin_type (enum rid rid_index, const char *name, tree type) debug_hooks->type_decl (decl, false); } -/* Build the void_list_node (void_type_node having been created). */ -tree -build_void_list_node (void) -{ - tree t = build_tree_list (NULL_TREE, void_type_node); - return t; -} - /* Return a c_parm structure with the given SPECS, ATTRS and DECLARATOR. */ struct c_parm * |