From: Jan Hubicka Date: Tue, 14 May 2002 10:49:21 +0000 (+0200) Subject: final.c (end_final): Do not output profile_arcs constructor, when no functions are... X-Git-Tag: releases/gcc-3.3.0~5064 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d604303a6430734aed8d6f4d377475668693bd3;p=thirdparty%2Fgcc.git final.c (end_final): Do not output profile_arcs constructor, when no functions are instrumented. * final.c (end_final): Do not output profile_arcs constructor, when no functions are instrumented. From-SVN: r53455 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bbc9de9006b2..c98fac170a8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue May 14 12:48:22 CEST 2002 Jan Hubicka + + * final.c (end_final): Do not output profile_arcs constructor, when + no functions are instrumented. + Tue May 14 12:38:30 CEST 2002 Jan Hubicka * i386.md (testsi to testqi_zext_1 splitter): Fix typo. diff --git a/gcc/final.c b/gcc/final.c index 13e2aca11a1d..3e1b2232c395 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -252,7 +252,7 @@ void end_final (filename) const char *filename; { - if (profile_arc_flag) + if (profile_arc_flag && profile_info.count_instrumented_edges) { char name[20]; tree string_type, string_cst;