GCC 4.7.0 breaks __attribute__((packed)) behavior on... (Developers)
I don't want/have time for long philosophic discussion about portable code, different C compilers, why need packed structures, etc...
I just giving a warning, that new gcc since ver 4.7.0 changed default bahavior of attribute packed (-mms-bitfields become default) that may affect older SW when recompiling. I see it as very serious change. I understand this was done for some reasons of compatability with M$ and/or 64bit stuff but I don't agree with this way. Attribute packed should be left to always pack the structure to minimum size without padding (otherwise I would't use this attribute at all) and they could introduce some new attribute ms_packed...
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - RayeR, 04.09.2012, 18:53 ![Open in board view [Board]](img/board_d.gif) ![Open in mix view [Mix]](img/mix_d.gif) - GCC 4.7.0 breaks __attribute__((packed)) behavior on... - Rugxulo, 04.09.2012, 23:16- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - RayeR, 05.09.2012, 03:46- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - Rugxulo, 05.09.2012, 11:26- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - RayeR, 05.09.2012, 19:09
 
 
- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - Rugxulo, 05.09.2012, 11:26
 
- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - RayeR, 05.09.2012, 03:46
 
- GCC 4.7.0 breaks __attribute__((packed)) behavior on... - Rugxulo, 04.09.2012, 23:16
 Board view
Board view Mix view
Mix view
