]> gcc.gnu.org Git - gcc.git/commitdiff
final.c (end_final): Do not output profile_arcs constructor, when no functions are...
authorJan Hubicka <jh@suse.cz>
Tue, 14 May 2002 10:49:21 +0000 (12:49 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 14 May 2002 10:49:21 +0000 (10:49 +0000)
* final.c (end_final): Do not output profile_arcs constructor, when
no functions are instrumented.

From-SVN: r53455

gcc/ChangeLog
gcc/final.c

index bbc9de9006b2a850875d630479ffa864ad700694..c98fac170a8d7160882ffa0453ffec6e2f282767 100644 (file)
@@ -1,3 +1,8 @@
+Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
+
+       * 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  <jh@suse.cz>
 
        * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
index 13e2aca11a1decdc8d21c588ebf9fb2b1a0b9a2b..3e1b2232c39550644e26db86e2e14fc75c4188d2 100644 (file)
@@ -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;
This page took 0.084606 seconds and 5 git commands to generate.