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]

Re: PATCH: New libiberty sorting routine


>>>>> "Richard" == Richard Henderson <rth@cygnus.com> writes:

    Richard> On Sun, Apr 23, 2000 at 06:01:30PM -0700, Mark Mitchell
    Richard> wrote:
    >> + /* Figure out the endianness of the machine.  */ + for (i =
    >> 0; i < sizeof (size_t); ++i) + ((char *)&j)[i] = i; +
    >> big_endian_p = (((char *)&j)[0] == 0);

    Richard> This is always false.

Yes.  This, and the other bug you found, show what happens when you
only test on a little-endian machine.  Thanks; fix coming.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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