[POWERPC]: Bug in gcc 2.8.1 while compiling fs/ext2/balloc.c

Patrick Lerda (LERDA@microprocess.com)
Tue, 3 Aug 1999 09:31:23 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BEDD82.304FECC0
Content-Type: text/plain

This line C line in fs/ext2/balloc.c:
gdp->bg_free_blocks_count =
cpu_to_le16(le16_to_cpu(gdp->bg_free_blocks_count) - 1);

Is miscompiled whith gcc 2.8.1, and I get: gdp>bg_free_blocks_count=-1,
whatever the value is!
I tried the compiler used by RedHat for PowerPC (a prereleased of egcs
1.0.2), and this new
compiler give the right result.

If you know the most reliable version of gcc to compile linux on
PowerPC, and how to make
a cross compiler of GCC-2.9.5 for powerpc on an intel box le me know.

Thanks

LERDA Patrick

------ =_NextPart_001_01BEDD82.304FECC0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
[POWERPC]: Bug in gcc 2.8.1 while compiling = fs/ext2/balloc.c

This line C line in = fs/ext2/balloc.c:
        gdp->bg_free_blocks_count =3D = cpu_to_le16(le16_to_cpu(gdp->bg_free_blocks_count) - 1);

Is miscompiled whith gcc 2.8.1, and I = get: gdp>bg_free_blocks_count=3D-1, whatever the value is!
I tried the compiler used by RedHat = for PowerPC (a prereleased of egcs 1.0.2), and this new
compiler give the right result. =

If you know the most reliable version = of gcc to compile linux on PowerPC, and how to make
a cross compiler of GCC-2.9.5 for = powerpc on an intel box le me know.

Thanks


LERDA Patrick

------ =_NextPart_001_01BEDD82.304FECC0--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/