From: Alexander Monakov Date: Wed, 31 Jul 2019 17:55:04 +0000 (+0300) Subject: ipa-devirt: make qsort helpers static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6de3028951bbc9982f7d5810981d5e911853cc0;p=gcc.git ipa-devirt: make qsort helpers static * ipa-devirt.c (type_warning_cmp): Make static. (decl_warning_cmp): Ditto. From-SVN: r273942 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d984df15f9..7d8339c9acf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-31 Alexander Monakov + + * ipa-devirt.c (type_warning_cmp): Make static. + (decl_warning_cmp): Ditto. + 2019-07-31 Peter Bergner PR target/91050 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 418026fcb82..0eeb2534290 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -3526,7 +3526,7 @@ likely_target_p (struct cgraph_node *n) /* Compare type warning records P1 and P2 and choose one with larger count; helper for qsort. */ -int +static int type_warning_cmp (const void *p1, const void *p2) { const odr_type_warn_count *t1 = (const odr_type_warn_count *)p1; @@ -3542,7 +3542,7 @@ type_warning_cmp (const void *p1, const void *p2) /* Compare decl warning records P1 and P2 and choose one with larger count; helper for qsort. */ -int +static int decl_warning_cmp (const void *p1, const void *p2) { const decl_warn_count *t1 = *(const decl_warn_count * const *)p1;