aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-07-24 16:18:52 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:20 +0000
commit2f12a7eba28bdd2d3d4514113247d8423afe8a46 (patch)
treef05b9e8f6b4a452c5527a6dc6398aa0af8b9e989
parent113f2b15c41a6b9656e55505ba4a47a05ab493ee (diff)
downloadgcc-2f12a7eba28bdd2d3d4514113247d8423afe8a46.zip
gcc-2f12a7eba28bdd2d3d4514113247d8423afe8a46.tar.gz
gcc-2f12a7eba28bdd2d3d4514113247d8423afe8a46.tar.bz2
Added Xtensa target hook (or provisional one at least)
-rw-r--r--gcc/config/xtensa/xtensa.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index 33bfe45..bcef544 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -90,6 +90,20 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("__XTENSA_SOFT_FLOAT__"); \
} while (0)
+#define TARGET_RUST_CPU_INFO() \
+ do { \
+ rust_add_target_info("target_arch", "xtensa"); \
+ /*TODO: figure out how to get info from longcalls, target-align and text-section-literals*/ \
+ if (TARGET_CONST16) \
+ rust_add_target_info("target_feature", "const16"); \
+ if (TARGET_FORCE_NO_PIC) \
+ rust_add_target_info("target_feature", "force-no-pic"); \
+ if (TARGET_AUTO_LITPOOLS) \
+ rust_add_target_info("target_feature", "auto-litpools"); \
+ if (TARGET_SERIALIZE_VOLATILE) \
+ rust_add_target_info("target_feature", "serialize-volatile"); \
+ } while (0)
+
#define CPP_SPEC " %(subtarget_cpp_spec) "
#ifndef SUBTARGET_CPP_SPEC