[Openmp-commits] [PATCH] D40384: [OMPT] Add annotations to testcases that are expected to fail when using certain compilers
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 29 11:05:49 PST 2017
Hahnfeld 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"
----------------
protze.joachim wrote:
> Hahnfeld wrote:
> > Hahnfeld wrote:
> > > protze.joachim wrote:
> > > > Hahnfeld wrote:
> > > > > sconvent wrote:
> > > > > > 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.
> > > > > >
> > > > > GCC 7.2.0, probably the system default in Debian: http://lab.llvm.org:8011/builders/openmp-ompt-gcc-x86_64-linux-debian/builds/16/steps/configure-openmp/logs/stdio
> > > > >
> > > > > Maybe the distribution carries some downstream patches?!?
> > > > The context is this (fixed) issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687
> > > Yes, so the fix has been backported to GCC 5, 6, 7. This has happened after 7.2.0 has been released, but probably Debian tracks a more recent commit (which most distributions do unfortunately). So although I don't like we might need to turn this into an UNSUPPORTED because a passing XFAIL is treated as error :-(
> > Yes, the fix has been included in `gcc-7.2.0-5` (http://metadata.ftp-master.debian.org/changelogs/main/g/gcc-7/gcc-7_7.2.0-16_changelog)
> So
> XFAIL gcc-5 gcc-6 gcc-7.0 gcc-7.1
> UNSUPPORTED gcc-7.2
>
> This would affect all tests, that have this line in this patch.
I think we don't have `gcc-7.0 gcc-7.1` at the moment, only `gcc-7`. And we could possibly get in trouble with the older versions as well because the fix was backported to GCC 5 and 6, too.
https://reviews.llvm.org/D40384
More information about the Openmp-commits
mailing list