Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gcc pass arg 4 of the qsort() correctly.



details:   https://anonhg.NetBSD.org/src/rev/00dd3eb98a53
branches:  trunk
changeset: 480079:00dd3eb98a53
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Jan 02 11:01:02 2000 +0000

description:
pass arg 4 of the qsort() correctly.

diffstat:

 gnu/dist/gcc/loop.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 84a386cd19c9 -r 00dd3eb98a53 gnu/dist/gcc/loop.c
--- a/gnu/dist/gcc/loop.c       Sun Jan 02 10:53:52 2000 +0000
+++ b/gnu/dist/gcc/loop.c       Sun Jan 02 11:01:02 2000 +0000
@@ -321,7 +321,7 @@
 #endif
 static int combine_givs_p PROTO((struct induction *, struct induction *));
 #ifdef GIV_SORT_CRITERION
-static int giv_sort PROTO((struct induction **, struct induction **));
+static int giv_sort PROTO((const void *, const void *));
 #endif
 static void combine_givs PROTO((struct iv_class *));
 static int product_cheap_p PROTO((rtx, rtx));
@@ -5879,9 +5879,11 @@
 
 static int
 giv_sort (x, y)
-     struct induction **x, **y;
+     const void *x, *y;
 {
-  GIV_SORT_CRITERION (*x, *y);
+     const struct induction **xx = (const struct induction **)x;
+     const struct induction **yy = (const struct induction **)y;
+  GIV_SORT_CRITERION (*xx, *yy);
 
   return 0;
 }



Home | Main Index | Thread Index | Old Index