Commit 01c7f350 by Michael Meissner Committed by Michael Meissner

Make qsort compare function type correct

From-SVN: r18483
parent f7f308df
Wed Mar 11 15:16:01 1998 Michael Meissner <meissner@cygnus.com>
* {haifa-,}sched.c (rank_for_schedule): Only take void * arguments
as per ISO C spec.
Wed Mar 11 12:05:20 1998 Teemu Torma <tot@trema.com> Wed Mar 11 12:05:20 1998 Teemu Torma <tot@trema.com>
* gthr.h: Changed the comment about return values. * gthr.h: Changed the comment about return values.
......
...@@ -458,7 +458,7 @@ static void sched_analyze_2 PROTO ((rtx, rtx)); ...@@ -458,7 +458,7 @@ static void sched_analyze_2 PROTO ((rtx, rtx));
static void sched_analyze_insn PROTO ((rtx, rtx, rtx)); static void sched_analyze_insn PROTO ((rtx, rtx, rtx));
static void sched_analyze PROTO ((rtx, rtx)); static void sched_analyze PROTO ((rtx, rtx));
static void sched_note_set PROTO ((rtx, int)); static void sched_note_set PROTO ((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 swap_sort PROTO ((rtx *, int));
static void queue_insn PROTO ((rtx, int)); static void queue_insn PROTO ((rtx, int));
static int schedule_insn PROTO ((rtx, rtx *, int, int)); static int schedule_insn PROTO ((rtx, rtx *, int, int));
...@@ -3992,10 +3992,11 @@ while (0) ...@@ -3992,10 +3992,11 @@ while (0)
static int static int
rank_for_schedule (x, y) rank_for_schedule (x, y)
rtx *x, *y; const GENERIC_PTR x;
const GENERIC_PTR y;
{ {
rtx tmp = *y; rtx tmp = *(rtx *)y;
rtx tmp2 = *x; rtx tmp2 = *(rtx *)x;
rtx link; rtx link;
int tmp_class, tmp2_class; int tmp_class, tmp2_class;
int val, priority_val, spec_val, prob_val, weight_val; int val, priority_val, spec_val, prob_val, weight_val;
......
...@@ -322,7 +322,7 @@ static void sched_analyze_2 PROTO((rtx, rtx)); ...@@ -322,7 +322,7 @@ static void sched_analyze_2 PROTO((rtx, rtx));
static void sched_analyze_insn PROTO((rtx, rtx, rtx)); static void sched_analyze_insn PROTO((rtx, rtx, rtx));
static int sched_analyze PROTO((rtx, rtx)); static int sched_analyze PROTO((rtx, rtx));
static void sched_note_set PROTO((int, rtx, int)); 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 swap_sort PROTO((rtx *, int));
static void queue_insn PROTO((rtx, int)); static void queue_insn PROTO((rtx, int));
static int birthing_insn_p PROTO((rtx)); static int birthing_insn_p PROTO((rtx));
...@@ -1860,10 +1860,11 @@ sched_note_set (b, x, death) ...@@ -1860,10 +1860,11 @@ sched_note_set (b, x, death)
static int static int
rank_for_schedule (x, y) rank_for_schedule (x, y)
rtx *x, *y; const GENERIC_PTR x;
const GENERIC_PTR y;
{ {
rtx tmp = *y; rtx tmp = *(rtx *)y;
rtx tmp2 = *x; rtx tmp2 = *(rtx *)x;
rtx link; rtx link;
int tmp_class, tmp2_class; int tmp_class, tmp2_class;
int value; int value;
......
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