Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use preprocessor directives in omp_lib.h #201

Open
wants to merge 1 commit into
base: release_19x
Choose a base branch
from

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.
@@ -429,102 +429,82 @@
end subroutine omp_fulfill_event

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?

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