From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101368 invoked by alias); 1 Sep 2017 18:13:22 -0000 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 Received: (qmail 101347 invoked by uid 89); 1 Sep 2017 18:13:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Sep 2017 18:13:21 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D114C7EA9B for ; Fri, 1 Sep 2017 18:13:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D114C7EA9B Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law@redhat.com Received: from localhost.localdomain (ovpn-112-8.rdu2.redhat.com [10.10.112.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0EC2C78349; Fri, 1 Sep 2017 18:13:18 +0000 (UTC) Subject: Re: [PATCH 06/22] Makefile.in: hack in -lpthread To: David Malcolm , gcc-patches@gcc.gnu.org References: <1501884293-9047-1-git-send-email-dmalcolm@redhat.com> <1501884293-9047-7-git-send-email-dmalcolm@redhat.com> From: Jeff Law Message-ID: <9e9f22e0-a9aa-1517-379e-e6b1c7d0a0b3@redhat.com> Date: Fri, 01 Sep 2017 18:13:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1501884293-9047-7-git-send-email-dmalcolm@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00084.txt.bz2 On 08/04/2017 04:04 PM, David Malcolm wrote: > The checker.cc patch later in the kit can optionally make use of pthread > if available. > > Doing it properly would involve some configure checks; this patch simply > hacks in -lpthread into LIB unconditionally for now. > > gcc/ChangeLog: > * Makefile.in (LIB): Hack in -lpthread. Obviously this would need to be improved before it could move forward. What's the advantage of firing off a thread vs the usual fork/exec model? fork/exec is something we know how to deal with across all the hosts GCC supports. jeff