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/d | |
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/d')
-rw-r--r-- | gcc/d/d-builtins.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc index c2ef0c8..5997e5d 100644 --- a/gcc/d/d-builtins.cc +++ b/gcc/d/d-builtins.cc @@ -889,7 +889,6 @@ static GTY(()) tree signed_size_type_node; static void d_build_c_type_nodes (void) { - void_list_node = build_tree_list (NULL_TREE, void_type_node); string_type_node = build_pointer_type (char_type_node); const_string_type_node = build_pointer_type (build_qualified_type (char_type_node, |