[OpenMP][libomp] Fix fallthrough attribute detection for Intel compilers
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 19 May 2022 17:17:43 +0000 (12:17 -0500)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 19 Jul 2022 18:04:25 +0000 (13:04 -0500)
commit28c8da29654dd4a3da675dfcafbb70f357a7e1bd
tree1cc3a77a490f28b2496fbd751e2b11ecceece3d6
parentb7d3ba4bdb6886e0555efda333c790e736e79a6d
[OpenMP][libomp] Fix fallthrough attribute detection for Intel compilers

icc does not properly detect lack of fallthrough attribute since it
defines __GNU__ > 7 and also icc's __has_cpp_attribute/__has_attribute
feature detectors do not properly detect the lack of fallthrough attribute.

Differential Revision: https://reviews.llvm.org/D126001
openmp/runtime/src/kmp_os.h
openmp/tools/archer/ompt-tsan.cpp