$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.7.0 20120224 (Fedora MinGW 4.7.0-0.5.20120224.fc16_cross)
I am attaching test case that you can easily see the problem.
$ gcc -m32 test-ps.c
$ ./a.out
size: 12
$ gcc -fpack-struct -m32 test-ps.c
size: 6
$ i686-w64-mingw32-gcc test-ps.c
$ wine ./a-1.exe
size: 12
$ i686-w64-mingw32-gcc -fpack-struct test-ps.c
$ wine ./a.exe
size: 9
Nobody/Anonymous
None
None
Public
|
Date: 2012-06-29 03:40:52 PDT I run into this as well and I don't think the change is correct. I get now |
|
Date: 2012-03-02 11:45:06 PST My last comment was a false alarm. Adding "-mno-ms-bitfields" solves all my |
|
Date: 2012-03-01 23:06:25 PST The remark of "__attribute__ ((__packed)) applies only to last field of |
|
Date: 2012-03-01 03:18:15 PST The general issue is that the __attribute__ ((__packed)) applies only to |
|
Date: 2012-02-29 15:07:19 PST I was too quick to say it is fixed. There seem to be other byte alignment |
|
Date: 2012-02-29 15:05:31 PST Adding -mno-ms-bitfields does fix the issue that I am having. I was |
|
Date: 2012-02-29 13:21:20 PST Ah, I missed that default-alignment is treated now for ms_struct |
|
Date: 2012-02-29 13:10:24 PST The gcc 4.7 gcc for mingw has by default -mms-bitfields activated. Which |
| Filename | Description | Download |
|---|---|---|
| test-ps.c | test case | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2012-02-29 13:10 | 2012-02-29 15:05:31 PST | Michael Cronenworth |
| status_id | Pending | 2012-02-29 15:05:31 PST | Michael Cronenworth |
| resolution_id | Invalid | 2012-02-29 13:21:20 PST | ktietz70 |
| close_date | - | 2012-02-29 13:10:24 PST | ktietz70 |
| status_id | Open | 2012-02-29 13:10:24 PST | ktietz70 |
| resolution_id | None | 2012-02-29 13:10:24 PST | ktietz70 |
| File Added | 437059: test-ps.c | 2012-02-29 10:52:58 PST | Michael Cronenworth |