From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23568 invoked by alias); 12 Mar 2013 01:42:11 -0000 Received: (qmail 23558 invoked by uid 22791); 12 Mar 2013 01:42:10 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_LG X-Spam-Check-By: sourceware.org Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Mar 2013 01:41:53 +0000 Received: by mail-wg0-f48.google.com with SMTP id 16so5638780wgi.27 for ; Mon, 11 Mar 2013 18:41:52 -0700 (PDT) X-Received: by 10.180.73.212 with SMTP id n20mr16361440wiv.11.1363052512325; Mon, 11 Mar 2013 18:41:52 -0700 (PDT) Received: from [192.168.2.99] (cpc3-cmbg8-0-0-cust629.5-4.cable.virginmedia.com. [82.6.102.118]) by mx.google.com with ESMTPS id ex15sm19097868wid.5.2013.03.11.18.41.51 (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 11 Mar 2013 18:41:51 -0700 (PDT) Message-ID: <513E8877.7070606@gmail.com> Date: Tue, 12 Mar 2013 01:42:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: GCC Patches CC: Jakub Jelinek Subject: [PATCH][4.8][4.7][4.6] Make -shared-libgcc the default on Cygwin. Content-Type: multipart/mixed; boundary="------------060801090707070401000508" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00423.txt.bz2 This is a multi-part message in MIME format. --------------060801090707070401000508 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 1013 Hello list, The attached patch makes -shared-libgcc the default for Cygwin. This is something that I should have done some time ago, as shared libgcc on Cygwin is more than mature. What's more, it is vital for reliable compilation of applications that throw exceptions or share TLS variables from DLLs into the main executable; at present these compile incorrectly without an explicit -shared-libgcc. For instance, the just-released MPFR-3.1.2 doesn't work without it. Given that it's a very simple tweak to the compiler specs on a single platform only, I would like to use my target maintainer's discretion to apply it even at this late stage, but I figure it's so close to RC1 that I should ask the RM's permission anyway. I'd also like to backport it to all the currently-open branches. gcc/ChangeLog 2013-03-12 Dave Korn * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the default setting. Is this OK by everyone? cheers, DaveK --------------060801090707070401000508 Content-Type: text/x-c; name="cygwin-shared-libgcc-default.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cygwin-shared-libgcc-default.diff" Content-length: 534 Index: gcc/config/i386/cygwin.h =================================================================== --- gcc/config/i386/cygwin.h (revision 196604) +++ gcc/config/i386/cygwin.h (working copy) @@ -48,11 +48,7 @@ along with GCC; see the file COPYING3. If not see %{static|static-libgcc:-lgcc -lgcc_eh} \ %{!static: \ %{!static-libgcc: \ - %{!shared: \ - %{!shared-libgcc:-lgcc -lgcc_eh} \ - %{shared-libgcc:-lgcc_s -lgcc} \ - } \ - %{shared:-lgcc_s -lgcc} \ + -lgcc_s -lgcc \ } \ } " #else --------------060801090707070401000508--