aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-07-04 20:49:53 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:18 +0000
commit40eb6d5496ff72810d03cc4562505256e1e4286a (patch)
tree07854bfc85a4e43dd7cdfa8bdf7c5b55a1df4a4a /gcc
parent2c9687c2df6296368830b8172315d3ab970054d4 (diff)
downloadgcc-40eb6d5496ff72810d03cc4562505256e1e4286a.zip
gcc-40eb6d5496ff72810d03cc4562505256e1e4286a.tar.gz
gcc-40eb6d5496ff72810d03cc4562505256e1e4286a.tar.bz2
Added MN10300 target hook (or provisional one at least)
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mn10300/mn10300.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index 2292c5b..3810e7b 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -58,6 +58,26 @@
} \
while (0)
+#define TARGET_RUST_CPU_INFO() \
+ do { \
+ rust_add_target_info("target_arch", "mn10300"); \
+ if (TARGET_AM33) \
+ rust_add_target_info("target_feature", "am33"); \
+ else if (TARGET_AM33_2) \
+ rust_add_target_info("target_feature", "am33-2"); \
+ else if (TARGET_AM34) \
+ rust_add_target_info("target_feature", "am34"); \
+ if (TARGET_MULT_BUG) \
+ rust_add_target_info("target_feature", "mult-bug"); \
+ if (TARGET_PTR_A0D0) \
+ rust_add_target_info("target_feature", "return-pointer-on-d0"); \
+ if (TARGET_ALLOW_LIW) \
+ rust_add_target_info("target_feature", "liw"); \
+ if (TARGET_ALLOW_SETLB) \
+ rust_add_target_info("target_feature", "setlb"); \
+ /*TODO: find way of getting no-crt0 and relax info?*/ \
+ } while (0)
+
#ifndef MN10300_OPTS_H
#include "config/mn10300/mn10300-opts.h"
#endif