aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-10-11 15:08:28 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-10-11 15:08:28 +0000
commit5095da95bda21b0f8e6f8ebeb79618af1f9dab23 (patch)
tree9d05eb59338986451cac8fc5dec9e34fe0c18b48 /gcc/gimplify.c
parent3748f5c9d3d8f7b7c2c0c8c79b3ad605b04acaf3 (diff)
downloadgcc-5095da95bda21b0f8e6f8ebeb79618af1f9dab23.zip
gcc-5095da95bda21b0f8e6f8ebeb79618af1f9dab23.tar.gz
gcc-5095da95bda21b0f8e6f8ebeb79618af1f9dab23.tar.bz2
vec.h (VEC_qsort): Define.
gcc/ * vec.h (VEC_qsort): Define. * dbxout.c (output_used_types): Use it. * df-scan.c (df_sort_and_compress_refs): Likewise. (df_sort_and_compress_mws): Likewise. * genautomata.c (uniq_sort_alt_states): Likewise. (evaluate_equiv_classes): Likewise. (output_trans_table): Likewise. (output_state): Likewise. * gimplify.c (compare_case_labels): Likewise. * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise. * ipa.c (build_cdtor_fns): Likewise. * lto.c (lto_wpa_write_files): Likewise. * sel-sched.c (fill_vec_av_set): Likewise. * tree-predcom.c (determine_roots_comp): Likewise. * tree-sra.c (sort_and_spliace_var_accesses): Likewise. (splice_param_accesses): Likewise. * tree-ssa-live.c (dump_enumerated_decls): Likewise. * tree-ssa-reassoc.c (undistribute_ops_list): Likewise. (reassociate_bb): Likewise. * tree-ssa-sccvn.c (sort_scc): Likewise. * tree-ssa-structalias.c (sort_fieldstack): Likewise. gcc/ada/ * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort. From-SVN: r165314
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 029ad03..4f1e399 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -1476,9 +1476,7 @@ compare_case_labels (const void *p1, const void *p2)
void
sort_case_labels (VEC(tree,heap)* label_vec)
{
- size_t len = VEC_length (tree, label_vec);
- qsort (VEC_address (tree, label_vec), len, sizeof (tree),
- compare_case_labels);
+ VEC_qsort (tree, label_vec, compare_case_labels);
}