[PATCH] C undefined behavior fix

Paul Mackerras paulus@samba.org
Wed Jan 2 18:38:00 GMT 2002


Richard Henderson writes:

> Ignore strcpy.  Yes, that's what visibly causing a failure here,
> but the bug is in the funny pointer arithmetic.  Leave that in
> there and the compiler _will_ bite your ass sooner or later.

I look forward to seeing your patch to remove all uses of
virt_to_phys, phys_to_virt, __pa, __va, etc. from arch/alpha... :)

Paul.



More information about the Gcc mailing list