From 533144bccdb4d411669b229f437c8cf193d47bb5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 7 Oct 2016 11:24:20 +0200 Subject: [PATCH] Really set priority to 99 for __gcov_exit * coverage.c (build_gcov_exit_decl): Fix priority what should be really 99. From-SVN: r240857 --- gcc/ChangeLog | 5 +++++ gcc/coverage.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1eb08d28bc..14b298ccab5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-10-07 Martin Liska + + * coverage.c (build_gcov_exit_decl): Fix priority what + should be really 99. + 2016-10-07 Richard Biener * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of diff --git a/gcc/coverage.c b/gcc/coverage.c index 0b8c0b37843..a759831ab1a 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.30.2