-Wcast-align and performance
John Boncek
jboncek@Hunter.COM
Fri Mar 13 20:09:00 GMT 2009
John Boncek wrote:
>
> I have turned on -Wcast-align in a big C++ project for ARM PXA270
> architecture and am receiving many warnings of the form:
>
> warning: cast from `BYTE*' to `short int*' increases required alignment of
> target type
>
> This sounds like there will be a performance penalty to generate the
> correct alignment for this. Is that correct?
>
> Thanks for your attention.
>
> John Boncek
>
We've been building this with -Wall, which, as previous posters have
observed, doesn't turn on many of the more obscure warnings such as this
one. Are there any (other) warnings which have direct performance
implications?
John Boncek
--
View this message in context: http://www.nabble.com/-Wcast-align-and-performance-tp22501453p22501459.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list