public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][OBVIOUS] Fix __gcov_exit fn prototype.
@ 2019-12-05 12:33 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2019-12-05 12:33 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

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  <mliska@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(-)



[-- Attachment #2: 0001-Fix-__gcov_exit-fn-prototype.patch --]
[-- Type: text/x-patch, Size: 525 bytes --]

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-05 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 12:33 [PATCH][OBVIOUS] Fix __gcov_exit fn prototype Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).