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