This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Big-endian Gcc on Intel IA32
- From: Linus Torvalds <torvalds at transmeta dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: <dewar at gnat dot com>, <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Dec 2001 17:10:01 -0800 (PST)
- Subject: Re: Big-endian Gcc on Intel IA32
On Mon, 17 Dec 2001, Richard Henderson wrote:
> On Mon, Dec 17, 2001 at 03:08:58PM -0800, Linus Torvalds wrote:
> > So I wasn't talking about a "const" like bit (even though it shares some
> > of the notions with "const"), but more of an "immutable" bit.
>
> That's not going to be possible without a lot of invasion
> into the type system.
Hmm? Not even just add a warning for _all_ casts of such pointers? This is
purely static thing, after all.
Or is it that the information just isn't carried around in a convenient
format? gcc does seem to warn about _some_ casts ("discards qualifiers
from pointer target type", "makes integer from pointer without cast").
Does it lose the information early for explicit casts or something?
Linus