delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/13/17:36:20

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Adding pragma pack(1) to Win32 gcc
13 Aug 1998 17:36:20 -0700 :
Message-ID: <Pine.SUN.3.93.980813190547.6998A-100000.cygnus.cygwin32.developers@modi.xraylith.wisc.edu>
References: <199808132329 DOT QAA18032 AT elmo DOT cygnus DOT com>
Mime-Version: 1.0
To: Nick Clifton <nickc AT cygnus DOT com>
Cc: root AT jacob DOT remcomp DOT fr, noer AT cygnus DOT com, cygwin32-developers AT cygnus DOT com

On Thu, 13 Aug 1998, Nick Clifton wrote:

> 
> I have produced a set of patches that will implement these pragmas,
> but in the course of testing them it occured to me that they may not
> actually do what you what.  Could you give me a precise description of
> the beahviour you expect from, say '#pragma pack 1' vs '#pragma pack
> 4'.  (Ignoring the push and pop for now, which is easy to implement).
> 
> Also it occurs to me that you may be able to get the functionality
> you want by using #pragma pack() to reset the packing behaviour back
> to its default.  Of course this is not as flexible as the push and pop
> pragmas you describe above, but it would mean that you could implement
> structure packing without having to extend gcc at all.
> 

I'll put up the patches I have Alastair Houghton (have to do some minor
tweaks before it'll patch cleanly into egcs-1.1) and let you guys know.
It does implement as per MS spec and it (supposedly) handles MS SDK
headers which really do rely heavily on these pragmas. Hopefully sometime
tomorrow.

I believe that Geoffrey suggested that we move this to cygwin32-developers
which makes sense. I'm copying the list as well.

[ for those who're just starting with this thread, the discussion is about
implementing #pragam pack(push, 4), #pragma (pop) etc in gcc ].

Regards,
Mumit

- Raw text -


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