diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-07-04 21:51:08 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:18 +0000 |
commit | 888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b (patch) | |
tree | 12a79d519f883923537cfd873eaaef6a2485ad84 /gcc | |
parent | 40eb6d5496ff72810d03cc4562505256e1e4286a (diff) | |
download | gcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.zip gcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.tar.gz gcc-888c584e06447dd1b3bb8cc39aff3cf9dbfcf47b.tar.bz2 |
Added moxie target hook (or at least provisional one)
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/moxie/moxie.h | 12 |
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 */ |