From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 800 invoked by alias); 17 Dec 2012 19:14:16 -0000 Received: (qmail 704 invoked by uid 22791); 17 Dec 2012 19:14:15 -0000 X-SWARE-Spam-Status: No, hits=-5.5 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,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-oa0-f47.google.com (HELO mail-oa0-f47.google.com) (209.85.219.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Dec 2012 19:14:07 +0000 Received: by mail-oa0-f47.google.com with SMTP id h1so6255558oag.20 for ; Mon, 17 Dec 2012 11:14:07 -0800 (PST) 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-gm-message-state; bh=zq3n2SfzAhdwSvVxOqd4W4gtxVEd9j9TB7YferPtDkw=; b=HivcRxnmfSXDBv9q4oJBo06jAEhDp/B6QMy2248+ZPVaG6iH4leGXdskvaoB/cyRxd /hu0j+qY/NGcgD//0LKPn2NFoAMdXzUPtapYuBPkOpHw/u7S2os2bSPWDT4KLFnsgZsD UQUsfdoIkr14pSn0q07+nohermwOQ5Nimw5uwMpjktLXIoskunDdlZttcm0oFIuL0wIs vBZQiEcTLtVYmS0tpAyoLRDO6NqTGWl3NT5i3bzIjtgRMhMqsXO4Q3Yo8SYsZD48iLBk qUE5FHSgnwWmB3S65Z++84K34Xaj038zFsoN9V2+rzCrD/GB2juSIwTQ4MXXmnKl5NrR XaoQ== MIME-Version: 1.0 Received: by 10.60.171.201 with SMTP id aw9mr12356134oec.126.1355771646911; Mon, 17 Dec 2012 11:14:06 -0800 (PST) Received: by 10.182.75.97 with HTTP; Mon, 17 Dec 2012 11:14:06 -0800 (PST) In-Reply-To: References: Date: Mon, 17 Dec 2012 19:14:00 -0000 Message-ID: Subject: Re: [google][4.7] Allow function reordering linker plugin to separate hot and cold code into different ELF segments From: Sriraman Tallam To: Rong Xu Cc: GCC Patches , David Li Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlu/5GZge+0W7Ey9hnVv0ukD6i/xAgVQ0s7w4wHat+3Pcx+mnz2Fydj4onrrO3SE/ukyUnkR4TqbxNmE1upWIU/Q4W1o4p57o/5FikxdZoYYFoWXkYnfzFXT6Hl6uWpfpP1dTKFKwH+WwnHIHjlXj16giFp2iWRyxT7MLobV5uXGpLPKpwdBKd8s3E+g/t3G/VASzub X-IsSubscribed: yes 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 X-SW-Source: 2012-12/txt/msg01079.txt.bz2 I have committed this patch. Thanks, -Sri. On Fri, Dec 14, 2012 at 4:16 PM, Rong Xu wrote: > Looks good to me for google/gcc-4_7 branch. > > Thanks, > > -Rong > > > On Fri, Dec 14, 2012 at 3:42 PM, Sriraman Tallam > wrote: >> >> Hi Rong, >> >> Please review this code. This code allows the function reordering >> plugin to separate hot and cold code into different ELF segments. >> This would allow optimizations like mapping the hot code alone to huge >> pages. >> >> With this patch, by default, the plugin maps .text.unlikely >> sections into a separate ELF segment. This can be turned off with >> plugin option "--segment=none". >> >> The include/plugin-api.h changes are a backport from trunk. >> >> Thanks, >> -Sri. > >