[Openmp-commits] [PATCH] D48282: [OMPT] Use alloca() to force availability of frame pointer

Phabricator via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 2 02:18:50 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL336088: [OMPT] Use alloca() to force availability of frame pointer (authored by jprotze, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D48282?vs=152640&id=153685#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48282

Files:
  openmp/trunk/runtime/test/ompt/misc/interoperability.cpp


Index: openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
===================================================================
--- openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
+++ openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
@@ -3,6 +3,7 @@
 
 #include <iostream>
 #include <thread>
+#include <alloca.h>
 
 #include "callback.h"
 #include "omp.h"
@@ -15,6 +16,9 @@
   // runtime isn't initialized yet...)
   omp_get_num_threads();
 
+  // Call alloca() to force availability of frame pointer
+  void *p = alloca(0);
+
   OMPT_SIGNAL(condition);
   // Wait for both initial threads to arrive that will eventually become the
   // master threads in the following parallel region.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48282.153685.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180702/ba34c7a9/attachment.bin>


More information about the Openmp-commits mailing list