------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-21 03:41 ------- Here is the testcase which can reproduce it on the mainline for -mpowerpc64: struct __attribute__((packed)) G { unsigned char i; unsigned long long l; }; unsigned long long foo (struct G x) { return x.l; }
For -m64 (on both powerpc64-linux and powerpc-darwin): struct __attribute__((packed)) G { unsigned char i; unsigned long l; }; unsigned long foo (struct G x) { return x.l; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13674