There is no bug here. "#pragma pack" isn't ignored on arm, it just doesn't
do what you expect it to. Try this; the second printf should yield the same
results on x86 and arm.
#pragma pack(2)
struct foo {
short a;
long b;
};
int main() {
struct foo f;
/* prints
On Tue, 10 Apr 2001, Daniel Jacobowitz wrote:
> On Mon, Apr 09, 2001 at 10:37:08PM -0400, Ben Darnell wrote:
> > Package: gcc
> > Version: 1:2.95.3-7
> > Severity: normal
> >
> > Pragma pack works as expected on x86, but is ignored on arm (test case at
> > the
> > end of this mail, verified on ra
On Mon, Apr 09, 2001 at 10:37:08PM -0400, Ben Darnell wrote:
> Package: gcc
> Version: 1:2.95.3-7
> Severity: normal
>
> Pragma pack works as expected on x86, but is ignored on arm (test case at the
> end of this mail, verified on rameau.debian.org). I understand that pragmas
> are deprecated in
Package: gcc
Version: 1:2.95.3-7
Severity: normal
Pragma pack works as expected on x86, but is ignored on arm (test case at the
end of this mail, verified on rameau.debian.org). I understand that pragmas
are deprecated in favor of __attribute__, but this breaks quite a bit of
existing code (see,
4 matches
Mail list logo