aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-05-14 12:49:21 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-05-14 10:49:21 +0000
commit4d604303a6430734aed8d6f4d377475668693bd3 (patch)
treeeec8bd8b5b87b76eec54f2515fb0898aa31e3a98 /gcc
parentb18b06ed94a72e66112c0089115f4628eb697721 (diff)
downloadgcc-4d604303a6430734aed8d6f4d377475668693bd3.zip
gcc-4d604303a6430734aed8d6f4d377475668693bd3.tar.gz
gcc-4d604303a6430734aed8d6f4d377475668693bd3.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/final.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bbc9de9..c98fac1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/final.c b/gcc/final.c
index 13e2aca..3e1b223 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;