Don't use priority {cd}tors if not supported by a target (PR
authorMartin Liska <mliska@suse.cz>
Fri, 25 Nov 2016 14:23:25 +0000 (15:23 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 25 Nov 2016 14:23:25 +0000 (14:23 +0000)
commit78681a7b92549b1daa579aeeb78bb498aa167040
treeb8258052adb5bdf2b8dba387b6948962aa3effe0
parenta77af1829fd2dc976599383d01ab4467c05eba5b
Don't use priority {cd}tors if not supported by a target (PR

PR gcov-profile/78086
* g++.dg/gcov/pr16855.C: Clean up the test case.
* g++.dg/gcov/pr16855-priority.C: New test.
* 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.

From-SVN: r242877
gcc/ChangeLog
gcc/coverage.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr16855-priority.C [new file with mode: 0644]
gcc/testsuite/g++.dg/gcov/pr16855.C