summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-icf.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 549fdacaeb1..bebe44c5257 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2015-05-18 Martin Liska <mliska@suse.cz>
+ * dbgcnt.def: Add new counter.
+ * ipa-icf.c (sem_item_optimizer::merge_classes): Use the
+ counter.
+
+2015-05-18 Martin Liska <mliska@suse.cz>
+
* dbgcnt.def: Sort counters.
* opts.c (common_handle_option): Do not compile if
-fdbg-cnt-list is enabled.
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index 3c4ac05681b..e7a317ab79d 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -123,6 +123,7 @@ along with GCC; see the file COPYING3. If not see
#include "ipa-icf-gimple.h"
#include "ipa-icf.h"
#include "stor-layout.h"
+#include "dbgcnt.h"
using namespace ipa_icf_gimple;
@@ -3453,7 +3454,8 @@ sem_item_optimizer::merge_classes (unsigned int prev_class_count)
alias->dump_to_file (dump_file);
}
- merged_p |= source->merge (alias);
+ if (dbg_cnt (merged_ipa_icf))
+ merged_p |= source->merge (alias);
}
}