aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2003-02-27 16:00:55 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2003-02-27 16:00:55 +0000
commit51b7c247decbbc1c23db1835456768617d05a3c2 (patch)
tree7deaae9ac1d08179ffbc8fd5101dbdd944dab497 /gcc
parent3eae722decb9a03f6267d6e421bb69c6367c4001 (diff)
downloadgcc-51b7c247decbbc1c23db1835456768617d05a3c2.zip
gcc-51b7c247decbbc1c23db1835456768617d05a3c2.tar.gz
gcc-51b7c247decbbc1c23db1835456768617d05a3c2.tar.bz2
config.gcc (*-*-netbsd[2-9]*, [...]): Enable POSIX thread support by default.
* config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable POSIX thread support by default. From-SVN: r63509
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config.gcc11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c72462a..1383f44 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
+ POSIX thread support by default.
+
2003-02-27 Roger Sayle <roger@eyesopen.com>
* config/i386/cygwin.h: Don't include any other files directly.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index baa22d0..22d0db7 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -399,7 +399,18 @@ case $machine in
xm_defines=POSIX
gas=yes
gnu_ld=yes
+
+ # NetBSD 2.0 and later get POSIX threads enabled by default.
+ # Allow them to be explicitly enabled on any other version.
case x${enable_threads} in
+ x)
+ case $machine in
+ *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
+ thread_file='posix'
+ tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
+ ;;
+ esac
+ ;;
xyes | xposix)
thread_file='posix'
tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"