From 16e81d5193f6067be90abfa0cbcb15328ce16e2a Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 5 Dec 2019 13:35:26 +0100 Subject: [PATCH] Fix __gcov_exit fn prototype. 2019-12-05 Martin Liska PR gcov-profile/92817 * coverage.c (build_gcov_exit_decl): Remove superfluous void_type_node. From-SVN: r278995 --- gcc/ChangeLog | 6 ++++++ gcc/coverage.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fca25729778..fa926137255 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-12-05 Martin Liska + + PR gcov-profile/92817 + * coverage.c (build_gcov_exit_decl): Remove superfluous + void_type_node. + 2019-12-05 Jozef Lawrynowicz * config/msp430/msp430.md (cbranch4): Use 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; -- 2.30.2