This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linux and aliasing?
- To: law at cygnus dot com
- Subject: Re: Linux and aliasing?
- From: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Date: Tue, 8 Jun 1999 09:32:55 +0100 (BST)
- Cc: chip at perlsupport dot com, davem at redhat dot com, rth at cygnus dot com, craig at jcb-sc dot com, egcs at egcs dot cygnus dot com, Linus Torvalds <torvalds at transmeta dot com>, Tim Hollebeek <tim at franck dot Princeton dot EDU>, mark at codesourcery dot com
- Organization: via, but not speaking for : Texas Instruments Ltd.
- References: <4504.928779430@upchuck.cygnus.com>
- Reply-To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
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.