diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-12-14 22:39:11 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-12-14 22:39:11 +0000 |
commit | 7cc577a4efa28c20c4e54011e19e815a9ff5e0ca (patch) | |
tree | c285406289cdaa612ad7340aac5d98c681dde441 /openmp/runtime/src/kmp_ftn_extra.cpp | |
parent | 52fe1f68c8f405dc5799a640ff275c6afd74ebb1 (diff) | |
download | bcm5719-llvm-7cc577a4efa28c20c4e54011e19e815a9ff5e0ca.tar.gz bcm5719-llvm-7cc577a4efa28c20c4e54011e19e815a9ff5e0ca.zip |
Change source files from .c to .cpp
Patch by Hansang Bae
Differential Revision: https://reviews.llvm.org/D26688
llvm-svn: 289732
Diffstat (limited to 'openmp/runtime/src/kmp_ftn_extra.cpp')
-rw-r--r-- | openmp/runtime/src/kmp_ftn_extra.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_ftn_extra.cpp b/openmp/runtime/src/kmp_ftn_extra.cpp new file mode 100644 index 00000000000..73c4e2d45b7 --- /dev/null +++ b/openmp/runtime/src/kmp_ftn_extra.cpp @@ -0,0 +1,34 @@ +/* + * kmp_ftn_extra.c -- Fortran 'extra' linkage support for OpenMP. + */ + + +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.txt for details. +// +//===----------------------------------------------------------------------===// + + +#include "kmp.h" +#include "kmp_affinity.h" + +#if KMP_OS_WINDOWS +# define KMP_FTN_ENTRIES KMP_FTN_PLAIN +#elif KMP_OS_UNIX +# define KMP_FTN_ENTRIES KMP_FTN_APPEND +#endif + +// Note: This string is not printed when KMP_VERSION=1. +char const __kmp_version_ftnextra[] = KMP_VERSION_PREFIX "Fortran \"extra\" OMP support: " +#ifdef KMP_FTN_ENTRIES + "yes"; +# define FTN_STDCALL /* nothing to do */ +# include "kmp_ftn_os.h" +# include "kmp_ftn_entry.h" +#else + "no"; +#endif /* KMP_FTN_ENTRIES */ |