Mail Archives: djgpp/1996/12/10/17:58:21
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 -