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

            Bug ID: 93097
           Summary: Wrong OpenMP version reported
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: build+...@de-korte.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Currently, version 201511 is reported in _OPENMP, which is OpenMP 4.5. The
actual version of OpenMP is 5, so version 201811 should be reported instead.

Offending line in libgomp/env.c is 1170:

-  fputs ("  _OPENMP = '201511'\n", stderr);
+  fputs ("  _OPENMP = '201811'\n", stderr);

Reply via email to