From patchwork Mon Nov 7 18:39:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 124164 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 85C59B6F18 for ; Tue, 8 Nov 2011 05:39:52 +1100 (EST) Received: (qmail 26824 invoked by alias); 7 Nov 2011 18:39:50 -0000 Received: (qmail 26811 invoked by uid 22791); 7 Nov 2011 18:39:48 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, TW_HK, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 18:39:32 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 4D216AB0; Mon, 7 Nov 2011 19:39:31 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cVAmlbFT2eb8; Mon, 7 Nov 2011 19:39:29 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 4E834AAF; Mon, 7 Nov 2011 19:39:29 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id pA7IdSjj006750; Mon, 7 Nov 2011 19:39:28 +0100 (MET) From: Rainer Orth To: Christian Joensson Cc: gcc-patches@gcc.gnu.org, Kai Tietz Subject: Re: Failure to bootstrap trunk with --enable-threads=posix on cygwin since r180767 References: Date: Mon, 07 Nov 2011 19:39:28 +0100 In-Reply-To: (Christian Joensson's message of "Fri, 4 Nov 2011 22:50:53 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Christian Joensson 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 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