From: Martin Liska Date: Thu, 5 Dec 2019 12:35:26 +0000 (+0100) Subject: Fix __gcov_exit fn prototype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16e81d5193f6067be90abfa0cbcb15328ce16e2a;p=gcc.git 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 --- 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;