From 3ccf43082d270a35dd34f2908e4e0de12fbe96e8 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Mon, 4 Jul 2022 16:38:54 +0100 Subject: remove unused go code --- gcc/rust/rust-object-export.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gcc') diff --git a/gcc/rust/rust-object-export.cc b/gcc/rust/rust-object-export.cc index dbeaa26..0707b79 100644 --- a/gcc/rust/rust-object-export.cc +++ b/gcc/rust/rust-object-export.cc @@ -86,20 +86,6 @@ rust_field_alignment (tree t) return v / BITS_PER_UNIT; } -/* This is called by the Rust frontend proper if the unsafe package was - imported. When that happens we cannot do type-based alias - analysis. */ -// TODO: this should be removed, as it only pertains to Go, not Rust -void -rust_imported_unsafe (void) -{ - flag_strict_aliasing = false; - TREE_OPTIMIZATION (optimization_default_node)->x_flag_strict_aliasing = false; - - /* Let the backend know that the options have changed. */ - targetm.override_options_after_change (); -} - /* This is called by the Rust frontend proper to add data to the section containing Rust export data. */ -- cgit v1.1