Fix __gcov_exit fn prototype.
authorMartin Liska <mliska@suse.cz>
Thu, 5 Dec 2019 12:35:26 +0000 (13:35 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 5 Dec 2019 12:35:26 +0000 (12:35 +0000)
2019-12-05  Martin Liska  <mliska@suse.cz>

PR gcov-profile/92817
* coverage.c (build_gcov_exit_decl): Remove superfluous
void_type_node.

From-SVN: r278995

gcc/ChangeLog
gcc/coverage.c

index fca257297784fe816c63847c7a530d7e9649b07e..fa926137255aec03167782a50f3a5d1a66c783f8 100644 (file)
@@ -1,3 +1,9 @@
+2019-12-05  Martin Liska  <mliska@suse.cz>
+
+       PR gcov-profile/92817
+       * coverage.c (build_gcov_exit_decl): Remove superfluous
+       void_type_node.
+
 2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
        * config/msp430/msp430.md (cbranch<mode>4): Use
index 2cdbb0172c9516274e784fd5f028b5664f9f49ce..b2d853a0cd7f1ee7ca244632a22476ad2e6177cf 100644 (file)
@@ -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;