From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E6CA138582A4; Tue, 21 Jun 2022 14:20:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6CA138582A4 From: "piannetta at kalrayinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/106045] New: Incorrect testcase in libgomp.c/target-31.c at -O0 Date: Tue, 21 Jun 2022 14:20:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 10.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: piannetta at kalrayinc dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: 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: Tue, 21 Jun 2022 14:20:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106045 Bug ID: 106045 Summary: Incorrect testcase in libgomp.c/target-31.c at -O0 Product: gcc Version: 10.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: piannetta at kalrayinc dot com CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 53183 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53183&action=3Dedit patch which add the private clause on i When investigating a test failure in the openmp testsuite, we found that the test target-31.c exhibit a wrong behavior at -O0. This is due to a missing private clause on the i variable. At higher optimization levels, the i variable is optimized out which makes the wrong behavior disappear. In attachment, a patch adding the missing private clause.=