diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-07-04 16:38:54 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-07-08 14:47:23 +0100 |
commit | 3ccf43082d270a35dd34f2908e4e0de12fbe96e8 (patch) | |
tree | 028a6498894134d78b3c50c099606c552d907da0 /gcc/rust | |
parent | e1293ae35777427e1c87659ae21f9bca5f6395d6 (diff) | |
download | gcc-3ccf43082d270a35dd34f2908e4e0de12fbe96e8.zip gcc-3ccf43082d270a35dd34f2908e4e0de12fbe96e8.tar.gz gcc-3ccf43082d270a35dd34f2908e4e0de12fbe96e8.tar.bz2 |
remove unused go code
Diffstat (limited to 'gcc/rust')
-rw-r--r-- | gcc/rust/rust-object-export.cc | 14 |
1 files changed, 0 insertions, 14 deletions
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. */ |