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: RFA: GCC 4.2.1: Stabalizing coalesce_list's qsort


> -----Original Message-----
> From: Andrew Pinski [mailto:pinskia@gmail.com]
> Sent: Thursday, August 23, 2007 4:50 PM
> To: Meissner, Michael; Andrew MacLeod; Daniel Jacobowitz; Nick
Clifton;
> gcc-patches@gcc.gnu.org
> Subject: Re: RFA: GCC 4.2.1: Stabalizing coalesce_list's qsort
> 
> On 8/23/07, Michael Meissner <michael.meissner@amd.com> wrote:
> > There is no other sort in all of the libraries on the various
systems
> that GCC
> > runs on.  Not everybody runs Linux.  Qsort has to be there because
it is
> > required by the ISO C compiler standard, which explicitly says that
you
> cannot
> > depend on it be a stable sort.
> 
> So I have a solution, place a qsort in libiberty and then you will get
> the same unstable behavior for all platforms.  This is what we did
> here at Sony for the PS3 compiler.
> 
> Thanks,
> Andrew Pinski

That's one solution, though you have to be careful about licenses and
such, depending on where you get qsort from.

--
Michael Meissner
AMD, MS 83-29
90 Central Street
Boxborough, MA 01719



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