www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/10/17:58:21

Date: Sun, 8 Dec 1996 17:33:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Erik Max Francis <max AT alcyone DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Padding Question
In-Reply-To: <32A91EFF.6C6FD6F0@alcyone.com>
Message-ID: <Pine.SUN.3.91.961208173103.3423Q-100000@is>
MIME-Version: 1.0

On Fri, 6 Dec 1996, Erik Max Francis wrote:

> John M. Aldrich wrote:
> 
> > #pragma is an evil, hackish way to make gcc pack structures.  The DJGPP
> 
> I'm curious -- what's "unevil" or "unhackish" about using attributes to
> pack structures?  Both are completely unportable, but it seems to me that
> the #pragma will work in the widest number of cases (i.e., taking into
> account old gcc bugs).

I wouldn't really call `pragma' evil or hackyish.  The only factor that
might make attributes look like a better way is that the GCC maintainers
don't like pragmas (it is said loud and clear on the GCC docs), and so the
attributes might be more portable *between the various GCC versions* than
the pragmas. 

- Raw text -


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