From patchwork Wed May 8 02:27:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dehao Chen X-Patchwork-Id: 242482 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 CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D424E2C0116 for ; Wed, 8 May 2013 12:27:14 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=laVOXMpDSs5p3vD8z8vxRP4OmdTY67yO6tUi/ZXYCzv pTkUKqAR+BEFBaw5tWY+mnwQnnd/DxHfAYvjy0f1ZRLF9nnuhq25VhtEv99qfMp0 1+aG/mpxUwknAp0R0t9cIJFXhTYGSiGTCBzf9RYmpvjPAyZYaqZw1IWYrxiWA3uw = 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 :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=wc6NJAPOn6pwu6lGkLipfT4QZ1Q=; b=oq/1+aUIg5spEQSPG 1Do0WAzVKg2Ij2oCvKPtmT4qs3hrQARD/VYtdl370S9cmfH/JtFbVS8/b1bPQvyi 6IbNCLv/iJ+nY13whE/x4fJ1yrAqaf484Zz1Z5JdP8k5LzxcYcjH5jT8HfZi+HoP e+lmdte/c1i2e7UZL8xuIpwTy8= Received: (qmail 2407 invoked by alias); 8 May 2013 02:27:07 -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 2398 invoked by uid 89); 8 May 2013 02:27:07 -0000 X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ea0-f175.google.com (HELO mail-ea0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 08 May 2013 02:27:06 +0000 Received: by mail-ea0-f175.google.com with SMTP id q10so639329eaj.20 for ; Tue, 07 May 2013 19:27:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=s26C5+ED28gMb5rz/yRTgnDUAjEvqwbJyK0+Vy4rZyo=; b=ISd9mb4S7S3mtavxkANpDnVV6VOxfLuC8Kdbl8UGVl7kC1rdZ3NlhuGNiH3kKc3dn4 aVg2EXA1IwXv1eIm0d/Dn0DpT3olkxq0J4pqV762eQFCKixnt3tseEjZbAIyhP4FOLyc d+B2EWnNDsdr8zlHG0XQO6MXmEx/EW3hz4H35wdK/MzKtyhLO8VDnqGAhU65KIxEfUwN IJejY0rzTxI2XU4sl+mAyeWv3c7vR90s3/vBQrx4YjEPP+/FtUJy2c+hgdjseenbWXP5 M++h6xY+0Ud4TUfJeY3IutUWk+yvcdIo0nJhAh6kSBZY7TA7YWP8tMbvmGto271lv0WH dnSg== MIME-Version: 1.0 X-Received: by 10.14.111.5 with SMTP id v5mr11655938eeg.27.1367980023987; Tue, 07 May 2013 19:27:03 -0700 (PDT) Received: by 10.14.223.7 with HTTP; Tue, 7 May 2013 19:27:03 -0700 (PDT) Date: Tue, 7 May 2013 19:27:03 -0700 Message-ID: Subject: [GOOGLE] Update the unittest and the doc for the record-compilation-info-in-elf flag From: Dehao Chen To: GCC Patches Cc: David Li X-Gm-Message-State: ALoCoQmKWaYffpboIX6ueDpwi8UUeh0KDXuZON+bwJ26RK6aXFYLZHjHaBM8ViidbbG6ngDllahQWVnOgRlCeGi0gwl2i/voLMlE1jMAiOL829xubzUCSvJXX7KYfTyLEVa0qKZg5uSd/a79dbnYHRgncp0i/NlBoFuxn5luIUCi2eojgxXh2UgbqlvB/koy9WGb0zCr0x3G This patch updated the unittest and doc for the new -frecord-compilation-info-in-elf flag. Bootstrapped and passed regression test. OK for google-4_7 branch? Thanks, Dehao based LIPO to do module grouping. @end table Index: gcc/testsuite/gcc.dg/record-gcc-switches-in-elf-1.c =================================================================== --- gcc/testsuite/gcc.dg/record-gcc-switches-in-elf-1.c (revision 198703) +++ gcc/testsuite/gcc.dg/record-gcc-switches-in-elf-1.c (working copy) @@ -1,16 +0,0 @@ -/* { dg-do compile} */ -/* { dg-options "-frecord-gcc-switches-in-elf -Dtest -dA" } */ - -void foobar(int); - -void -foo (void) -{ - int i; - for (i = 0; i < 100; i++) - { - foobar(i); - } -} - -/* { dg-final { scan-assembler-times "Dtest" 1 } } */ Index: gcc/testsuite/gcc.dg/record-compilation-info-in-elf-1.c =================================================================== --- gcc/testsuite/gcc.dg/record-compilation-info-in-elf-1.c (revision 0) +++ gcc/testsuite/gcc.dg/record-compilation-info-in-elf-1.c (revision 0) @@ -0,0 +1,16 @@ +/* { dg-do compile} */ +/* { dg-options "-frecord-compilation-info-in-elf -Dtest -dA" } */ + +void foobar(int); + +void +foo (void) +{ + int i; + for (i = 0; i < 100; i++) + { + foobar(i); + } +} + +/* { dg-final { scan-assembler-times "Dtest" 1 } } */ Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 198703) +++ gcc/doc/invoke.texi (working copy) @@ -402,7 +402,7 @@ -fpmu-profile-generate=@var{pmuoption} @gol -fpmu-profile-use=@var{pmudata} @gol -freciprocal-math -free -fregmove -frename-registers -freorder-blocks @gol --frecord-gcc-switches-in-elf@gol +-frecord-compilation-info-in-elf@gol -freorder-blocks-and-partition -freorder-functions @gol -frerun-cse-after-loop -freschedule-modulo-scheduled-loops @gol -fripa -fripa-disallow-asm-modules -fripa-disallow-opt-mismatch @gol @@ -8475,8 +8475,8 @@ Enable printing of verbose information about dynamic inter-procedural optimizations. This is used in conjunction with the @option{-fripa}. -@item -frecord-gcc-switches-in-elf -@opindex frecord-gcc-switches-in-elf +@item -frecord-compilation-info-in-elf +@opindex frecord-compilation-info-in-elf Record the command line options in the .gnu.switches.text elf section for sample