Commit 0f9fb22f by Jakub Jelinek Committed by Jakub Jelinek

re PR gcov-profile/55650 (Firefox profiledbuild: libxul.so: cannot map…

re PR gcov-profile/55650 (Firefox profiledbuild:  libxul.so: cannot map zero-fill pages: Cannot allocate memory)

	PR gcov-profile/55650
	* coverage.c (coverage_obj_init): Return false if no functions
	are being emitted.

	* g++.dg/other/pr55650.C: New test.
	* g++.dg/other/pr55650.cc: New file.

From-SVN: r194470
parent 3c53f55a
2012-12-13 Jakub Jelinek <jakub@redhat.com>
PR gcov-profile/55650
* coverage.c (coverage_obj_init): Return false if no functions
are being emitted.
2012-12-13 Steven Bosscher <steven@gcc.gnu.org>
* bitmap.c (struct bitmap_descriptor): Remove forward declaration.
......@@ -999,6 +999,9 @@ coverage_obj_init (void)
/* The function is not being emitted, remove from list. */
*fn_prev = fn->next;
if (functions_head == NULL)
return false;
for (ix = 0; ix != GCOV_COUNTERS; ix++)
if ((1u << ix) & prg_ctr_mask)
n_counters++;
......
2012-12-13 Jakub Jelinek <jakub@redhat.com>
PR gcov-profile/55650
* g++.dg/other/pr55650.C: New test.
* g++.dg/other/pr55650.cc: New file.
2012-12-12 Jakub Jelinek <jakub@redhat.com>
PR debug/55665
......
// PR gcov-profile/55650
// { dg-do link }
// { dg-options "-O2 -fprofile-generate" }
// { dg-additional-sources "pr55650.cc" }
struct A
{
virtual void foo ();
};
struct B : public A
{
B ();
void foo () {}
};
inline A *
bar ()
{
return new B;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment