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

release/18.x: [OpenMP] fix endianness dependent definitions in OMP headers for MSVC (#84540) #84668

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Mar 10, 2024

Backport 110141b

Requested by: @brad0

@llvmbot llvmbot added this to the LLVM 18.X Release milestone Mar 10, 2024
@llvmbot
Copy link
Member Author

llvmbot commented Mar 10, 2024

@xingxue-ibm What do you think about merging this PR to the release branch?

Copy link
Contributor

@xingxue-ibm xingxue-ibm left a comment

Choose a reason for hiding this comment

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

Yes, it will be great if this patch can be picked up by v18.x. The OpenMP runtime libomp won't build without the fix if the build compiler is MSVC.

…llvm#84540)

MSVC does not define __BYTE_ORDER__ making the check for BigEndian
erroneously evaluate to true and breaking the struct definitions in MSVC
compiled builds correspondingly. The fix adds an additional check for
whether __BYTE_ORDER__ is defined by the compiler to fix these.

---------

Co-authored-by: Vadim Paretsky <b-vadipa@microsoft.com>
(cherry picked from commit 110141b)
@tstellar tstellar merged commit a91b9bd into llvm:release/18.x Mar 11, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime
Projects
Development

Successfully merging this pull request may close these issues.

4 participants