This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs
- From: "arthur.j.odwyer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Apr 2011 19:57:44 +0000
- Subject: [Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs
- Auto-submitted: auto-generated
- References: <bug-43341-4@http.gcc.gnu.org/bugzilla/>
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