This is the mail archive of the gcc-patches@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]

Work around Firefox -fprofile-generate crash


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.

Honza

2015-02-04  Jan Hubicka  <hubicka@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 */


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