I did a quick test with regard to compiling gcc 8.2 fortran in Debian and can confirm that you can use .f90, f95 and f03 as extensions and the programs compiles without any problems. I think that you only need the -ffree-form switch when using a .f extension. Happy to provide some test programs if necessary. It will be amazing if we can have gcc 8.2 gfortran running in RISC OS.
Best wishes
Norman
On Sat, 11 Apr 2020 at 05:03, Lee Noar <lee.noar@sky.com> wrote:
On 10/04/2020 19:07, Chris Gransden wrote:
> I did a quick test of the GCC 8 native fortran compiler and it produced
> working executables.
>
> I had to name the file prime/f90 to get it build. Not sure if it needs
> adding to sfix in the !Run file.
The test I did was to put the source file in an f directory as you
would put C source in a c directory and that worked. Does that
work for you?
I had to use the -ffree-form switch to get the compiler to accept the
helloworld source I found on the web. Perhaps using a f90 suffix forces
the compiler to use a more appropriate fortran standard?
Lee.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment