From: Martin Liska Date: Fri, 7 Oct 2016 09:24:20 +0000 (+0200) Subject: Really set priority to 99 for __gcov_exit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=533144bccdb4d411669b229f437c8cf193d47bb5;p=gcc.git Really set priority to 99 for __gcov_exit * coverage.c (build_gcov_exit_decl): Fix priority what should be really 99. From-SVN: r240857 --- 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