re PR target/17443 (--enable-threads=single is ignored)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sun, 3 Oct 2004 08:00:39 +0000 (10:00 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 3 Oct 2004 08:00:39 +0000 (08:00 +0000)
PR target/17443
* config.gcc (i?86-*-solaris2*): Restore correct logic
for --enable-threads option.
(sparc64-*-solaris2*): Likewise.
(sparc-*-solaris2*): Likewise.

From-SVN: r88442

gcc/ChangeLog
gcc/config.gcc

index 9c081a9..7b95322 100644 (file)
@@ -1,3 +1,11 @@
+2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR target/17443
+       * config.gcc (i?86-*-solaris2*): Restore correct logic
+       for --enable-threads option.
+       (sparc64-*-solaris2*): Likewise.
+       (sparc-*-solaris2*): Likewise.
+
 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
 
        * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
index 0ec389e..9b7800e 100644 (file)
@@ -1030,9 +1030,8 @@ i[34567]86-*-solaris2*)
        esac
        extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-         no:*:*) ;;
-         *:yes:* ) thread_file=posix ;;
-         yes:*:* | *:*:yes ) thread_file=solaris ;;
+         "":yes:* | yes:yes:* ) thread_file=posix ;;
+         "":*:yes | yes:*:yes ) thread_file=solaris ;;
        esac
        ;;
 i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
@@ -1883,9 +1882,8 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
        tm_p_file="${tm_p_file} sol2-protos.h"
        extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-         no:*:*) ;;
-         *:yes:* ) thread_file=posix ;;
-         yes:*:* | *:*:yes ) thread_file=solaris ;;
+         "":yes:* | yes:yes:* ) thread_file=posix ;;
+         "":*:yes | yes:*:yes ) thread_file=solaris ;;
        esac
        need_64bit_hwint=yes
        ;;
@@ -1927,9 +1925,8 @@ sparc-*-solaris2*)
        tm_p_file="${tm_p_file} sol2-protos.h"
        extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
        case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-         no:*:*) ;;
-         *:yes:* ) thread_file=posix ;;
-         yes:*:* | *:*:yes ) thread_file=solaris ;;
+         "":yes:* | yes:yes:* ) thread_file=posix ;;
+         "":*:yes | yes:*:yes ) thread_file=solaris ;;
        esac
        ;;
 sparc-*-sysv4*)