Hi. One obvious about superfluous void_type_node in __gcov_exit declaration.
I'm going to install the patch. Martin gcc/ChangeLog: 2019-12-05 Martin Liska <mli...@suse.cz> PR gcov-profile/92817 * coverage.c (build_gcov_exit_decl): Remove superfluous void_type_node. --- gcc/coverage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gcc/coverage.c b/gcc/coverage.c index 2cdbb0172c9..b2d853a0cd7 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -1071,8 +1071,7 @@ build_init_ctor (tree gcov_info_type) static void build_gcov_exit_decl (void) { - tree init_fn = build_function_type_list (void_type_node, void_type_node, - NULL); + tree init_fn = build_function_type_list (void_type_node, NULL); init_fn = build_decl (BUILTINS_LOCATION, FUNCTION_DECL, get_identifier ("__gcov_exit"), init_fn); TREE_PUBLIC (init_fn) = 1;