aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-07-08 18:19:34 +0000
committerGitHub <noreply@github.com>2022-07-08 18:19:34 +0000
commita273dbd971d337000155fe56a1d7cd78868caa9a (patch)
treed16a92ebf5b3ac04e9097ba1b2c10e0ed03ee072 /gcc
parent3f32592159778e152fed6b61b0ce3c5b58409151 (diff)
parent3ccf43082d270a35dd34f2908e4e0de12fbe96e8 (diff)
downloadgcc-a273dbd971d337000155fe56a1d7cd78868caa9a.zip
gcc-a273dbd971d337000155fe56a1d7cd78868caa9a.tar.gz
gcc-a273dbd971d337000155fe56a1d7cd78868caa9a.tar.bz2
Merge #1374
1374: remove unused go code r=philberty a=philberty This function is not used and we don't want to disable optimizations randomly like this. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-object-export.cc14
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. */