From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E5D53858D20; Fri, 3 Feb 2023 15:23:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E5D53858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675437781; bh=JRuFywZf4XD1fJYacJa5Hf9iIJjxYP4+Q+qu55oumUk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vHIg/XwAakeko7A4vF3RnYNfSE+IJ/m1Qdu0vryolfeyXQ4C9nYyUjZEhi51zffHm Upx7mV1lnR+3oBhb0MLY3KO+8a0wJd6eJBCh6MNxstSNzBcT5WX1XCZSagC+BmQ5XV kmaSuoU294bqxNjMUF9Ndo6FtMqIvmJUOkvgmrbE= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/108658] [GCOV] Function entry is not recorded in a function containing an infinite loop depending on the optimization level Date: Fri, 03 Feb 2023 15:23:00 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108658 --- Comment #1 from Andrew Pinski --- Try compiling with -pthread too? Otherwise the instrumentation code assumes= it is single threaded.=