aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-06-21 17:27:51 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:17 +0000
commit72b91a85f0f6b3a3800beb351db95dd758efc85c (patch)
treef307d64f3a5aa0c95b896d4d72678efcac04576d
parentb0eb8fb1473e82a2577a605f3efb8445f6867415 (diff)
downloadgcc-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.h16
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