diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-07-22 22:09:24 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:19 +0000 |
commit | e6bc70496837494959039523fb7982056f59347f (patch) | |
tree | 8aecc6f5efcaf4a8d3dffb4cfb341978460254fc | |
parent | cc2880c40817a08a19c6dd4c5bb1aa2a1fc3346f (diff) | |
download | gcc-e6bc70496837494959039523fb7982056f59347f.zip gcc-e6bc70496837494959039523fb7982056f59347f.tar.gz gcc-e6bc70496837494959039523fb7982056f59347f.tar.bz2 |
Added TILEPro target hook
-rw-r--r-- | gcc/config/tilepro/tilepro.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/tilepro/tilepro.h b/gcc/config/tilepro/tilepro.h index a23c77f..cafa5f5 100644 --- a/gcc/config/tilepro/tilepro.h +++ b/gcc/config/tilepro/tilepro.h @@ -34,6 +34,14 @@ #define TARGET_CPU_CPP_BUILTINS() \ tilepro_cpu_cpp_builtins (pfile) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "tilepro"); \ + rust_add_target_info("target_feature", "32"); \ + if (tilepro_cpu == 0) \ + rust_add_target_info("target_feature", "cpu-tilepro"); \ + } while (0) + #undef PTRDIFF_TYPE #define PTRDIFF_TYPE "int" |