This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C undefined behavior fix
- From: Paul Mackerras <paulus at samba dot org>
- To: dewar at gnat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 7 Jan 2002 08:40:39 +1100 (EST)
- Subject: Re: [PATCH] C undefined behavior fix
- References: <20020106130556.99E79F2FF5@nile.gnat.com>
- Reply-to: paulus at samba dot org
dewar@gnat.com writes:
> <<* Given a pointer, I need a way to determine the address (as an int of
> the appropriate size) that the CPU will present to the MMU when I
> dereference that pointer.
> >>
>
> This is in general ill-defined, a compiler might generate code that sometimes
> does byte access to a particular byte, anmd sometimes gets the entire word
> in which the byte resides.
Do I need to try to specify more exactly what I need, then, or do
people generally understand what I was trying to say?
Paul.