Skip to content

Conversation

@bryanpkc
Copy link
Collaborator

This partially reverts commit fb5fd2d, in order to remove the use of preprocessor directives in omp_lib.h, which causes the Classic Flang frontend to fail when the including source file is not preprocessed.

Closes flang-compiler/flang#1451.

…he `openmp/src/include` sources (#80874)"

This partially reverts commit fb5fd2d,
in order to remove the use of preprocessor directives in omp_lib.h, which
causes the Classic Flang frontend to fail when the including source file
is not preprocessed.

subroutine omp_init_lock(svar) bind(c)
#ifdef __INTEL_COMPILER
!DIR$ IF(__INTEL_COMPILER.GE.1400)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So IF/ENDIF are the !DIR$ directives recognized by the Intel compiler?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. I guess Classic Flang just ignores them.

@bryanpkc bryanpkc merged commit cb3d351 into flang-compiler:release_19x Nov 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preprocessor directives in omp_lib.h causes some OpenMP programs to fail compilation

3 participants