From 4e95a9117487c07f876f913499cb9954b6cd7d54 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 14 Apr 2023 11:57:21 +0200 Subject: Revert "Rust: Make 'tree'-level 'MAIN_NAME_P' work" This reverts commit 41c7e1d0a707f97327f097022e9e6fa7f6f13533. --- gcc/rust/backend/rust-compile-base.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/rust/backend') diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc index 9b8a793..9650d1a 100644 --- a/gcc/rust/backend/rust-compile-base.cc +++ b/gcc/rust/backend/rust-compile-base.cc @@ -523,9 +523,6 @@ HIRCompileBase::compile_function ( // we don't mangle the main fn since we haven't implemented the main shim bool is_main_fn = fn_name.compare ("main") == 0; - if (is_main_fn) - /* So that 'MAIN_NAME_P' works. */ - ir_symbol_name = fn_name; std::string asm_name = fn_name; unsigned int flags = 0; -- cgit v1.1