[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs
arthur.j.odwyer at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 26 19:57:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43341
Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arthur.j.odwyer at gmail
| |dot com
--- Comment #4 from Arthur O'Dwyer <arthur.j.odwyer at gmail dot com> 2011-04-26 19:54:28 UTC ---
For the record, I just noticed the same issue, using -fpack-struct instead of
#pragma pack. Whatever the fix ends up being, please make sure it also handles
-fpack-struct.
cat >test.c <<EOF
int main() { return 0; }
EOF
gcc -fpack-struct=4 -fprofile-generate test.c
./a.out
Segmentation fault
More information about the Gcc-bugs
mailing list