[Openmp-commits] [PATCH] D41499: [OMPT] Fix failing test cases for gcc on Ubuntu
Phabricator via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Dec 22 08:41:26 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL321362: [OMPT] Fix failing test cases for gcc on Ubuntu (authored by jprotze, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D41499?vs=127878&id=128030#toc
Repository:
rL LLVM
https://reviews.llvm.org/D41499
Files:
openmp/trunk/runtime/test/ompt/callback.h
openmp/trunk/runtime/test/ompt/loadtool/tool_available.c
Index: openmp/trunk/runtime/test/ompt/loadtool/tool_available.c
===================================================================
--- openmp/trunk/runtime/test/ompt/loadtool/tool_available.c
+++ openmp/trunk/runtime/test/ompt/loadtool/tool_available.c
@@ -7,9 +7,9 @@
// RUN: %clang %flags -DTOOL -shared -fPIC %s -o %T/tool.so
// 2. "introducing a dynamically-linked library that includes the tool’s definition of ompt_start_tool into the application’s address space"
// 2.1 Link with tool during compilation
-// RUN: %libomp-compile -DCODE %T/tool.so && %libomp-run | FileCheck %s
+// RUN: %libomp-compile -DCODE -Wl,--no-as-needed %T/tool.so && %libomp-run | FileCheck %s
// 2.2 Link with tool during compilation, but AFTER the runtime
-// RUN: %libomp-compile -DCODE -lomp %T/tool.so && %libomp-run | FileCheck %s
+// RUN: %libomp-compile -DCODE -lomp -Wl,--no-as-needed %T/tool.so && %libomp-run | FileCheck %s
// 2.3 Inject tool via the dynamic loader
// RUN: %libomp-compile -DCODE && %preload-tool %libomp-run | FileCheck %s
Index: openmp/trunk/runtime/test/ompt/callback.h
===================================================================
--- openmp/trunk/runtime/test/ompt/callback.h
+++ openmp/trunk/runtime/test/ompt/callback.h
@@ -1,4 +1,5 @@
#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <stdio.h>
#include <inttypes.h>
#include <omp.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41499.128030.patch
Type: text/x-patch
Size: 1379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171222/b0af04f5/attachment-0001.bin>
More information about the Openmp-commits
mailing list