[gfortran] Support INTEGER<->LOGICAL conversion as GNU extension

Steven Bosscher stevenb@suse.de
Sat May 28 00:28:00 GMT 2005


On Saturday 28 May 2005 01:50, Roger Sayle wrote:
> This patch is a ping/repost/take #2 of my post from February:
> http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00213.html
>
> In addition to some minor clean-ups, it allows implicit conversion
> between LOGICALs and INTEGERs as supported by many compilers including
> g77 (using -fugly-logint) and SGI's MIPSPro f77.  The only comment to
> my original post, was that GNU extensions should be documented in the
> gfortran manual, and this revised patch below includes that requested
> documentation.
>
> The following patch has been tested on i686-pc-linux-gnu with a bootstrap
> including f95, and regression tested with a top-level "make -k check" with
> no regressions.
>
> OK for mainline?

Hmm, I'd rather have the g77 behavior, where -fugly-logint was turned
off by default AFAICT.

Gr.
Steven



More information about the Fortran mailing list