Avoid warning under -fstrict-aliasing by using a call to memcpy to perform type punning.
Compiler output seems unaffected, see https://godbolt.org/z/E4hhvox1x
Differential D125467
[openmp] Fix strict aliasing issue in cmpxchg routine ClosedPublic Authored by serge-sans-paille on May 12 2022, 6:39 AM.
Details Summary Avoid warning under -fstrict-aliasing by using a call to memcpy to perform type punning. Compiler output seems unaffected, see https://godbolt.org/z/E4hhvox1x
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 12 2022, 6:40 AM Closed by commit rG40d3a0ba4d9e: [openmp] Fix strict aliasing issue in cmpxchg routine (authored by serge-sans-paille). · Explain WhyMay 12 2022, 7:17 AM This revision was automatically updated to reflect the committed changes.
Diff 428935 openmp/runtime/src/kmp_os.h
|