Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

GCC 4.7.0 breaks __attribute__((packed)) behavior on... (Developers)

posted by RayeR Homepage, CZ, 05.09.2012, 03:46

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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum