This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: RFA: GCC 4.2.1: Stabalizing coalesce_list's qsort
- From: "Meissner, Michael" <michael dot meissner at amd dot com>
- To: "Andrew Pinski" <pinskia at gmail dot com>, "Andrew MacLeod" <amacleod at redhat dot com>, "Daniel Jacobowitz" <drow at false dot org>, "Nick Clifton" <nickc at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Aug 2007 17:03:57 -0400
- Subject: 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