Mail Archives: djgpp/1998/04/20/09:11:53
On Sun, 19 Apr 1998, Charles Terry wrote:
> Please correct me but I was lead to belive that the
> attribute packed directive was not actually implementd.
> We did a set of sizeof checks on a structure with and without
> atribute packed and if didn't make any difference. The only
> packing accomplished was with the #pragma pack(1) directive.
What you describe here is a bug in GCC 2.7.2, and only in the C++
compiler (cc1plus.exe). 2.7.2.1 does not have this bug, and even 2.7.2
didn't have it in the C compiler.
This is all described in the FAQ, btw. Having people on this forum which
are kind enough to relate what the FAQ says does not mean you should
avoid reading the sections to which you are refered.
- Raw text -