aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-target.def
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-09-28 15:33:41 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-09-21 11:15:02 +0200
commit335da4e99de5dab4678bac7d0a4dcc71c33eced0 (patch)
tree9d89375dd7ff32e5b21e5ffd99610b65f26e3814 /gcc/rust/rust-target.def
parenta7ea90e4fb8e9b4a072424d2f136264cd0edf316 (diff)
downloadgcc-335da4e99de5dab4678bac7d0a4dcc71c33eced0.zip
gcc-335da4e99de5dab4678bac7d0a4dcc71c33eced0.tar.gz
gcc-335da4e99de5dab4678bac7d0a4dcc71c33eced0.tar.bz2
rust: Reintroduce TARGET_RUST_OS_INFO hook
gcc/ChangeLog: * doc/tm.texi: Regenerate. * doc/tm.texi.in: Document TARGET_RUST_OS_INFO. gcc/rust/ChangeLog: * rust-session-manager.cc (Session::init): Call targetrustm.rust_os_info. * rust-target.def (rust_os_info): New hook.
Diffstat (limited to 'gcc/rust/rust-target.def')
-rw-r--r--gcc/rust/rust-target.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/rust/rust-target.def b/gcc/rust/rust-target.def
index 285b7503..9c72c1c 100644
--- a/gcc/rust/rust-target.def
+++ b/gcc/rust/rust-target.def
@@ -40,5 +40,13 @@ compiled.",
void, (void),
hook_void_void)
+/* Environmental OS info relating to the target OS. */
+DEFHOOK
+(rust_os_info,
+ "Similar to @code{TARGET_RUST_CPU_INFO}, but is used for configuration info\n\
+relating to the target operating system.",
+ void, (void),
+ hook_void_void)
+
/* Close the 'struct gcc_targetrustm' definition. */
HOOK_VECTOR_END (C90_EMPTY_HACK)