From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 583F63944438; Wed, 18 Mar 2020 12:51:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 583F63944438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584535895; bh=e4XqmTxMA4rP7+6JDiT6Q8Yo0cYo33u03rC5U5m3m1A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JJCQPm7Jv0PC/yrPJrF+O59AD3spsd0zE+gn+by4dNtZ0jniZ8pmaqe3Ygh4rahzO 3Mt8OH4NNSOH5vu/VMhKnf/K+YPiKlyIc7nJ93FZS0vt4nrEoKqOo56l4Lq8cioU4T AygDDGspywbzkCe/OOglkQAGeiAnMHHSb95EUiDY= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/94029] [9/10 Regression] gcc crash in coverage.c:655 since r9-4216-g390e529e2b98983d Date: Wed, 18 Mar 2020 12:51:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 12:51:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94029 --- Comment #11 from Martin Li=C5=A1ka --- (In reply to Jakub Jelinek from comment #10) > Created attachment 48053 [details] > gcc10-pr94029.patch >=20 > The problem is that C FE finish_function uses input_location as > cfun->function_end_locus, but input_location isn't really updated very of= ten > in the C FE anymore, mostly in the line change hooks but that doesn't > trigger here because the macro arguments span across newline. > So, either like in the completely untested patch we can update > input_location somewhat more often, or we'd need to propagate the locatio= n_t > of the closing } > from c_parser_compound_statement_nostart to the callers. Thank you very much Jakub. If it survives regression tests, I would install= the suggested patch.=