summaryrefslogtreecommitdiffstats
path: root/openmp/runtime
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2018-02-14 15:15:24 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2018-02-14 15:15:24 +0000
commitcc6d29d72cd53acd60cc1f32c6dd2d74863e2595 (patch)
tree588ef1d5725029abf3868aa70163b6460b0f3ec6 /openmp/runtime
parent3b4294edd2c6a2e10b502665b4648968c62ff055 (diff)
downloadbcm5719-llvm-cc6d29d72cd53acd60cc1f32c6dd2d74863e2595.tar.gz
bcm5719-llvm-cc6d29d72cd53acd60cc1f32c6dd2d74863e2595.zip
[OMPT][test] Correct warning about added wrapper functions
This affects all outlined functions, not just tasks! Only show warning when using Clang 5.0 or later. Differential Revision: https://reviews.llvm.org/D43190 llvm-svn: 325131
Diffstat (limited to 'openmp/runtime')
-rwxr-xr-xopenmp/runtime/test/ompt/callback.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index 3befe7c5d77..8bb94544072 100755
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -74,8 +74,10 @@ do {\
#define print_frame_from_outlined_fn(level) print_frame(level)
#endif
- #warning "Clang 5.0 and later add an additional wrapper function for tasks when compiling with debug information."
- #warning "Please define -DDEBUG iff you manually pass in -g!"
+ #if defined(__clang__) && __clang_major__ >= 5
+ #warning "Clang 5.0 and later add an additional wrapper for outlined functions when compiling with debug information."
+ #warning "Please define -DDEBUG iff you manually pass in -g to make the tests succeed!"
+ #endif
#endif
// This macro helps to define a label at the current position that can be used
OpenPOWER on IntegriCloud