On February 5, 2015 12:28:14 AM CET, Jan Hubicka <hubi...@ucw.cz> wrote: >Hi, >this patch avoids ICE in programs that uses multiple copies of libgcov >at once. >It is just a temporary workaround as discussed in the PR log. > >Tested on Firefox and comitted.
I expect this will break on platforms with default -fno-common? Richard. >Honza > >2015-02-04 Jan Hubicka <hubi...@ucw.cz> > > >PR gcov/64123 > >* gcov-io.c (gcov_var): Export. > > >Index: gcov-io.c >=================================================================== >--- gcov-io.c (revision 220411) >+++ gcov-io.c (working copy) >@@ -39,7 +39,7 @@ static void gcov_allocate (unsigned); >/* Optimum number of gcov_unsigned_t's read from or written to disk. >*/ > #define GCOV_BLOCK_SIZE (1 << 10) > >-GCOV_LINKAGE ATTRIBUTE_HIDDEN struct gcov_var >+struct gcov_var > { > FILE *file; > gcov_position_t start; /* Position of first byte of block */