www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/10/01:30:46

Date: Sun, 10 Mar 1996 08:23:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Troy D. Van Horn" <74617 DOT 365 AT compuserve DOT com>
Cc: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Re: Packed Align bug in G++ 2.7.2??
In-Reply-To: <960309000648_74617.365_EHH43-1@CompuServe.COM>
Message-Id: <Pine.SUN.3.91.960310082119.2390M-100000@is>
Mime-Version: 1.0

On 8 Mar 1996, Troy D. Van Horn wrote:

>       I just discovered the reason for the problem today--I was compiling the
> program using C++.  I wrote a small test program and which uses the following
> structure from <dos.h>, and it produced different offsets when I compile to
> assembly depending on whether I use C or C++.
[snip]
>      Evendently the C++ compiler does not properly handel the
> __attribute__((packed)) command.

Yes, that's right.  This is a known GCC bug, so it won't be corrected 
until some future GCC version.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019