GCC kernel miscompile with O2

Richard Henderson rth@redhat.com
Mon Feb 19 01:36:00 GMT 2001


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~



More information about the Gcc-bugs mailing list