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 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



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