[lkml]   [2000]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Kernel 2.2.17 with RedHat 7 Problem !
Aaron Sethman <> writes:
> Try compiling the said code with -fno-strict-aliasing, and your problems
> will be solved.

Yes, but I don't think I should have to give gcc flags to get it to
obey the C standard (my example can easily be turned into a
self-contained strictly conforming program, in order to qualify for
the full weight of the standard).

> gcc is doing the right thing, just not what you expected.

gcc is not doing the right thing. My example contains no type punning
or other deviations from ISO C which might warrant
-fno-strict-aliasing. The program should behave as if the assignments
are evaluated sequentially; with this compiler, it does not.

> The kernel already checks to see if gcc can grok -fno-strict-aliasing

Yes, since the kernel needs to say to gcc "I know this code relies on
more than the ISO C semantics, so please be gentle with it".

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.047 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site