This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C undefined behavior fix
- From: Linus Torvalds <torvalds at transmeta dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: Richard Henderson <rth at redhat dot com>, <dewar at gnat dot com>, <gcc at gcc dot gnu dot org>, <trini at kernel dot crashing dot org>
- Date: Sat, 5 Jan 2002 11:52:40 -0800 (PST)
- Subject: Re: [PATCH] C undefined behavior fix
On Sat, 5 Jan 2002, Florian Weimer wrote:
>
> Standard C has neither a concept of machine addresses, nor does the
> standard require a uniform, linear address space.
You haven't read the fine print. The C standard _does_ say:
"The mapping functons for converting a pointer to an integer or an
integer to a pointer are inteded to be consistent with the addressing
structure of the execution environment."
It can't be more specific, because the standard doesn't go into what those
execution environments actually _are_. But it's pretty clear what the
thing is talking about.
No hallucinations.
Linus