> Hi. > > Using priority {cd}tors on a target that does not support that can cause > failures (see the PR). > Apart from that, I decided to use priority 100 for both gcov_init and > gcov_exit functions as > the reserved range includes priority 100. Moreover, I enhanced test-cases we > have. > > Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. > > Ready to be installed? > Martin
> >From 05a0dcb13d608facdd1c85f4101cd821634d07cd Mon Sep 17 00:00:00 2001 > From: marxin <mli...@suse.cz> > Date: Wed, 26 Oct 2016 12:50:35 +0200 > Subject: [PATCH] Don't use priority {cd}tors if not supported by a target (PR > gcov-profile/78086) > > gcc/testsuite/ChangeLog: > > 2016-10-26 Martin Liska <mli...@suse.cz> > > * g++.dg/gcov/pr16855.C: Clean up the test case. > * g++.dg/gcov/pr16855-priority.C: New test. > > gcc/ChangeLog: > > 2016-10-26 Martin Liska <mli...@suse.cz> > > * coverage.c (build_init_ctor): Don't use priority {cd}tors if > not supported by a target. Set priority to 100 if possible. > (build_gcov_exit_decl): Likewise. OK, thanks! Honza