From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99565 invoked by alias); 24 Jul 2015 18:44:51 -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 99550 invoked by uid 89); 24 Jul 2015 18:44:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f177.google.com Received: from mail-ob0-f177.google.com (HELO mail-ob0-f177.google.com) (209.85.214.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 24 Jul 2015 18:44:49 +0000 Received: by obdeg2 with SMTP id eg2so21480399obd.0 for ; Fri, 24 Jul 2015 11:44:47 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.141.135 with SMTP id ro7mr16346505oeb.13.1437763487442; Fri, 24 Jul 2015 11:44:47 -0700 (PDT) Received: by 10.76.160.68 with HTTP; Fri, 24 Jul 2015 11:44:47 -0700 (PDT) In-Reply-To: References: <20150529193552.GA52215@kam.mff.cuni.cz> <556C16B1.5080606@arm.com> <556F5F04.80603@redhat.com> Date: Fri, 24 Jul 2015 19:02:00 -0000 Message-ID: Subject: Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt= From: "H.J. Lu" To: Sriraman Tallam Cc: Richard Henderson , Ramana Radhakrishnan , Jan Hubicka , Pedro Alves , Michael Matz , David Li , GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg02103.txt.bz2 On Thu, Jun 4, 2015 at 9:54 AM, Sriraman Tallam wrote: >> Patch attached with those changes. > > Is this patch alright to commit? > > > * c-family/c-common.c (noplt): New attribute. > (handle_noplt_attribute): New handler. > * calls.c (prepare_call_address): Check for noplt attribute. > * config/i386/i386.c (ix86_function_ok_for_sibcall): Check > for noplt attribute. > (ix86_expand_call): Ditto. > (ix86_nopic_noplt_attribute_p): New function. > (ix86_output_call_insn): Output indirect call for non-pic no plt calls. > * doc/extend.texi (noplt): Document new attribute. > * doc/invoke.texi: Document new attribute. > * testsuite/gcc.target/i386/noplt-1.c: New test. > * testsuite/gcc.target/i386/noplt-2.c: New test. > * testsuite/gcc.target/i386/noplt-3.c: New test. > * testsuite/gcc.target/i386/noplt-4.c: New test. > This may have caused: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67001 -- H.J.