X-Mailer: exmh version 2.0.2 To: Mumit Khan cc: Andris Pavenis , djgpp-workers AT delorie DOT com, egcs-patches AT egcs DOT cygnus DOT com Subject: Re: problem with data alignment with egcs-19990602 In-reply-to: Your message of Tue, 08 Jun 1999 17:42:16 CDT. <199906082242 DOT RAA19006 AT mercury DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Jun 1999 03:14:22 -0600 Message-ID: <10600.928919662@upchuck.cygnus.com> From: Jeffrey A Law Reply-To: djgpp-workers AT delorie DOT com In message <199906082242 DOT RAA19006 AT mercury DOT xraylith DOT wisc DOT edu>you write: > Andris Pavenis writes: > > Problem seems to be related with use of #pragma pack(): > > I had to put definition of some structures between > > #pragma pack(1) > > and > > #pragma pack() > > > > It looks that with gcc 2.95 tree the second line (#pragma pack()) > > is ignored and as result I'm getting wrong code. [ ... ] > The alignment should revert to the default when `#pragma pack()' is > encountered (ie., without an token between the '(' and ')'). > > Does the following fix it? > > Tue Jun 8 17:31:18 1999 Mumit Khan > > * c-pragma.c (handle_pragma_token): Handle `#pragma pack()' > correctly. I believe this is the right patch -- it is functionally identical to one someone had just cobbled up inside Cygnus to fix the same problem. I've installed your patch. Thanks, jeff