aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-07-04 21:51:08 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:18 +0000
commit888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b (patch)
tree12a79d519f883923537cfd873eaaef6a2485ad84
parent40eb6d5496ff72810d03cc4562505256e1e4286a (diff)
downloadgcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.zip
gcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.tar.gz
gcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.tar.bz2
Added moxie target hook (or at least provisional one)
-rw-r--r--gcc/config/moxie/moxie.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index 137c0a3..a3e8caf 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -423,6 +423,18 @@ enum reg_class
builtin_define ("__MOXIE_BIG_ENDIAN__"); \
}
+#define TARGET_RUST_CPU_INFO() \
+ do { \
+ rust_add_target_info("target_arch", "moxie"); \
+ if (TARGET_LITTLE_ENDIAN) \
+ rust_add_target_info("target_feature", "el"); \
+ else \
+ rust_add_target_info("target_feature", "eb"); \
+ if (TARGET_HAS_MULX) \
+ rust_add_target_info("target_feature", "mul.x"); \
+ /*TODO: find way of getting no-crt0 info?*/ \
+ } while (0)
+
#define HAS_LONG_UNCOND_BRANCH true
#endif /* GCC_MOXIE_H */