This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]