[Bug target/55428] -mms-bitfields hides -mno-align-double option

2012-11-29 Thread kasberger at heidenhain dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428 --- Comment #6 from Andreas Kasberger 2012-11-29 09:21:06 UTC --- I hope at least someone can agree that the behavior for "-mms-bitfields -mno-align-double" options in one command line is wrong and a bug

[Bug target/55428] -mms-bitfields hides -mno-align-double option

2012-11-26 Thread kasberger at heidenhain dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428 --- Comment #5 from Andreas Kasberger 2012-11-26 09:51:50 UTC --- I found this example on geeksforgeeks.org/forum/topic/c-structure-size-with-empty-bitfield #define offset(a,b) (size_t)(&(((a*)(0))->b)) struct emp { char s:8; char c:

[Bug c/55428] -mms-bitfields hides -mno-align-double option

2012-11-25 Thread kasberger at heidenhain dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428 --- Comment #4 from Andreas Kasberger 2012-11-26 07:21:51 UTC --- (In reply to comment #2) > Hmm, it seems that for ms-bitfields the default-field-alignment overrides all > field-local alignments. I wouldn't assume that __attribute__((pac

[Bug c/55428] -mms-bitfields hides -mno-align-double option

2012-11-25 Thread kasberger at heidenhain dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428 --- Comment #3 from Andreas Kasberger 2012-11-26 06:38:28 UTC --- It is not working with gcc 4.6.2 or 4.7. I tried an old compiler gcc 3.4.3 and the behavior was correct(In reply to comment #1) > Possibly related to PR52991 (-mms-bitfields

[Bug c/55428] New: -mms-bitfields hides -mno-align-double option

2012-11-21 Thread kasberger at heidenhain dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428 Bug #: 55428 Summary: -mms-bitfields hides -mno-align-double option Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal