This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][OBVIOUS] Really set priority to 99 for __gcov_exit
- From: Martin Liška <mliska at suse dot cz>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: Nathan Sidwell <nathan at acm dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <hubicka at ucw dot cz>
- Date: Fri, 7 Oct 2016 10:22:34 +0200
- Subject: [PATCH][OBVIOUS] Really set priority to 99 for __gcov_exit
- Authentication-results: sourceware.org; auth=none
- References: <dd23acd2-392b-e39f-1f42-b6d383308abf@suse.cz> <521cd409-284b-b109-e26f-00a312eb06cc@acm.org> <447a5571-5a7c-32a6-a72d-b268af13f733@suse.cz> <5270de7f-71e7-12d0-8046-460c75005399@suse.cz> <yddwphvulm2.fsf@CeBiTec.Uni-Bielefeld.DE> <183356f0-d8cf-ec59-8bc5-c8d7cd920092@suse.cz> <yddfuohspwe.fsf@CeBiTec.Uni-Bielefeld.DE> <99ac0c9b-9636-3aaf-f4b7-a926c1608a1f@suse.cz> <yddy429r2kn.fsf@CeBiTec.Uni-Bielefeld.DE> <c74ee720-05a0-4aa9-107e-66acfcc0f9f0@suse.cz>
Hi.
This is a small fix where I use a proper macro to set priority to 99.
I'll commit the patch after tests will finish.
Martin
>From ee8799b82fd769574c64489db31a494635da5f42 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Fri, 30 Sep 2016 14:48:31 +0200
Subject: [PATCH] Really set priority to 99 for __gcov_exit
gcc/ChangeLog:
2016-09-30 Martin Liska <mliska@suse.cz>
* coverage.c (build_gcov_exit_decl): Fix priority what
should be really 99.
---
gcc/coverage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 0b8c0b3..a759831 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -1078,7 +1078,7 @@ build_gcov_exit_decl (void)
append_to_statement_list (stmt, &dtor);
/* Generate a destructor to run it (with priority 99). */
- cgraph_build_static_cdtor ('D', dtor, DEFAULT_INIT_PRIORITY - 1);
+ cgraph_build_static_cdtor ('D', dtor, MAX_RESERVED_INIT_PRIORITY - 1);
}
/* Create the gcov_info types and object. Generate the constructor
--
2.9.2