Is there anyway to make PGI recognize general suffix ? In particular I want to be able to compile code with .ftn suffix as a Fortran source code in free-form.
Is there any reason why PGI cannot allow any suffix in general ? The Fortran standard does not actually say anything about file suffixes. Isn’t all we need is to let the compiler know whether it’s a fixed or free-form, and whether to pass it to the preprocessor or not ?
You’re the first person to ask about the ftn suffix, but I don’t think it would be difficult add. I sent our engineer’s a RFE (TPR#16348). Though, the two compilers I see that support this suffix, SUN and Intel, both list it as fixed form. For consistency, I recommended that also use fixed by default. To use free-form add “-Mfree”.
Is there any reason why PGI cannot allow any suffix in general ?
It might be possible. I added another RFE (TPR#16349) for this request.
Thanks again for your submission. The 10.4 release now accepts
foo.ftn and foo.FTN
as fortran source files. We are looking into providing users the ability
to define their own extensions easily.