http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
Bug #: 53937
Summary: Pack'ing struct causes gcc to not recognize that an
field's address is aligned
Classification: Unclassified
Product: gcc
Version: 4.6.0
Status:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
--- Comment #1 from Krzysztof Gongolewski don.delfin at gmail dot com
2012-07-12 10:49:57 UTC ---
Created attachment 27780
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27780
Compiled example code
Assembler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
--- Comment #3 from Krzysztof Gongolewski don.delfin at gmail dot com
2012-07-12 12:24:42 UTC ---
But the compiler knows address of the struct at compilation time, it's
hard-coded. So gcc knows that both struct and member are perfectly aligned
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
Krzysztof Gongolewski don.delfin at gmail dot com changed:
What|Removed |Added
Keywords|missed-optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
Krzysztof Gongolewski don.delfin at gmail dot com changed:
What|Removed |Added
Status|RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937
Krzysztof Gongolewski don.delfin at gmail dot com changed:
What|Removed |Added
Keywords||missed