On Wed, 2 Nov 2011, DJ Delorie wrote:
> > > Index: configure.ac
> > > +    # Dereferencing -1 is a compile-time error
> >
> > This (those lines) look a little cryptic (and lack punctuation ;)
> > Wild improvement guess: "Too small 'int'?".
>
> No, the compiler specifically tests for unaligned accesses and gives a
> compile-time error, at Renesas's requrest.  The chip can't do
> unaligned accesses correctly, but it doesn't fault - it just silently
> accesses the wrong memory.  So the compiler errors instead.

Ah.  All validity issues aside, then "Dereferencing unaligned
pointers yields a compile-time error" or "pointers with unknown
alignment" would be much less cryptic: the "Dereferencing -1"
just sounds like *(char *) -1 or a cut

brgds, H-P

Reply via email to