===================================================================
@@ -357,8 +357,7 @@ main (int argc, char **argv)
}
/* Sort the collected patterns. */
- qsort (patterns.address (), patterns.length (),
- sizeof (pattern), pattern_cmp);
+ patterns.qsort (pattern_cmp);
/* Now that we've handled the "extra" patterns, eliminate them from
the optabs array. That way they don't get in the way below. */
===================================================================
@@ -3144,8 +3144,7 @@ discover_iteration_bound_by_body_walk (s
fprintf (dump_file, " Trying to walk loop body to reduce the bound.\n");
/* Sort the bounds in decreasing order. */
- qsort (bounds.address (), bounds.length (),
- sizeof (widest_int), wide_int_cmp);
+ bounds.qsort (wide_int_cmp);
/* For every basic block record the lowest bound that is guaranteed to
terminate the loop. */
===================================================================
@@ -2508,8 +2530,7 @@ vect_analyze_data_ref_accesses (loop_vec
linear. Don't modify the original vector's order, it is needed for
determining what dependencies are reversed. */
vec<data_reference_p> datarefs_copy = datarefs.copy ();
- qsort (datarefs_copy.address (), datarefs_copy.length (),
- sizeof (data_reference_p), dr_group_sort_cmp);
+ datarefs_copy.qsort (dr_group_sort_cmp);
/* Build the interleaving chains. */
for (i = 0; i < datarefs_copy.length () - 1;)