Fix BSD/OS build error reported by Shigeya Suzuk.
authorJim Wilson <wilson@cygnus.com>
Mon, 20 Apr 1998 21:12:00 +0000 (21:12 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 20 Apr 1998 21:12:00 +0000 (14:12 -0700)
* frame.c (heapsort): Rename to frame_heapsort.

From-SVN: r19351

gcc/ChangeLog
gcc/frame.c

index fa11e459cd05b268abf7a11b3f45488eaf415c3f..18b0d2c6e4c0b836b2f0f587766ce99dedb5e112 100644 (file)
@@ -1,5 +1,7 @@
 Mon Apr 20 20:44:25 1998  Jim Wilson  <wilson@cygnus.com>
 
+       * frame.c (heapsort): Rename to frame_heapsort.
+
        * gcc.c (do_spec_1, case '['): Move flag out of loop and initialize it.
 
 Mon Apr 20 12:43:09 1998  Doug Evans  <devans@canuck.cygnus.com>
index 6a81e41c2e2475ac6b3be64068689426d198b91e..4bd1fee66485c97708cfe1f0488fc973d1cadcb9 100644 (file)
@@ -269,9 +269,10 @@ fde_split (fde_vector *linear, fde_vector *erratic)
   linear->count = j;
 }
 
-/* This is O(n log(n)). */
+/* This is O(n log(n)).  BSD/OS defines heapsort in stdlib.h, so we must
+   use a name that does not conflict.  */
 static inline void
-heapsort (fde_vector *erratic)
+frame_heapsort (fde_vector *erratic)
 {
   /* For a description of this algorithm, see:
      Samuel P. Harbison, Guy L. Steele Jr.: C, a reference manual, 2nd ed.,
@@ -366,7 +367,7 @@ end_fde_sort (fde_accumulator *accu, size_t count)
   fde_split (&accu->linear, &accu->erratic);
   if (accu->linear.count + accu->erratic.count != count)
     abort ();
-  heapsort (&accu->erratic);
+  frame_heapsort (&accu->erratic);
   fde_merge (&accu->linear, &accu->erratic);
   free (accu->erratic.array);
   return accu->linear.array;