From patchwork Fri Oct 11 20:24:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 282930 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21F102C032E for ; Sat, 12 Oct 2013 07:25:15 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; q=dns; s=default; b=JJHEB1g4QOSlGNVS Chw2HuZdyq+GN/LZ2psyGWLsOD5JEEBfjVSyE9fakyLHwgkHScgD0nvg9kkfRApY dlBbfcpfM/JvjiEn9K91mHHeoSoICCwjTxzxfng6WjgEuMnVO524zsFBrX6xGMEu E3AQoc1q1Nlo8F8ZWuL+HoJQhQo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; s=default; bh=SJdF2dAKDskoOpFULcC5lE e3GIg=; b=Jto26YG9D3Md1xkkmRNd5KtlzM8+O3mqG0Ri/SEHYtU2MT7TDYHZCu acvT+dh5/flFnt8h2lxs0y447WBG82yptppmScN7Ez0O81/OgRxBGygL4XT1rUMp yMhC8wV9MBboBxxjIRaYw2v5Dled1h46ccAgIFJvkuxHvFDizPyv8= Received: (qmail 6585 invoked by alias); 11 Oct 2013 20:25:08 -0000 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 Received: (qmail 6573 invoked by uid 89); 11 Oct 2013 20:25:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 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, 11 Oct 2013 20:25:07 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9BKP4qk016926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Oct 2013 16:25:04 -0400 Received: from [10.18.25.13] ([10.18.25.13]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9BKP3nm015025; Fri, 11 Oct 2013 16:25:03 -0400 Message-ID: <1381523083.30976.76.camel@surprise> Subject: Re: [PATCH] Add --enable-host-shared configuration option From: David Malcolm To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org Date: Fri, 11 Oct 2013 16:24:43 -0400 In-Reply-To: References: <1381364733-32475-1-git-send-email-dmalcolm@redhat.com> Mime-Version: 1.0 X-IsSubscribed: yes On Thu, 2013-10-10 at 01:05 +0000, Joseph S. Myers wrote: > On Wed, 9 Oct 2013, David Malcolm wrote: > > > This patch adds an "--enable-host-shared" option throughout the various > > configure/Make machinery for host code, adding "-fPIC" where appropriate > > when enabled. > > Please document this in install.texi (even if it isn't particularly useful > at the stage where it just means PIC rather than actual shared libraries). How does the following look: gcc/ * doc/install.texi (--enable-shared): Add note contrasting it with... (--enable-host-shared): ...new option. commit 23bf2a4389817352bca1bdcbe3d7971b4f607e4b Author: David Malcolm Date: Fri Oct 11 16:22:45 2013 -0400 Document --enable-host-shared gcc/ * doc/install.texi (--enable-shared): Add note contrasting it with... (--enable-host-shared): New option. diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 7be8e5a..5cb4d3c 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -925,6 +925,19 @@ Use @option{--disable-shared} to build only static libraries. Note that @option{--disable-shared} does not accept a list of package names as argument, only @option{--enable-shared} does. +Contrast with @option{--enable-host-shared}, which affects @emph{host} +code. + +@item --enable-host-shared +Specify that the @emph{host} code should be built into position-independent +machine code (with -fPIC), allowing it to be used within shared libraries, +but yielding a slightly slower compiler. + +Currently this option is only of use to people developing GCC itself. + +Contrast with @option{--enable-shared}, which affects @emph{target} +libraries. + @item @anchor{with-gnu-as}--with-gnu-as Specify that the compiler should assume that the assembler it finds is the GNU assembler. However, this does not modify