This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GOOGLE] Update the unittest and the doc for the record-compilation-info-in-elf flag
- From: Xinliang David Li <davidxl at google dot com>
- To: Dehao Chen <dehao at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 May 2013 13:22:04 -0700
- Subject: Re: [GOOGLE] Update the unittest and the doc for the record-compilation-info-in-elf flag
- References: <CAO2gOZU33h4uCBfo+E=BEDuMsVwVA=1kHtfxopF8WeqVKivdNg at mail dot gmail dot com>
ok.
David
On Tue, May 7, 2013 at 7:27 PM, Dehao Chen <dehao@google.com> wrote:
> 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
>
> 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
> based LIPO to do module grouping.
> @end table