ARM constant folding bug?
Paul Brook
paul@codesourcery.com
Sat Aug 4 13:08:00 GMT 2007
> > Shouldn't it also work by changing the (char *) cast to (unsigned char
> > *), since IIUIC the standard guarantees you're allowed to access any
> > object as an array of unsigned char and not get into aliasing
> > difficulties?
>
> The standard makes the same guarantee about (char *). This is not
> "exploiting a hole"; it is standard C that you can access anything
> as (char *).
IMHO Being a standardised feature doesn't make it any less of a loophole :-)
Paul
More information about the Gcc
mailing list