Jonathon Penix
Jonathon Penix
Appropriately setting the `--target` flag is necessary when using clang and building for a target other than the default. Zephyr generally accomplishes this by setting the `CMAKE__COMPILER_TARGET` variables and allowing...
503.bwaves fails on a segmentation fault when being built without specifying the `-mmlir -fdynamic-heap-array` flag. It seems like this is due to allocating arrays with sizes determined at runtime on...
Flang seems to be generating incorrect FIR for select case constructs under certain circumstances. Please see the example below: ```f90 subroutine foo(num) implicit none integer, intent(in) :: num real, dimension(1)...
A small reproducer is below: ```f90 program test_convert implicit none integer, parameter :: n = 4 integer, parameter :: fid = 20 real :: arr(n) real :: buf(n) integer ::...
Small reproducer is below: ```f90 module testing contains subroutine foo(func) interface function func(p) result (res) REAL, DIMENSION(:) :: p REAL, DIMENSION(size(p)) :: res end function end interface end subroutine function...
I am seeing a segfault when building and running the program below using flang. I am seeing this issue for both x86_64 and aarch64 and have been building with the...
Example program below: ```f90 subroutine test integer, parameter :: read_unit=10 integer :: a namelist /my_namelist/ a namelist /missing_namelist/ a open(unit=read_unit, file="namelist.txt", form="FORMATTED", status="NEW") write(unit=read_unit, nml=my_namelist, err=1) close(unit=read_unit) open(unit=read_unit, file="namelist.txt", form="FORMATTED",...
LLVM seems to inconsistently reject using '$' to mark an immediate operand in arm code. A reproducer is below: ``` $ clang --version clang version 19.0.0git (https://github.com/jonathonpenix/llvm-project.git 377a2767a9951659b5ec7309abb78da719a4f93b) Target: x86_64-unknown-linux-gnu...
After https://github.com/llvm/llvm-project/commit/2f8b64d327a27a73b57a54eb5d1f28c41e650aee / https://github.com/llvm/llvm-project/pull/95388 builds including flang seem to fail if a non-host LLVM_DEFAULT_TARGET_TRIPLE triple is provided. For example, building llvm at cb5ec3796ab08b34d9b0c42f654ca3ca026e50d3 using the following cmake invocation (on an...
I'm seeing a failed assert '!NodePtr->isKnownSentinel()' when debug info is being handled as part of the BasicBlock `splice()` API. I think we are able to dereference an `end()` iterator (`Dest`)...