[PATCH] C undefined behavior fix

Richard Henderson rth@redhat.com
Wed Jan 2 16:08:00 GMT 2002


On Wed, Jan 02, 2002 at 05:01:18PM -0700, Tom Rini wrote:
> Yes, but doesn't -ffreestanding imply that gcc _can't_ assume this is
> the standard library...

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.


r~



More information about the Gcc mailing list