Aaron Sethman <[EMAIL PROTECTED]> 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". David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Kernel 2.2.17 with RedHat 7 Problem ! David Relson
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Gregory Maxwell
- Re: Kernel 2.2.17 with RedHat 7 Problem ! J . A . Magallon
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Gregory Maxwell
- Re: Kernel 2.2.17 with RedHat 7 Problem ... Brian F. G. Bidulock
- Re: Kernel 2.2.17 with RedHat 7 Prob... Horst von Brand
- Re: Kernel 2.2.17 with RedHat 7 Problem ... J . A . Magallon
- Re: Kernel 2.2.17 with RedHat 7 Prob... Gregory Maxwell
- Re: Kernel 2.2.17 with RedHat 7 Problem ... David Wragg
- Re: Kernel 2.2.17 with RedHat 7 Prob... Aaron Sethman
- Re: Kernel 2.2.17 with RedHat 7... David Wragg
- Re: Kernel 2.2.17 with RedHat 7... Andrea Arcangeli
- Re: Kernel 2.2.17 with RedHat 7 Prob... Jakub Jelinek
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Horst von Brand
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Jan Dvorak
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Horst von Brand
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Gregory Maxwell
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Jurgen Kramer
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Mike A. Harris
- Re: Kernel 2.2.17 with RedHat 7 Problem ! Horst von Brand
- Re: Kernel 2.2.17 with RedHat 7 Problem ! David Relson