This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: G77: patch to bitwise .AND. errors
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Hassan Aurag <aurag at cae dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 08 May 2002 00:38:41 +0200
- Subject: Re: G77: patch to bitwise .AND. errors
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <1020803836.4881.1.camel@l0553>
Hassan Aurag wrote:
> Looking at the sources of 2.95.1 of gcc, I have noticed that with
> -fugly-logint option all operations involving logicals would first cast
> logical to int except for logical operations.
>
> Now adding the casting section to the function that is called for
> logical operations fixes the issue I had before: bug #`fortran/6491'.
>
> Here is a patch. Now I'd love if someone knowledgeable took a look at
> it to check if it's crappy, dangerous, erroneous, stupid or what.
I'll look into it this weekend, unless someone beats me to it.
Thanks for the contribution - note that if it's larger than 15 lines of
code, we need an assignment for your code to the FSF (see the
"Contributing" item on our home page: http://gcc.gnu.org).
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)