This is the mail archive of the gcc-help@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: -Wcast-align and performance



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.


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