aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-06-23 20:08:06 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:17 +0000
commit695a885813daef0f877a8127cf23ec4b6cdb9d6a (patch)
treee3a7fa7a8c8af44aa509ec597d235869f3aa8b06
parente742ebec78186c0c7d3288b35f4f35b318762f7b (diff)
downloadgcc-695a885813daef0f877a8127cf23ec4b6cdb9d6a.zip
gcc-695a885813daef0f877a8127cf23ec4b6cdb9d6a.tar.gz
gcc-695a885813daef0f877a8127cf23ec4b6cdb9d6a.tar.bz2
Added M32C target hook (provisional one at least)
-rw-r--r--gcc/config/m32c/m32c.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h
index 895f8f3..1ed099b 100644
--- a/gcc/config/m32c/m32c.h
+++ b/gcc/config/m32c/m32c.h
@@ -80,6 +80,21 @@
builtin_define ("__m32c_cpu__=1"); \
}
+#define TARGET_RUST_CPU_INFO() \
+ do { \
+ rust_add_target_info("target_arch", "m32c"); \
+ if (TARGET_R8C) \
+ rust_add_target_info("target_feature", "r8c"); \
+ if (TARGET_M16C) \
+ rust_add_target_info("target_feature", "m16c"); \
+ if (TARGET_M32CM) \
+ rust_add_target_info("target_feature", "m32cm"); \
+ if (TARGET_M32C) \
+ rust_add_target_info("target_feature", "m32c"); \
+ /*TODO: find way of getting sim info?*/ \
+ /*TODO: find way of defining memregs usefully?*/ \
+ } while (0)
+
/* The pragma handlers need to know if we've started processing
functions yet, as the memregs pragma should only be given at the
beginning of the file. This variable starts off TRUE and later