gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.

2009-04-22  Mark Heffernan  <meheff@google.com>

       * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.

       * gcc.dg/profile-generate-3.c: New test.

From-SVN: r146605
This commit is contained in:
Mark Heffernan 2009-04-22 17:44:53 +00:00 committed by Mark Heffernan
parent 1cae1c5fc0
commit a123d17589
4 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-04-22 Mark Heffernan <meheff@google.com>
* gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
2009-04-22 Kazu Hirata <kazu@codesourcery.com>
* config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand

View File

@ -743,7 +743,7 @@ proper position among the other output files. */
%{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
%{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
%{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}\
%{fprofile-arcs|fprofile-generate*|coverage:-lgcov}\
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}"
#endif

View File

@ -1,3 +1,7 @@
2009-04-22 Mark Heffernan <meheff@google.com>
* gcc.dg/profile-generate-3.c: New test.
2009-04-22 Jan Hubicka <jh@suse.cz>
* g++.dg/tree-ssa/ehcleanup-1.C: New testcase.

View File

@ -0,0 +1,9 @@
/* { dg-do link } */
/* { dg-options "-fprofile-generate=." } */
int
main ()
{
return 0;
}