This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Drop support for --enable-threads=pthreads, and dead thread models
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Oct 2003 12:20:03 -0400
- Subject: [patch] Drop support for --enable-threads=pthreads, and dead thread models
OK, this is what I came up with in response to the reaction to my
other suggested patch. This gets rid of --enable-threads='pthreads'
(in favor of --enable-threads='posix', mind you)
and gets rid of some other unsupported thread models as well.
I'll follow up with a documentation patch.
OK?
* config.gcc: Don't accept --enable-threads=pthreads. Clean
up related case statements.
* configure.in: Don't accept --enable-threads=pthreads,
decosf1, mach, or os2 (none of which work anyway). Alphabetize
supported thread files in case clause.
* configure: Regenerate.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.393
diff -u -r1.393 config.gcc
--- config.gcc 2 Oct 2003 00:44:13 -0000 1.393
+++ config.gcc 8 Oct 2003 16:14:43 -0000
@@ -381,7 +381,7 @@
no)
fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
;;
- "" | yes | pthreads | posix)
+ "" | yes | posix)
thread_file='posix'
tmake_file="${tmake_file} t-freebsd-thread"
# Before 5.0, FreeBSD can't bind shared libraries to -lc
@@ -567,8 +567,8 @@
target_cpu_default=MASK_SUPPORT_ARCH
;;
esac
- case x${enable_threads} in
- x | xyes | xpthreads | xposix)
+ case ${enable_threads} in
+ "" | yes | posix)
thread_file='posix'
tmake_file="${tmake_file} alpha/t-osf-pthread"
;;
@@ -620,10 +620,10 @@
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
- case x${enable_threads} in
- x | xyes | xpthreads | xposix)
- thread_file='posix'
- ;;
+ case ${enable_threads} in
+ "" | yes | posix)
+ thread_file='posix'
+ ;;
esac
;;
arm*-*-uclinux*) # ARM ucLinux
@@ -1609,10 +1609,10 @@
powerpc-*-chorusos*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
- case x${enable_threads} in
- xyes | xpthreads | xposix)
- thread_file='posix'
- ;;
+ case ${enable_threads} in
+ yes | posix)
+ thread_file='posix'
+ ;;
esac
use_fixproto=yes
;;
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.735
diff -u -r1.735 configure.in
--- configure.in 7 Oct 2003 12:32:06 -0000 1.735
+++ configure.in 8 Oct 2003 16:14:48 -0000
@@ -1070,8 +1070,8 @@
# default
target_thread_file='single'
;;
- decosf1 | irix | mach | os2 | posix | pthreads | single | \
- solaris | win32 | dce | rtems| vxworks | aix | gnat)
+ aix | dce | gnat | irix | posix | rtems | \
+ single | solaris | vxworks | win32 )
target_thread_file=${enable_threads_flag}
;;
*)
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html