summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorjoel <joel@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-17 14:15:53 +0000
committerjoel <joel@138bc75d-0d04-0410-961f-82ee72b054a4>2014-09-17 14:15:53 +0000
commitf4f5951e7a99aaaf031912c2f4e40537df462d4c (patch)
tree11fd9b29a5f9cb245bd092b016598949163ff392 /gcc/config.gcc
parent0624d0c76b791662092f4596b2a2393bf4bb32d5 (diff)
downloadgcc-f4f5951e7a99aaaf031912c2f4e40537df462d4c.tar.gz
2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* config.gcc (*-*-rtems*): Default to 'rtems' thread model. Enable selection of 'posix' or no thread model. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index a33bce92c56..caafa7e20f7 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -785,7 +785,13 @@ case ${target} in
;;
*-*-rtems*)
case ${enable_threads} in
- yes) thread_file='rtems' ;;
+ "" | yes | rtems) thread_file='rtems' ;;
+ posix) thread_file='posix' ;;
+ no) ;;
+ *)
+ echo 'Unknown thread configuration for RTEMS'
+ exit 1
+ ;;
esac
tmake_file="${tmake_file} t-rtems"
extra_options="${extra_options} rtems.opt"