diff options
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r-- | gcc/ddg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ddg.c b/gcc/ddg.c index 31910b3a462..fa70f2fc782 100644 --- a/gcc/ddg.c +++ b/gcc/ddg.c @@ -856,8 +856,8 @@ find_predecessors (sbitmap preds, ddg_ptr g, sbitmap ops) static int compare_sccs (const void *s1, const void *s2) { - int rec_l1 = (*(ddg_scc_ptr *)s1)->recurrence_length; - int rec_l2 = (*(ddg_scc_ptr *)s2)->recurrence_length; + const int rec_l1 = (*(const ddg_scc_ptr *)s1)->recurrence_length; + const int rec_l2 = (*(const ddg_scc_ptr *)s2)->recurrence_length; return ((rec_l2 > rec_l1) - (rec_l2 < rec_l1)); } |