diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-06-22 22:16:25 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:17 +0000 |
commit | e58a5c98546ba203c77d870d065a48784a1d153d (patch) | |
tree | 8f8bfc0da453e9f50b9cc37ab6762aa1454e993f | |
parent | 6206176647eed0b386a3aa1831fe29d4e76230a6 (diff) | |
download | gcc-e58a5c98546ba203c77d870d065a48784a1d153d.zip gcc-e58a5c98546ba203c77d870d065a48784a1d153d.tar.gz gcc-e58a5c98546ba203c77d870d065a48784a1d153d.tar.bz2 |
Added IQ2000 target hook
-rw-r--r-- | gcc/config/iq2000/iq2000.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/iq2000/iq2000.h b/gcc/config/iq2000/iq2000.h index 2a257e5..bbd4dff 100644 --- a/gcc/config/iq2000/iq2000.h +++ b/gcc/config/iq2000/iq2000.h @@ -43,6 +43,19 @@ } \ while (0) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "iq2000"); \ + /*TODO: maybe make sub-arches features?*/ \ + if (TARGET_EMBEDDED_DATA) \ + rust_add_target_info("target_feature", "embedded-data"); \ + if (TARGET_GPOPT) \ + rust_add_target_info("target_feature", "gpopt"); \ + /*TODO: figure out if can detect no-crt0 as feature*/ \ + if (TARGET_UNINIT_CONST_IN_RODATA) \ + rust_add_target_info("target_feature", "uninit-const-in-rodata"); \ + } while (0) + /* Macros used in the machine description to test the flags. */ #define TARGET_STATS 0 |