Closed acarno closed 6 years ago
Adding preprocessed source & associated run script (generated by Clang)
This is actually a compatibility problem -- the file contains several functions with dynamically-sized stack frames, which are not supported by the toolchain yet. The following functions & variables should be rewritten to use gomp_malloc/free instead of dynamically-sized stack allocations:
GOMP_task: variable "char buf[]" is dynamically-sized GOMP_taskloop: variables "struct gomp_task task[]", "char buf[]", "struct gomp_task *tasks[]" are dynamically sized
When building libopenpop with
-popcorn-migratable
, compilation oftask.c
crashes the compiler due to a failed assertion in/llvm/lib/CodeGen/UnwindInfo.cpp
:Steps to reproduce:
musl-1.1.18
with attached patch (note: this just modifies the musl-clang script, so you can manually modify it if you don't want to re-install the library).libopenpop
with following command:make
Attached files include:
Patch for
musl
Output with
-mllvm -debug-only=regalloc -mllvm -debug-only=stacktransform
flags