aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-lang.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-09-24 21:46:11 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-09-30 23:53:26 +0200
commitf97e0ca6e4e5efb33a47f8a1f0a49375fd1197f9 (patch)
tree4f15c1f543841c76ab96eeebf17d25799ecdde36 /gcc/rust/rust-lang.cc
parent066b6b8df960796362dbdcff62851ebea201b8e9 (diff)
downloadgcc-f97e0ca6e4e5efb33a47f8a1f0a49375fd1197f9.zip
gcc-f97e0ca6e4e5efb33a47f8a1f0a49375fd1197f9.tar.gz
gcc-f97e0ca6e4e5efb33a47f8a1f0a49375fd1197f9.tar.bz2
rust: Reintroduce TARGET_RUST_CPU_INFO hook
gcc/ChangeLog: * doc/tm.texi: Regenerate. * doc/tm.texi.in: Add @node for Rust language and ABI, and document TARGET_RUST_CPU_INFO. gcc/rust/ChangeLog: * rust/rust-lang.cc (rust_add_target_info): Remove sorry. * rust/rust-session-manager.cc: Replace include of target.h with include of tm.h and rust-target.h. (Session::init): Call targetrustm.rust_cpu_info. * rust/rust-target.def (rust_cpu_info): New hook. * rust/rust-target.h (rust_add_target_info): Declare.
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r--gcc/rust/rust-lang.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index c9af790..ed822cc 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -104,8 +104,6 @@ struct GTY (()) language_function
void
rust_add_target_info (const char *key, const char *value)
{
- sorry ("TODO");
-
Rust::Session::get_instance ().options.target_data.insert_key_value_pair (
key, value);
}