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