Branch: refs/heads/main
Revision: 9fbcfbaa02abc11b7ed627d5117aaf2be4f076a7
Author: Vassily Litvinov
Link: [Merge pull request] # 20932 from vasslitvinov:fix-failure-from-#20861 Fix exported-fn.chpl for C backend by vasslitvinov · Pull Request #20932 · chapel-lang/chapel · GitHub
Log Message:
[Merge pull request] # 20932 from vasslitvinov:fix-failure-from-#20861
Fix exported-fn.chpl for C backend
This fixes code introduced in #20861 where compiling exported-fn.h with gcc gave us:
error: function declaration isn~t a prototype [-Werror=strict-prototypes]
static void bar() {
^~~
Clang does not complain about this. Testing: the affected test with C and LLVM backends under gasnet.
Modified Files:
runtime/include/chpl-tasks.h,runtime/include/chpl-topo.h,runtime/src/comm/gasnet/comm-gasnet.c,runtime/src/comm/ofi/comm-ofi.c,runtime/src/comm/ugni/comm-ugni.c,runtime/src/tasks/fifo/tasks-fifo.c,runtime/src/tasks/qthreads/tasks-qthreads.c,runtime/src/topo/hwloc/topo-hwloc.c,runtime/src/topo/none/topo-none.c,test/optimizations/widepointers/exported-fn.h
Removed Files:
Compare: Comparing 06239e1662492e0ba8c1e6da48a1c3f13ca44a26...9fbcfbaa02abc11b7ed627d5117aaf2be4f076a7 · chapel-lang/chapel · GitHub
Diff: https://github.com/chapel-lang/chapel/pull/20932.diff
FilesChanged: Fix exported-fn.chpl for C backend by vasslitvinov · Pull Request #20932 · chapel-lang/chapel · GitHub