This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Work around Firefox -fprofile-generate crash
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 5 Feb 2015 00:28:14 +0100
- Subject: Work around Firefox -fprofile-generate crash
- Authentication-results: sourceware.org; auth=none
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 */