diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-06-21 17:27:51 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:17 +0000 |
commit | 72b91a85f0f6b3a3800beb351db95dd758efc85c (patch) | |
tree | f307d64f3a5aa0c95b896d4d72678efcac04576d | |
parent | b0eb8fb1473e82a2577a605f3efb8445f6867415 (diff) | |
download | gcc-72b91a85f0f6b3a3800beb351db95dd758efc85c.zip gcc-72b91a85f0f6b3a3800beb351db95dd758efc85c.tar.gz gcc-72b91a85f0f6b3a3800beb351db95dd758efc85c.tar.bz2 |
Added FT32 target hook (or at least provisional one)
-rw-r--r-- | gcc/config/ft32/ft32.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/ft32/ft32.h b/gcc/config/ft32/ft32.h index 962cce8..eb63c5b 100644 --- a/gcc/config/ft32/ft32.h +++ b/gcc/config/ft32/ft32.h @@ -463,6 +463,22 @@ do { \ builtin_define ("__FT32__"); \ } +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "ft32"); \ + if (TARGET_SIM) \ + rust_add_target_info("target_feature", "sim"); \ + /*TODO: figure out how to use lra option*/ \ + if (TARGET_NODIV) \ + rust_add_target_info("target_feature", "nodiv"); \ + if (TARGET_FT32B) \ + rust_add_target_info("target_feature", "ft32b"); \ + if (TARGET_COMPRESS) \ + rust_add_target_info("target_feature", "compress"); \ + if (TARGET_NOPM) \ + rust_add_target_info("target_feature", "nopm"); \ + } while (0) + #define HAS_LONG_UNCOND_BRANCH true #define NO_FUNCTION_CSE 1 |