From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joern Rennecke To: mrs@wrs.com (Mike Stump) Cc: egcs@cygnus.com Subject: Re: #pragma pack Date: Tue, 14 Oct 1997 07:42:00 -0000 Message-id: <199710141440.PAA00180@phal.cygnus.co.uk> References: <199710140056.RAA21019@kankakee.wrs.com> X-SW-Source: 1997-10/msg00534.html > I will be adding some form of #pragma pack to our C/C++ compiler on > most platforms to support the inclusion of third party headerfiles > that assume that the structures are packed. The open question, is how > best to achieve that. I tried HANDLE_SYSV_PRAGMA but that logic fails > to work, in fact, I don't see how most ports could make use of the > code in c-pragma.c. Is there a port that someone can say does > currently work with that scheme? My preference is to reuse the most > popular existing scheme. Should I just blaze away and fix up c-pragma > to work as expected? What is expected? HANDLE_PRAGMA is due for overhaul, so that it can work together with USE_CPPLIB. Its set of arguments will have to be changed. This requires changes in the backend as well as in all ports that use HANDLE_PRAGMA. I suggest you do that first; when you have done that, it should be easier to use the code in c-pragma.c, since HANDLE_PRAGMA should be passed a (not necessarily proper) superset of parameters, when compared to HANDLE_SYSV_PRAGMA.