------- Comment #3 from amonakov at gcc dot gnu dot org  2010-04-21 16:54 
-------
(In reply to comment #1)
> Created an attachment (id=20455)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20455&action=view) [edit]
> proposed patch
> 

GCC generates gcov structures at runtime, and #pragma pack(1) in the source
file affects their layout.  We probably can reset the alignment in
create_coverage to avoid that.  The above patch implements a different approach
-- it rearranges structure fields and manually sets alignment so that layout
does not depend on current structure packing.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43341

Reply via email to