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]

[patch] make 'pthreads' always an alias for 'posix'


This seems like a wise idea to me, as it would enable some simplification
of config.gcc, and would create greater consistency (currently pthreads works
for some targets and just fails on others).  It appears that the difference
originated before libobjc was moved into its own directory.

DJ, Alex, opinions?  Is there something I'm missing?

	* configure.in:  Always treat --enable-threads=pthreads equivalently
	to --enable-threads=posix.
	* configure: Regenerate.

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	7 Oct 2003 13:00:02 -0000
@@ -478,6 +478,11 @@
 [  --enable-threads        enable thread usage for target GCC
   --enable-threads=LIB    use LIB thread package for target GCC],,
 enable_threads='')
+
+# Translate thread package aliases to canonical thread package names.
+case ${enable_threads} in
+  pthreads) enable_threads=posix ;;
+esac
 # Save in case it gets overwritten in config.gcc
 enable_threads_flag=$enable_threads
 

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html


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