From 1e53054953fb5918aaf8729b107f17b32506a5fe Mon Sep 17 00:00:00 2001 From: wilson Date: Mon, 20 Apr 1998 21:12:00 +0000 Subject: Fix BSD/OS build error reported by Shigeya Suzuk. * frame.c (heapsort): Rename to frame_heapsort. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19351 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/frame.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/frame.c') diff --git a/gcc/frame.c b/gcc/frame.c index 6a81e41c2e2..4bd1fee6648 100644 --- a/gcc/frame.c +++ b/gcc/frame.c @@ -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; -- cgit v1.2.1