aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-target.def
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-target.def')
-rw-r--r--gcc/rust/rust-target.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/rust/rust-target.def b/gcc/rust/rust-target.def
index c800eef..285b7503 100644
--- a/gcc/rust/rust-target.def
+++ b/gcc/rust/rust-target.def
@@ -28,5 +28,17 @@ HOOK_VECTOR (TARGETRUSTM_INITIALIZER, gcc_targetrustm)
#undef HOOK_PREFIX
#define HOOK_PREFIX "TARGET_"
+/* Environmental CPU info and features (e.g. endianness, pointer size) relating
+ to the target CPU. */
+DEFHOOK
+(rust_cpu_info,
+ "Declare all environmental CPU info and features relating to the target CPU\n\
+using the function @code{rust_add_target_info}, which takes a string\n\
+representing the feature key and a string representing the feature value.\n\
+Configuration pairs predefined by this hook apply to all files that are being\n\
+compiled.",
+ void, (void),
+ hook_void_void)
+
/* Close the 'struct gcc_targetrustm' definition. */
HOOK_VECTOR_END (C90_EMPTY_HACK)