[OpenMP] Workaround gfortran bugzilla build bug 41755
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 8 May 2019 23:12:31 +0000 (23:12 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Wed, 8 May 2019 23:12:31 +0000 (23:12 +0000)
commitc107332583152ab61b870aee29ecd31a938fa676
tree7d0beb9c0f80e6d3857a8e86c163bab22f208028
parentfad8fb8032032e0609ad553b6498a79dad96a54d
[OpenMP] Workaround gfortran bugzilla build bug 41755

This patch provides workaround to allow gfortran to compile the
OpenMP Fortran modules.

From the gfortran manual:
https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gfortran/BOZ-literal-constants.html

"Note that initializing an INTEGER variable with a statement such as
DATA i/Z'FFFFFFFF'/ will give an integer overflow error rather than the desired
result of -1 when i is a 32-bit integer on a system that supports 64-bit
integers. The -fno-range-check option can be used as a workaround for legacy
code that initializes integers in this manner."

Bug filed: https://bugs.llvm.org/show_bug.cgi?id=41755

Differential Revision: https://reviews.llvm.org/D61603

llvm-svn: 360299
openmp/runtime/src/CMakeLists.txt
openmp/runtime/src/include/50/omp_lib.f90.var