octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isnan in fortran


From: Mike Miller
Subject: Re: isnan in fortran
Date: Tue, 10 Apr 2012 10:43:19 -0400

On Tue, Apr 10, 2012 at 9:19 AM, Svante Signell wrote:
> On Tue, 2012-04-10 at 14:13 +0100, Michael Goffioul wrote:
>> On Tue, Apr 10, 2012 at 2:03 PM, Jordi Gutiérrez Hermoso
> ...
>> > Can Fortran be preprocessed? If so, can we write an autoconf macro to
>> > check for isnan and use X.NE.X if not?
>>
>> http://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html
>>
>> Apparently, it can be preprocessed, but it's not enabled by default
>> for .f files (assuming .f extension is treated differently than .F,
>> which is not clear from the documentation).
>
> From man gcc:
>
>       file.f
>       file.for
>       file.ftn
> Fixed form Fortran source code which should not be preprocessed.
>
>       file.F
>       file.FOR
>       file.fpp
>       file.FPP
>       file.FTN
> Fixed form Fortran source code which must be preprocessed (with
> the traditional preprocessor).

Yes, and looks like automake will pass the right options to preprocess
Fortran, but only if the extension is .F, the others listed above are
possibly ignored by automake, even if gcc will handle them.

http://www.gnu.org/software/automake/manual/automake.html#Preprocessing-Fortran-77

Should work, I'll come up with something if no one beats me to it.

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]