This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/21931] problem with fugly-logint flag and evaluating if statements


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]