This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH mingw32 Enable thread support by default.
- From: "Aaron W. LaFramboise" <aaronraolete36 at aaronwl dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dannysmith at users dot sourceforge dot net
- Date: Mon, 31 May 2004 12:02:19 -0500
- Subject: PATCH mingw32 Enable thread support by default.
I've noticed that most other similar targets seem to be enabling thread
support by default. Threads are as important, if not more, on Windows
than on those targets, so this certainly makes as much sense for mingw32
as anyone else. In addition, everyone building GCC for mingw32 has
already been specifying --enable-threads anyway, so it appears this is
something everyone wants. In any case, having thread support enabled
seems like its more likely to be correct, in general, than not having it
enabled. Note that, on mingw32, -mthreads is still necessary to produce
thread-aware code.
2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
Index: gcc/gcc/config.gcc
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.457
diff -c -3 -p -r1.457 config.gcc
*** gcc/gcc/config.gcc 3 May 2004 21:27:42 -0000 1.457
--- gcc/gcc/config.gcc 28 May 2004 12:06:12 -0000
*************** i[34567]86-*-mingw32*)
*** 1048,1056 ****
xm_file=i386/xm-mingw32.h
tmake_file="i386/t-cygming i386/t-mingw32"
extra_objs=winnt.o
! if test x$enable_threads = xyes; then
! thread_file='win32'
! fi
case ${target} in
*mingw32crt*)
tm_file="${tm_file} i386/crtdll.h"
--- 1048,1056 ----
xm_file=i386/xm-mingw32.h
tmake_file="i386/t-cygming i386/t-mingw32"
extra_objs=winnt.o
! case ${enable_threads} in
! "" | yes | win32) thread_file='win32' ;;
! esac
case ${target} in
*mingw32crt*)
tm_file="${tm_file} i386/crtdll.h"
Aaron W. LaFramboise