Re: strange problem in X

Matti Aarnio (matti.aarnio@sonera.fi)
Sun, 27 Jun 1999 16:40:42 +0300


On Sun, Jun 27, 1999 at 10:10:33AM -0400, Joe wrote:
> <suggestion flame=no>
> maybe he (Linus) should start using egcs at least testing with it then, as
> it is "going" to be gcc 2.9 soon, and most distros are going that way.
> </suggestion>

egcs doesn't per default turn on -fstrict-aliasing processing,
but gcc 2.9 will (or so we are told).

All in all, following alias related options are available at
the egcs 1.1.2:

$ egcs -v --help 2>&1 | grep alias
-fstrict-aliasing Assume strict aliasing rules apply
-fargument-noalias-global Assume arguments do not alias each other or globals
-fargument-noalias Assume arguments may alias globals but not each other
-fargument-alias Specify that arguments may alias each other & globals
-fstructure-noalias Assume structure / array reference and fixed scalar cannot alias

For an educative experience, try compiling your kernel with that
switch, and tell what happens ?

egcs wizards have tried, and are telling that Linux kernel
violates so many of C9X aliasing rules, that there will be
major pain... (This includes e.g. DaveM, who is one of the
primary Linux network subsystem hackers.)

> --
> Joseph Acosta ........ SMP Linux 2.2.10 / RedHat 6.0

/Matti Aarnio <matti.aarnio@sonera.fi>

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