[Openmp-commits] [openmp] r325131 - [OMPT][test] Correct warning about added wrapper functions
Jonas Hahnfeld via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 14 07:15:24 PST 2018
Author: hahnfeld
Date: Wed Feb 14 07:15:24 2018
New Revision: 325131
URL: http://llvm.org/viewvc/llvm-project?rev=325131&view=rev
Log:
[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
Modified:
openmp/trunk/runtime/test/ompt/callback.h
Modified: openmp/trunk/runtime/test/ompt/callback.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/callback.h?rev=325131&r1=325130&r2=325131&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/callback.h (original)
+++ openmp/trunk/runtime/test/ompt/callback.h Wed Feb 14 07:15:24 2018
@@ -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
More information about the Openmp-commits
mailing list