This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix PR target/17443


The --enable-threads logic has been broken on Solaris by

2004-04-06  Nathanael Nerode  <neroden@gcc.gnu.org>

	* config.gcc: Stop changing enable_threads midstream.
	Replace uses of enable_threads_flag with enable_threads.
	* configure.ac: Replace uses of enable_threads_flag with
	enable_threads.  Improve autoconf quotation in one place.
	* configure: Regenerate.

We always end up with POSIX threads, except if "no" is specified.

Fixed thusly, applied to mainline as obvious.


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.


-- 
Eric Botcazou
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.492
diff -u -r1.492 config.gcc
--- config.gcc	24 Sep 2004 06:17:00 -0000	1.492
+++ config.gcc	2 Oct 2004 10:15:17 -0000
@@ -1030,9 +1030,8 @@
 	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 @@
 	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 @@
 	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*)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]