[Bug c/53937] New: Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
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:

[Bug c/53937] Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
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

[Bug c/53937] Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
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

[Bug c/53937] Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
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

[Bug c/53937] Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937 Krzysztof Gongolewski don.delfin at gmail dot com changed: What|Removed |Added Status|RESOLVED

[Bug c/53937] Pack'ing struct causes gcc to not recognize that an field's address is aligned

2012-07-12 Thread don.delfin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53937 Krzysztof Gongolewski don.delfin at gmail dot com changed: What|Removed |Added Keywords||missed