Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/1b6d8a9a0857
branches:  trunk
changeset: 525713:1b6d8a9a0857
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Apr 16 03:49:57 2002 +0000

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

diffstat:

 gnu/dist/toolchain/gcc/loop.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r bf0bf691199f -r 1b6d8a9a0857 gnu/dist/toolchain/gcc/loop.c
--- a/gnu/dist/toolchain/gcc/loop.c     Tue Apr 16 03:47:32 2002 +0000
+++ b/gnu/dist/toolchain/gcc/loop.c     Tue Apr 16 03:49:57 2002 +0000
@@ -6952,10 +6952,17 @@
   int total_benefit;
 };
 
+static int cmp_combine_givs_stats PROTO ((const PTR, const PTR));
+
 static int
-cmp_combine_givs_stats (x, y)
-     struct combine_givs_stats *x, *y;
+cmp_combine_givs_stats (xp, yp)
+     const PTR xp;
+     const PTR yp;
 {
+  const struct combine_givs_stats * const x =
+    (const struct combine_givs_stats *) xp;
+  const struct combine_givs_stats * const y =
+    (const struct combine_givs_stats *) yp;
   int d;
   d = y->total_benefit - x->total_benefit;
   /* Stabilize the sort.  */



Home | Main Index | Thread Index | Old Index