From patchwork Thu Dec 5 12:33:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1204592 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515219-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vQJl54oH"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TFVv64ynz9sNx for ; Thu, 5 Dec 2019 23:33:11 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=rQkYBUh2YiPzq5FC+kvaChunsXXC7NRxyZKxZaQYlcbaVPw4/SG/y G5kc4QJWKctOysmgN66qeKIVzo95mpVai7cCU/bCtXI5+AZynTDWzZlPKXrJ83d8 yobzVGg6/Pof/nmWUSJaoGd1yc1TBEc972dpfe0eM/ad/Qjk4xx/DI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=d95R6pZXQW0htLwntQclBix50F0=; b=vQJl54oHE2Na8nN0fWtB X+X5XOMGZ7BNyLN0At3866GyAYmzhIaPuJ14kdCF2jzcebOiefE+bJxboMTiMuAt /gfjTcy8EpBZ5AAAPzVncwfplVhTF15TTVL3kZZLe/tSKVy7keKFrUWogEueh8oR 1ZkmvgQgT6asvk7MLHwqpvg= Received: (qmail 35037 invoked by alias); 5 Dec 2019 12:33:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 35024 invoked by uid 89); 5 Dec 2019 12:33:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Dec 2019 12:33:02 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 511F7B3A5 for ; Thu, 5 Dec 2019 12:33:00 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][OBVIOUS] Fix __gcov_exit fn prototype. To: gcc-patches@gcc.gnu.org Message-ID: <71aaea96-36bc-9599-7bdd-b0733a879253@suse.cz> Date: Thu, 5 Dec 2019 13:33:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 X-IsSubscribed: yes 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 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;