Patchwork [build,doc] Cleanup --enable-threads support

login
register
mail settings
Submitter Rainer Orth
Date April 11, 2011, 10:33 a.m.
Message ID <yddsjtp13hq.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/90584/
State New
Headers show

Comments

Rainer Orth - April 11, 2011, 10:33 a.m.
While developing the patch to remove --enable-threads=solaris support, I
noticed a couple of other inconsistencies in this area.

* Use of non-existant (at least in-tree) thread models.

* Missing documenation (if you can call naming them documentation) for
  others.

This patch fixes both, bootstrapped without regressions on
i386-pc-solaris2.11.

Ok for mainline?

	Rainer


2011-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	gcc:
	* doc/install.texi (Configuration, --enable-threads): Remove mach.
	Add lynx, mipssde.
	Sort table.

	boehm-gc:
	* configure.ac (THREADS): Remove decosf1, irix, mach, os2.
	* configure: Regenerate

	libjava:
	* configure.ac (THREADS): Remove decosf1, irix, mach, os2.
	* configure: Regenerate

Patch

diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac
--- a/boehm-gc/configure.ac
+++ b/boehm-gc/configure.ac
@@ -235,7 +235,7 @@  case "$THREADS" in
     AC_DEFINE(GC_AIX_THREADS,1)
     AC_DEFINE(_REENTRANT,1)
     ;;
- decosf1 | irix | mach | os2 | dce | vxworks)
+ dce | vxworks)
     AC_MSG_ERROR(thread package $THREADS not yet supported)
     ;;
  *)
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1112,10 +1112,12 @@  to @samp{single}.  When used in conjunct
 causes GCC to use the same thread primitives as Ada uses.  This option
 is necessary when using both Ada and the back end exception handling,
 which is the default for most Ada targets.
-@item mach
-Generic MACH thread support, known to work on NeXTSTEP@.  (Please note
-that the file needed to support this configuration, @file{gthr-mach.h}, is
-missing and thus this setting will cause a known bootstrap failure.)
+@item lynx
+LynxOS thread support.
+@item mipssde
+MIPS SDE thread support.
+@item nks
+Novell Kernel Services thread support.
 @item no
 This is an alias for @samp{single}.
 @item posix
@@ -1126,12 +1128,12 @@  Generic POSIX/Unix95 thread support.
 RTEMS thread support.
 @item single
 Disable thread support, should work for all platforms.
+@item tpf
+TPF thread support.
 @item vxworks
 VxWorks thread support.
 @item win32
 Microsoft Win32 API thread support.
-@item nks
-Novell Kernel Services thread support.
 @end table
 
 @item --enable-tls
diff --git a/libjava/configure.ac b/libjava/configure.ac
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1033,7 +1033,7 @@  case "$THREADS" in
     ;;
  win32)
     ;;
- decosf1 | irix | mach | os2 | dce | vxworks)
+ dce | vxworks)
     AC_MSG_ERROR(thread package $THREADS not yet supported)
     ;;
  *)