From patchwork Thu Sep 13 04:59:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 183493 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 20ADE2C0079 for ; Thu, 13 Sep 2012 15:00:23 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348117224; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: MIME-Version:Received:Received:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=ShEQ5t42WiV0FgKLjYAryKuyLWU=; b=bQRuGCQAz4I4uCs1LU5eNCNdrY/nle3xQd3Drb/YN1yiz4Qn+Pzviz62PDKeVV +wcq6d9bI3BM0ah9pAVhWjERyFrOyggyiihh4A7q/9L5k1CLVK/MXsXwiMq+Hkx1 uNpnHsPp3S9BEMhm8hGrLBZkZ2Pudamyi6y8k6yewja6o= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-System-Of-Record:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=htjq8WsNRINZmlqSnDNmNBy4lq5r5AbWIUI8CkahOKMwpjNVTxxDysDVhMC7Ck p/D8Gx4ReICMuSXH5HcxFFabDT5RLELIQdKaBkKu9X9CiY/TEhD66DgSha5pLtLm bn3vlXbb1NZ6xi85y/qyK+XOmySh7Mzmly30grtYGr6bU=; Received: (qmail 4750 invoked by alias); 13 Sep 2012 05:00:15 -0000 Received: (qmail 4732 invoked by uid 22791); 13 Sep 2012 05:00:13 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, TW_BF X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Sep 2012 05:00:00 +0000 Received: by pbcwy7 with SMTP id wy7so3359015pbc.20 for ; Wed, 12 Sep 2012 22:00:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-system-of-record:x-gm-message-state; bh=eojAptkb6xdOugdAu75EhHP3GTyCJ3AwzNPya1P4D6o=; b=oN7BHs/rJwUJ3wQWz5vgxn5XzRn6JMAc+ied2sKgI5ITR3N71X17ngzHIjueP0XmEX n8Ecb3jQJQ2YnkW/c4x4vXKD4PDtj+s3puGJHMpuWSr4bzRDkEnRFgmf/M+yBMwIn63R eyJjd7OsJeqOIEF3woMg/AUb9S/9pG+qvYOlxo2lRuAGOi00pjOg86VZtDKqYWvr5ylW Gi+I8FvBSgATkVwrzY+4RoIG2MhC5edPo33HXtkmoIWb4JKA97cNIeANbGGV3liOAWgo HWjhowcDnu4zBN2bhmKtF301z0spWPrMLr7AcRz6+fL/3ZIxyzbITqzHEwcT/1jdBnbr IunQ== Received: by 10.68.221.72 with SMTP id qc8mr3013687pbc.63.1347512399922; Wed, 12 Sep 2012 21:59:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.221.72 with SMTP id qc8mr3013672pbc.63.1347512399748; Wed, 12 Sep 2012 21:59:59 -0700 (PDT) Received: by 10.68.129.170 with HTTP; Wed, 12 Sep 2012 21:59:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Sep 2012 21:59:59 -0700 Message-ID: Subject: Re: Backtrace library [1/3] From: Ian Lance Taylor To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org X-System-Of-Record: true X-Gm-Message-State: ALoCoQngRV53AlW9K7/9YZL2AUfAe7XVdpL2+f1KflJfP2asXzsJtAOUIvD5mtvRQS7t4mlj4bgR6/0EqI3Xf4g1qDfCvhWnOIWnOUnc6BzJNYBDJaHx/aw+JLNpXaXYvVFluJpKhxFGQ3B71C5i6EYwqCwKN80fSPWer5Ty1VosDurdDJax2FtpHbak4Gx50xFh7rycdSzu 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 On Wed, Sep 12, 2012 at 2:04 PM, Joseph S. Myers wrote: > On Wed, 12 Sep 2012, Ian Lance Taylor wrote: > >> On Wed, Sep 12, 2012 at 9:23 AM, Joseph S. Myers >> wrote: >> > On Tue, 11 Sep 2012, Ian Lance Taylor wrote: >> > >> >> The configury is fairly standard. Note that libbacktrace is built as >> >> both a host library (to link into the compilers) and as a target library >> >> (to link into libgo and possibly other libraries). >> > >> > Under what circumstances will the library be built for the target - only >> > if a relevant language such as Go is being built, or unconditionally? >> >> My intent is to only build it when something needs it, e.g., libgo. I >> don't know if I've expressed that intent correctly. > > I think that if a library is listed in target_libs in config-lang.in for > at least one language, and if all languages with it so listed are > disabled, then that library will be disabled - but if no languages list it > in config-lang.in, it will be enabled by default. Looks right. If libbacktrace is approved and committed, I will included this patch to gcc/go/config-lang.in. I tested that it indeed causes libbacktrace to be built only for the host, not for the target, when not building Go. Ian Index: gcc/go/config-lang.in =================================================================== --- gcc/go/config-lang.in (revision 191171) +++ gcc/go/config-lang.in (working copy) @@ -28,7 +28,7 @@ language="go" compilers="go1\$(exeext)" -target_libs="target-libgo target-libffi" +target_libs="target-libgo target-libffi target-libbacktrace" # The Go frontend is written in C++, so we need to build the C++ # compiler during stage 1.