This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stack Reorganization Patch


Geert Bosch wrote:
> 
> On Wednesday, Feb 19, 2003, at 10:54 America/New_York, Joern Rennecke
> wrote:
> 
> > It should never return zero when we compare different items.  But it
> > should return zero when we compare something with itself.
> 
> An efficient quicksort implementation will never do this.

But there is no guarantee that qsort will use the quicksort algorithm.
And there is no telling what algorithms will be useful on parallel
computing or even quantum hardware.

Besides, do we want to rely on an efficient qsort implementation for
the correctness of gcc?

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]