This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Wcast-align and performance
- From: John Boncek <jboncek at Hunter dot COM>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 13 Mar 2009 13:09:47 -0700 (PDT)
- Subject: Re: -Wcast-align and performance
- References: <22501453.post@talk.nabble.com>
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.