------- Comment #2 from rob1weld at aol dot com  2008-08-04 01:28 -------
> Is there a reason why you are not using just --enable-threads=pthreads?

A few reasons. 

1. I test _all_ of gcc's configure options, submit bug reports and email test
results - "--enable-threads=solaris" is a valid choice.

2. There are more features on this Operating System. With Solaris it enables
Solaris threads _and_ pthreads simultaneously.

man threads(5)
http://opensolaris.org/os/community/arc/caselog/2008/039/materials/new_man/threads-5/

Comparing APIs for Solaris Threads and POSIX Threads
http://docs.sun.com/app/docs/doc/816-5137/sthreads-96692?l=en&a=view

Unique Solaris Threads Functions
http://docs.sun.com/app/docs/doc/816-5137/sthreads-49113?l=en&a=view

-----

Here is a quick fix to allow the build to continue. I still need to run "make
-i check" on this:


# gdiff -Naur /aux0/gcc-4.2.3/boehm-gc/configure_Origonal
/aux0/gcc-4.2.3/boehm-gc/configure  
--- /aux0/gcc-4.2.3/boehm-gc/configure_Origonal 2007-10-07 14:23:16.000000000
-0700
+++ /aux0/gcc-4.2.3/boehm-gc/configure  2008-08-03 18:00:52.633231123 -0700
@@ -5500,6 +5500,13 @@
        multi_os_directory=`$CC -print-multi-os-directory`
        THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
                    -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
+
+        if test "${enable_parallel_mark}" = yes; then
+cat >>confdefs.h <<\_ACEOF
+#define PARALLEL_MARK 1
+_ACEOF
+       fi
+                           
        ;;
      *-*-irix*)

@@ -5602,16 +5609,17 @@
 _ACEOF

     ;;
- decosf1 | irix | mach | os2 | solaris | dce | vxworks)
+# decosf1 | irix | mach | os2 | solaris | dce | vxworks)
+ decosf1 | irix | mach | os2 | dce | vxworks)
     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet
supported" >&5
 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
    { (exit 1); exit 1; }; }
     ;;
- *)
-    { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package"
>&5
-echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
-   { (exit 1); exit 1; }; }
-    ;;
+# *)
+#    { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package"
>&5
+#echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
+#   { (exit 1); exit 1; }; }
+#    ;;
 esac

-----

Note: I unnecessarily added the "parallel mark" feature also.


-- 

rob1weld at aol dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37017

Reply via email to