| www.delorie.com/archives/browse.cgi | search |
| X-Mailer: | exmh version 2.0.2 |
| To: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU> |
| cc: | Andris Pavenis <andris AT stargate DOT astr DOT lu DOT lv>, 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 |
| Date: | Wed, 09 Jun 1999 03:14:22 -0600 |
| Message-ID: | <10600.928919662@upchuck.cygnus.com> |
| From: | Jeffrey A Law <law AT cygnus DOT com> |
| 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 <andris AT stargate DOT astr DOT lu DOT lv> 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 <khan AT xraylith DOT wisc DOT edu>
>
> * 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |