From 334f23d83261997ca89d8919b94b97aa22003a65 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 22 Feb 2023 10:15:19 +0100 Subject: [PATCH] Rust: Move void_list_node init to common code Apply commit r13-2682-g8ff2a92a0450243e52d3299a13b30f208bafa7e0 "Move void_list_node init to common code" to the Rust front end, too. gcc/rust/ * rust-lang.cc (grs_langhook_init): Do not initialize void_list_node. --- gcc/rust/rust-lang.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index 75f6b4458d74..3e20c45d907b 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -123,10 +123,6 @@ grs_langhook_init (void) whether char is signed. */ build_common_tree_nodes (false); - // Creates a new TREE_LIST node with purpose NULL_TREE and value - // void_type_node - void_list_node = build_tree_list (NULL_TREE, void_type_node); - // Builds built-ins for middle-end after all front-end built-ins are already // instantiated build_common_builtin_nodes (); -- 2.39.1