User bug (was Re: 2.2 + LFS + -malign_double = BUG)

From: Jeff Epler (jepler@inetnebr.com)
Date: Fri Jun 16 2000 - 16:17:26 EST


On Fri, Jun 16, 2000 at 05:01:33PM -0400, Scott M. Ransom wrote:
> Hello,
>
> I am using kernel 2.2.17pre2 with the LFS patch from
> http://www.scyld.com/software/lfs.html, gcc 2.95.2, and libc6 2.1.3 on a
> SMP PentiumII.
>
> The following code causes 'stat' to return incorrect values when
> compiled with -malign-double:

This isn't surprising. Read the documentation on the compiler flag you're using:

     *Warning:* if you use the `-malign-double' switch, structures
     containing the above types will be aligned differently than the
     published application binary interface specifications for the 386.

So, it's expected that -malign-double can lead to incorrect behavior.

Jeff

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:13 EST