diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-06-19 16:52:04 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:16 +0000 |
commit | 3faf45fcf6ced5dc0ec5c532abb96fd31916de69 (patch) | |
tree | 09e67b993dfd0304b0802526636109a512c1167d | |
parent | 158a1e07761aa438fe389a61e869642f38ee53ff (diff) | |
download | gcc-3faf45fcf6ced5dc0ec5c532abb96fd31916de69.zip gcc-3faf45fcf6ced5dc0ec5c532abb96fd31916de69.tar.gz gcc-3faf45fcf6ced5dc0ec5c532abb96fd31916de69.tar.bz2 |
Added fr30 target hook (at least provisional one)
-rw-r--r-- | gcc/config/fr30/fr30.h | 8 |
1 files changed, 8 insertions, 0 deletions
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" |