This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Failure to bootstrap trunk with --enable-threads=posix on cygwin since r180767
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Christian Joensson <christian dot joensson at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Kai Tietz <ktietz at redhat dot com>
- Date: Mon, 07 Nov 2011 19:39:28 +0100
- Subject: Re: Failure to bootstrap trunk with --enable-threads=posix on cygwin since r180767
- References: <CABxpwDkCOnjzoVmxjDpTe3xZqbcbQq_9k+x6B+KKswfGymSbbA@mail.gmail.com>
Christian Joensson <christian.joensson@gmail.com> writes:
> xgcc: error: unrecognized command line option ÃâË-pthreadÃââ
[...]
> Note the --enable-threads=posix.
>
> Backing off to revision 180766 does not yield this problem, while
> 180767 has the problem.
I erroneously moved the use of i386/t-mingw-pthread to the cygwin case.
The following patch should correct this. Could you give it a try?
Thanks.
Rainer
2011-11-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
libgcc:
* config.host (i[34567]86-*-cygwin*): Move i386/t-mingw-pthread ...
(i[34567]86-*-mingw*): ... here.
(x86_64-*-mingw*): ... here.
diff --git a/libgcc/config.host b/libgcc/config.host
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -593,11 +593,6 @@ i[34567]86-*-cygwin*)
tmake_dlldir_file="i386/t-dlldir-x"
fi
tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin i386/t-crtfm i386/t-chkstk t-dfprules"
- case ${target_thread_file} in
- posix)
- tmake_file="i386/t-mingw-pthread $tmake_file"
- ;;
- esac
;;
i[34567]86-*-mingw*)
extra_parts="crtbegin.o crtend.o crtfastmath.o"
@@ -605,6 +600,9 @@ i[34567]86-*-mingw*)
win32)
tmake_file="$tmake_file i386/t-gthr-win32"
;;
+ posix)
+ tmake_file="i386/t-mingw-pthread $tmake_file"
+ ;;
esac
# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
if test x$enable_sjlj_exceptions = xyes; then
@@ -626,6 +624,9 @@ x86_64-*-mingw*)
win32)
tmake_file="$tmake_file i386/t-gthr-win32"
;;
+ posix)
+ tmake_file="i386/t-mingw-pthread $tmake_file"
+ ;;
esac
# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
if test x$enable_sjlj_exceptions = xyes; then
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University