aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/vax/vax.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index c1d0171..3a4b2aa 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -33,6 +33,23 @@ along with GCC; see the file COPYING3. If not see
} \
while (0)
+#define TARGET_RUST_CPU_INFO() \
+ do { \
+ rust_add_target_info("target_arch", "vax"); \
+ if (TARGET_G_FLOAT) \
+ rust_add_target_info("target_feature", "g-float"); \
+ else \
+ rust_add_target_info("target_feature", "d-float"); \
+ if (TARGET_UNIX_ASM) \
+ rust_add_target_info("target_feature", "unix-as"); \
+ else \
+ rust_add_target_info("target_feature", "gas"); \
+ if (TARGET_VAXC_ALIGNMENT) \
+ rust_add_target_info("target_feature", "vaxc-alignment"); \
+ if (TARGET_QMATH) \
+ rust_add_target_info("target_feature", "qmath"); \
+ } while (0)
+
/* Use -J option for long branch support with Unix assembler. */
#define ASM_SPEC "-J"