summaryrefslogtreecommitdiff
path: root/libatomic
diff options
context:
space:
mode:
authorsh <sh@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-27 07:14:42 +0000
committersh <sh@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-27 07:14:42 +0000
commitbc6897e1be85c0896675fb02bd528de56bddfdd1 (patch)
tree6b59812c3fdcb399dee51a909b909f0521a90d7d /libatomic
parentb7a4b2155691132a4d4a4b6df57e802dd1789a51 (diff)
downloadgcc-bc6897e1be85c0896675fb02bd528de56bddfdd1.tar.gz
[libatomic] Add RTEMS support
gcc/ * config/rtems.h (LIB_SPEC): Add -latomic. libatomic/ * configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New variable. (*-*-rtems*): New supported target. * config/rtems/host-config.h: New file. * config/rtems/lock.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235466 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libatomic')
-rw-r--r--libatomic/ChangeLog7
-rw-r--r--libatomic/configure.tgt10
2 files changed, 17 insertions, 0 deletions
diff --git a/libatomic/ChangeLog b/libatomic/ChangeLog
index 7fc60c22085..9f56a1baf2a 100644
--- a/libatomic/ChangeLog
+++ b/libatomic/ChangeLog
@@ -1,3 +1,10 @@
+2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New variable.
+ (*-*-rtems*): New supported target.
+ * config/rtems/host-config.h: New file.
+ * config/rtems/lock.c: Likewise.
+
2016-04-25 H.J. Lu <hongjiu.lu@intel.com>
PR target/70454
diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt
index c5470d7ef8c..eab2765d7fd 100644
--- a/libatomic/configure.tgt
+++ b/libatomic/configure.tgt
@@ -26,6 +26,10 @@
# Map the target cpu to an ARCH sub-directory. At the same time,
# work out any special compilation flags as necessary.
+# Give operating systems the opportunity to discard XCFLAGS modifications based
+# on ${target_cpu}. For example to allow proper use of multilibs.
+configure_tgt_pre_target_cpu_XCFLAGS="${XCFLAGS}"
+
case "${target_cpu}" in
alpha*)
# fenv.c needs this option to generate inexact exceptions.
@@ -128,6 +132,12 @@ case "${target}" in
;;
esac
;;
+
+ *-*-rtems*)
+ XCFLAGS="${configure_tgt_pre_target_cpu_XCFLAGS}"
+ config_path="rtems"
+ ;;
+
*-*-elf*)
# ??? No target OS. We could be targeting bare-metal kernel-mode,
# or user-mode for some custom OS. If the target supports TAS,