From 3faf45fcf6ced5dc0ec5c532abb96fd31916de69 Mon Sep 17 00:00:00 2001 From: SimplyTheOther Date: Fri, 19 Jun 2020 16:52:04 +0800 Subject: Added fr30 target hook (at least provisional one) --- gcc/config/fr30/fr30.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc') diff --git a/gcc/config/fr30/fr30.h b/gcc/config/fr30/fr30.h index 5d725b0..a7b04bc 100644 --- a/gcc/config/fr30/fr30.h +++ b/gcc/config/fr30/fr30.h @@ -38,6 +38,14 @@ along with GCC; see the file COPYING3. If not see } \ while (0) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "fr30"); \ + if (TARGET_SMALL_MODEL) \ + rust_add_target_info("target_feature", "small-model"); \ + /*TODO: figure out how to do lsim option here if useful */ \ + } while (0) + #undef STARTFILE_SPEC #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s" -- cgit v1.1