https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106045

            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=53183&action=edit
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.

Reply via email to