Mail Archives: cygwin-developers/1998/08/13/17:36:20
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 -