This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: -fugly-logint ?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org, Tom Roche <Tom_Roche at pobox dot com>
- Date: Sun, 27 Nov 2011 12:38:00 -0800
- Subject: Re: -fugly-logint ?
- References: <87vcq5tiep.fsf@pobox.com>
On Sun, Nov 27, 2011 at 03:33:18PM -0500, Tom Roche wrote:
>
> summary: Code I'm compiling with 4.6.1 gives the error
>
> > foo.f -o foo.o
> > foo.f:780.10:
> > IF (LIMIT_Sg == .TRUE.) THEN
> > 1
> > Error: Logicals at (1) must be compared with .eqv. instead of ==
>
> Can I fix this error without fixing the code? E.g., can one compile
> with something like -fugly-logint (which I see while googling, but not
> in current docs)?
>
The -fugly-* options are g77 options, which have not and
hopefully will never appear in gfortran.
You can try -std=legacy. I don't know if this option
will allow the above.
The best option is to fix the code.
--
Steve