This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linux and aliasing?


Jeffrey A Law <law@cygnus.com> writes:
>  In message <Pine.LNX.3.95.990607103826.22680A-100000@penguin.transmeta.com>yo
>u write:
>  > > Then we'll have to explain two things to them instead of just one: the
>  > > ANSI rules, and the extra Torvalds non-ANSI rules. 
>  > 
>  > Just explain it as "dangerous code", and give examples. There are
>  > certainly bound to be other cases, although the "torvalds case" is the
>  > obvious and most common one. 
>Building a new set of aliasing rules which are only going to be used by the
>Linux kernel to avoid making their code standards complaint is simply dumb.

It is not just the Linux kernel, it is _any_ kernel and 
aliasing tricks are _everywhere_ - most embedded C has them too, 
I would be surprised if X11 did not have them, ...

-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]