From 9f576d304d65c184572a6f8ce7541196e5da5c1c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 19 Sep 2019 17:16:15 +0200 Subject: [PATCH] Fix cast in sort_congruence_class_groups_by_decl_uid. 2019-09-19 Martin Liska * ipa-icf.c (sort_congruence_class_groups_by_decl_uid): Use proper casting. From-SVN: r275969 --- gcc/ChangeLog | 5 +++++ gcc/ipa-icf.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06faf82e055..ac055ef27a5 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 59b7f8b1b9d..009aeb487dd 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; } -- 2.30.2