[Openmp-commits] [PATCH] D43190: [OMPT][test] Correct warning about added wrapper functions

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 12 06:56:19 PST 2018


Hahnfeld created this revision.
Hahnfeld added reviewers: protze.joachim, omalyshe, hbae.
Herald added a subscriber: openmp-commits.

This affects all outlined functions, not just tasks! Only show warning
when using Clang 5.0 or later.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D43190

Files:
  runtime/test/ompt/callback.h


Index: runtime/test/ompt/callback.h
===================================================================
--- runtime/test/ompt/callback.h
+++ runtime/test/ompt/callback.h
@@ -74,8 +74,10 @@
     #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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43190.133852.patch
Type: text/x-patch
Size: 819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180212/15ca00ec/attachment.bin>


More information about the Openmp-commits mailing list