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]

-Wcast-align and performance


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
-- 
View this message in context: http://www.nabble.com/-Wcast-align-and-performance-tp22501453p22501453.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]