aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@cygnus.com>1998-03-11 13:18:30 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1998-03-11 13:18:30 +0000
commit01c7f3501b56dde0b41a1e698b8c85f982d13662 (patch)
treeb3194019eeed247f276e20bb782d2179819cac7e /gcc/sched.c
parentf7f308df8308ac4ac153ec4363078cff0e74c22a (diff)
downloadgcc-01c7f3501b56dde0b41a1e698b8c85f982d13662.zip
gcc-01c7f3501b56dde0b41a1e698b8c85f982d13662.tar.gz
gcc-01c7f3501b56dde0b41a1e698b8c85f982d13662.tar.bz2
Make qsort compare function type correct
From-SVN: r18483
Diffstat (limited to 'gcc/sched.c')
-rw-r--r--gcc/sched.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/sched.c b/gcc/sched.c
index 3ba20b8..f2ee7edc 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -322,7 +322,7 @@ static void sched_analyze_2 PROTO((rtx, rtx));
static void sched_analyze_insn PROTO((rtx, rtx, rtx));
static int sched_analyze PROTO((rtx, rtx));
static void sched_note_set PROTO((int, rtx, int));
-static int rank_for_schedule PROTO((rtx *, rtx *));
+static int rank_for_schedule PROTO((const GENERIC_PTR, const GENERIC_PTR));
static void swap_sort PROTO((rtx *, int));
static void queue_insn PROTO((rtx, int));
static int birthing_insn_p PROTO((rtx));
@@ -1860,10 +1860,11 @@ sched_note_set (b, x, death)
static int
rank_for_schedule (x, y)
- rtx *x, *y;
+ const GENERIC_PTR x;
+ const GENERIC_PTR y;
{
- rtx tmp = *y;
- rtx tmp2 = *x;
+ rtx tmp = *(rtx *)y;
+ rtx tmp2 = *(rtx *)x;
rtx link;
int tmp_class, tmp2_class;
int value;