Skip to content

zequipe/flang_heap_arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo tests what flags are needed to force LLVM compilers (flang, amdflang, armflang) to allocate automatic arrays on the heap instead of the stack, to avoid stack overflow for large arrays.

As of LLVM 21.1.8, the flags needed are

-mmlir -fdynamic-heap-array

In contrast, -fno-stack-arrays is not sufficient.

Run the GitHub Action workflow to test when new versions of the compilers are released, to see if the flags needed have changed.

About

Reproduce false positive SIGSEGVs with Arm Fortran compiler (armflang)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages