From patchwork Sat Sep 18 17:26:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andriy Gapon X-Patchwork-Id: 65133 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 F2808B70CB for ; Sun, 19 Sep 2010 03:26:57 +1000 (EST) Received: (qmail 28938 invoked by alias); 18 Sep 2010 17:26:56 -0000 Received: (qmail 28929 invoked by uid 22791); 18 Sep 2010 17:26:55 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_00, SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from citadel.icyb.net.ua (HELO citadel.icyb.net.ua) (212.40.38.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Sep 2010 17:26:51 +0000 Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA09660; Sat, 18 Sep 2010 20:26:48 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Ox1BY-000DMI-8C; Sat, 18 Sep 2010 20:26:48 +0300 Message-ID: <4C94F658.6050000@freebsd.org> Date: Sat, 18 Sep 2010 20:26:48 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100912 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Gerald Pfeifer Subject: Re: update -pthread specs for FreeBSD References: <4C94F5EA.9070106@freebsd.org> In-Reply-To: <4C94F5EA.9070106@freebsd.org> 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 on 18/09/2010 20:24 Andriy Gapon said the following: > > Please consider the attached patch that fixes what -pthread should expand too > on modern version of FreeBSD. The patch is based on the changes that are made > locally to a copy of GCC (4.2) in FreeBSD source tree: > http://svn.freebsd.org/viewvc/base/head/contrib/gcc/config/freebsd-spec.h?revision=200038&view=markup Apologies, it looks like I messed up and attached the wrong file. Here is the correct patch. - -- Andriy Gapon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMlPZXAAoJEHSlLSemUf4vUAgIALN509mWpbkRy3/pZjFGMz7m zVKsbh/bUypq2LXKMs9de0gCECSp6wxYsF3BgWaaRQqa7OMZTS+yJM7XZockeNKB j7DrFF2Y17rMznNEqT7JTpHU4LZaRy991s23lWdbXHf5dVgZ98nlbnNYuxyUJCp0 QdTDp8IWpqEPqk4jtFDEAl1iXLWuXzKYK3SYypxalJnEtyJrzPvauvYlrHwLbyAK uTrSD4wScVeunHtcmM6pOTZJ1DPWFbGFrXPEVbcB6wldsWpQnpWRMpLE4fbdiHG5 Dsg+fhFOZrho8opsq/NLK/eWdCzTWrpUFwl02LIMsdeLgNFFF6vvrUn4Ou0P2Uc= =6Zob -----END PGP SIGNATURE----- --- gcc/config/freebsd-spec.h.orig 2010-09-13 14:35:06.151574339 +0300 +++ gcc/config/freebsd-spec.h 2010-09-13 14:35:08.171465130 +0300 @@ -139,6 +139,9 @@ %{!shared: \ %{!pg: %{pthread:-lpthread} -lc} \ %{pg: %{pthread:-lpthread_p} -lc_p} \ + %{shared: \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ }" #endif #endif