]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Rust: Move void_list_node init to common code
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 22 Feb 2023 09:15:19 +0000 (10:15 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 22 Feb 2023 09:16:31 +0000 (10:16 +0100)
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

index 75f6b4458d744f8aeb3119f81c4bc453fe381328..3e20c45d907b17ada4f037c0e091a2d67ec12c0d 100644 (file)
@@ -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 ();