summaryrefslogtreecommitdiff
path: root/libgomp/configure.tgt
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-03 11:26:36 +0000
committerSebastian Huber <sh@gcc.gnu.org>2015-09-03 11:26:36 +0000
commit13c41b2e3e0cf6996ea2d49e0557814607fe2f59 (patch)
treeb8cc0ec94f547152e58b42f867351520f7d48307 /libgomp/configure.tgt
parent7892ec670c1c5d1e4d911ab41903a6af72bc85d2 (diff)
downloadgcc-13c41b2e3e0cf6996ea2d49e0557814607fe2f59.tar.gz
[gomp] Add RTEMS configuration
libgomp/ChangeLog * config/rtems/bar.c: New. * config/rtems/bar.h: Likewise. * config/rtems/mutex.c: Likewise. * config/rtems/mutex.h: Likewise. * config/rtems/sem.c: Likewise. * config/rtems/sem.h: Likewise. * configure.ac (*-*-rtems*): Check that Newlib provides a proper <sys/lock.h> header file. * configure.tgt (*-*-rtems*): Enable RTEMS configuration if supported by Newlib. * configure: Regenerate. From-SVN: r227440
Diffstat (limited to 'libgomp/configure.tgt')
-rw-r--r--libgomp/configure.tgt6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 8fad977a211..f2236aec120 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -153,6 +153,12 @@ case "${target}" in
nvptx*-*-*)
config_path="nvptx"
+
+ *-*-rtems*)
+ # Use self-contained synchronization objects if provided by Newlib
+ if test "x$ac_cv_type_struct__Mutex_Control" = xyes ; then
+ config_path="rtems posix"
+ fi
;;
*)