From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59087 invoked by alias); 4 May 2015 17:40:10 -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 59074 invoked by uid 89); 4 May 2015 17:40:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 04 May 2015 17:40:09 +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 t44He7cw004684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 May 2015 13:40:07 -0400 Received: from tucnak.zalov.cz (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t44He52K014302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 May 2015 13:40:06 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t44Hdw5U030841; Mon, 4 May 2015 19:40:04 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t44HdtqS030840; Mon, 4 May 2015 19:39:55 +0200 Date: Mon, 04 May 2015 17:40:00 -0000 From: Jakub Jelinek To: Jeff Law Cc: Alexander Monakov , gcc-patches@gcc.gnu.org, Rich Felker Subject: Re: [PATCH] Expand PIC calls without PLT with -fno-plt Message-ID: <20150504173955.GE1751@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <1430757479-14241-1-git-send-email-amonakov@ispras.ru> <1430757479-14241-6-git-send-email-amonakov@ispras.ru> <5547AD8D.9080806@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5547AD8D.9080806@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00242.txt.bz2 On Mon, May 04, 2015 at 11:34:05AM -0600, Jeff Law wrote: > On 05/04/2015 10:37 AM, Alexander Monakov wrote: > >This patch introduces option -fno-plt that allows to expand calls that would > >go via PLT to load the address of the function immediately at call site (which > >introduces a GOT load). Cover letter explains the motivation for this patch. > > > >New option documentation for invoke.texi is missing from the patch; if this is > >accepted I'll be happy to send a v2 with documentation added. > > > > * calls.c (prepare_call_address): Transform PLT call to GOT lookup and > > indirect call by forcing address into a pseudo with -fno-plt. > > * common.opt (flag_plt): New option. > OK once you cobble together the invoke.texi changes. Isn't what Michael/Alan suggested better? I mean as/ld/compiler changes to inline the plt slot's first part, then lazy binding will work fine. Jakub