Commit b6de3028 by Alexander Monakov Committed by Alexander Monakov

ipa-devirt: make qsort helpers static

	* ipa-devirt.c (type_warning_cmp): Make static.
	(decl_warning_cmp): Ditto.

From-SVN: r273942
parent 98ae96d2
2019-07-31 Alexander Monakov <amonakov@ispras.ru>
* ipa-devirt.c (type_warning_cmp): Make static.
(decl_warning_cmp): Ditto.
2019-07-31 Peter Bergner <bergner@linux.ibm.com> 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
PR target/91050 PR target/91050
......
...@@ -3526,7 +3526,7 @@ likely_target_p (struct cgraph_node *n) ...@@ -3526,7 +3526,7 @@ likely_target_p (struct cgraph_node *n)
/* Compare type warning records P1 and P2 and choose one with larger count; /* Compare type warning records P1 and P2 and choose one with larger count;
helper for qsort. */ helper for qsort. */
int static int
type_warning_cmp (const void *p1, const void *p2) type_warning_cmp (const void *p1, const void *p2)
{ {
const odr_type_warn_count *t1 = (const odr_type_warn_count *)p1; 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) ...@@ -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; /* Compare decl warning records P1 and P2 and choose one with larger count;
helper for qsort. */ helper for qsort. */
int static int
decl_warning_cmp (const void *p1, const void *p2) decl_warning_cmp (const void *p1, const void *p2)
{ {
const decl_warn_count *t1 = *(const decl_warn_count * const *)p1; const decl_warn_count *t1 = *(const decl_warn_count * const *)p1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment