[Openmp-commits] [PATCH] D137828: RFC: [openmp] Don't assume a specific layout for alloca() in Windows arm64 __kmp_invoke_microtask

Natalia Glagoleva via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 11 09:11:37 PST 2022


natgla added inline comments.


================
Comment at: openmp/runtime/src/z_Windows_NT-586_util.cpp:174
-    size_t len = (argc - 6) * sizeof(void *);
-    void *argbuf = alloca(len);
-    memcpy(argbuf, &p_argv[6], len);
----------------
argbuf better be volatile void*, to prevent optimizer messing with it


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137828/new/

https://reviews.llvm.org/D137828



More information about the Openmp-commits mailing list