[flang-commits] [flang] [flang][Runtime] Add SIGNAL intrinisic (PR #79337)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Thu Jan 25 03:51:11 PST 2024


tblah wrote:

> > The CFL3D code in NASA's repository uses it. https://github.com/nasa/CFL3D/blob/776d5169f34d26ae65701c87038e63b125b7d86a/source/ronnie/main.F#L136
> 
> Thanks for finding this. Do you know off the top of your head which compiler they are using? The 3 argument version seems to be using a defintion which is not compatible with the GFortran version that I have implemented here (the third argument is an INTENT(OUT) and they are passing a literal -1).

CFL3D has an example Makefile using gfortran, but in my own test, if -1 is given as the status argument, gfortran will generate code that segfaults.

It looks like `ifort` has a different definition of the third argument: https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2023-0/signal.html. 

I will update to make status INTENT(INOUT) and supporting the ifort flags.

https://github.com/llvm/llvm-project/pull/79337


More information about the flang-commits mailing list