diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06faf82e0552..ac055ef27a53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-19 Martin Liska + + * ipa-icf.c (sort_congruence_class_groups_by_decl_uid): + Use proper casting. + 2019-09-19 Richard Henderson * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 59b7f8b1b9d7..009aeb487dd1 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3373,9 +3373,9 @@ static int sort_congruence_class_groups_by_decl_uid (const void *a, const void *b) { const std::pair *g1 - = *(const std::pair *const *) a; + = (const std::pair *) a; const std::pair *g2 - = *(const std::pair *const *) b; + = (const std::pair *) b; return g1->second - g2->second; }