This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 17949 (unaligned memory accesses due to ivopts) question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]