This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21931] problem with fugly-logint flag and evaluating if statements
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2005 13:58:48 -0000
- Subject: [Bug fortran/21931] problem with fugly-logint flag and evaluating if statements
- References: <20050606154812.21931.mark_l_hansen@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bdavis9659 at comcast dot net 2005-06-25 13:58 -------
here are some things i have found while researching this:
First, this patch:
2002-05-09 Hassan Aurag <aurag@cae.com>
* expr.c (ffeexpr_reduced_ugly2log_): Allow logicals-as-integers
under -fugly-logint as arguments of .and., .or., .xor.
which was then reverted after discussion about what -fugly-logint is supposed to do:
2003-11-24 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/12633
* expr.c (ffeexpr_reduced_ugly2log_): Revert
change allowing logical .and. logical to be
integer in expressions when -fugly-logint.
And then another patch which was supposed to "do the right thing":
2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
PR fortran/6491
* expr.c (ffeexpr_reduce_): When handling AND, OR, and XOR, and
when using -fugly-logint, if both operands are logical, convert
the result back to logical.
(ffeexpr_reduced_ugly2log_): Add bothlogical parameter. Change
all callers. Convert logical operands to integer.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bbsnider at link dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21931