Date: Mon, 20 Apr 1998 16:10:25 +0300 (IDT) From: Eli Zaretskii To: Charles Terry cc: djgpp AT delorie DOT com Subject: Re: Struct optimizing by compiler In-Reply-To: <353A27C6.37CC@plinet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.