PR 17949 (unaligned memory accesses due to ivopts) question

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Sun Oct 17 01:43:00 GMT 2004


Hello,

> Well, a.f ought to be a pointer to unaligned integer.  Don't you get
> some kind of warning for this?

no.  There is -Wcast-align (disabled by default), but it does not
trigger in this case.  -Wpacked (also disabled by default) announces
that "packed attribute causes inefficient alignment for 'i'"
(but does not mention f; umm...).  And that's it, these are all warnings
that are triggered by STRICT_ALIGNMENT.

Zdenek



More information about the Gcc mailing list