[Openmp-commits] [PATCH] D40384: [OMPT] Add annotations to testcases that are expected to fail when using certain compilers

Simon Convent via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 29 04:34:54 PST 2017


sconvent added inline comments.


================
Comment at: runtime/test/ompt/misc/control_tool.c:3
 // REQUIRES: ompt
+// XFAIL: gcc-4, gcc-5, gcc-6, gcc-7
 #include "callback.h"
----------------
Hahnfeld wrote:
> This works on LLVM's buildbot, so this can't be entirely correct: http://lab.llvm.org:8011/builders/openmp-ompt-gcc-x86_64-linux-debian/builds/14/steps/test-libomp/logs/stdio
> 
> Why did you want to deactivate this?
Which gcc version does the buildbot use? For me the testcase fails for versions up to 7.2 (I haven't tested more recent versions).
The problem is that in those versions, gcc has problems with labels inside of OpenMP regions. So when using the "print_current_address" macro (which defines a label) in a parallel region, the compilation fails.
Other testcases with the same problem also work in the buildbot so I believe this is a matter of the gcc version.



https://reviews.llvm.org/D40384





More information about the Openmp-commits mailing list