This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC kernel miscompile with O2
- To: William Stearns <wstearns at pobox dot com>
- Subject: Re: GCC kernel miscompile with O2
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 19 Feb 2001 01:36:18 -0800
- Cc: gcc-bugs at gcc dot gnu dot org, Jeff Dike <jdike at karaya dot com>
- References: <Pine.LNX.4.30.0011141313210.3686-100000@sparrow.websense.net>
On Thu, Feb 15, 2001 at 12:41:33AM -0500, William Stearns wrote:
> set_fault_addr(&&error);
> memcpy(to, from, n);
> goto out;
> error:
> ret = n - ((unsigned long) get_fault_addr() - (unsigned long) from);
This is not even close to legal. Reread the docs.
I don't see this code in either the 2.2 or 2.4 trees.
Where did you pull this from?
r~