public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
@ 2003-11-24 21:58 ` toon at moene dot indiv dot nluug dot nl
  2003-11-25 10:51 ` aurag at cae dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-11-24 21:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-11-24 21:58 -------
I have to reopen this bug, because the proposed (and implemented) solution
caused regression (cf. PR fortran/12633).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
  2003-11-24 21:58 ` [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint toon at moene dot indiv dot nluug dot nl
@ 2003-11-25 10:51 ` aurag at cae dot com
  2003-11-25 22:15 ` toon at moene dot indiv dot nluug dot nl
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: aurag at cae dot com @ 2003-11-25 10:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aurag at cae dot com  2003-11-25 10:51 -------
The Expr.zip attachement above contains a modified expr.c file replacing 
gcc/f/expr.c

This should correctly handle all logical operations and still implements IBM's 
xlf -qintlog.

It's not the best looking code but it works

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
  2003-11-24 21:58 ` [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint toon at moene dot indiv dot nluug dot nl
  2003-11-25 10:51 ` aurag at cae dot com
@ 2003-11-25 22:15 ` toon at moene dot indiv dot nluug dot nl
  2003-11-27 17:02 ` aurag at cae dot com
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-11-25 22:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From toon at moene dot indiv dot nluug dot nl  2003-11-25 22:15 -------
Nope, this doesn't fix the test case of PR 12633.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (2 preceding siblings ...)
  2003-11-25 22:15 ` toon at moene dot indiv dot nluug dot nl
@ 2003-11-27 17:02 ` aurag at cae dot com
  2003-11-27 17:04 ` aurag at cae dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: aurag at cae dot com @ 2003-11-27 17:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (3 preceding siblings ...)
  2003-11-27 17:02 ` aurag at cae dot com
@ 2003-11-27 17:04 ` aurag at cae dot com
  2003-11-27 21:52 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: aurag at cae dot com @ 2003-11-27 17:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aurag at cae dot com  2003-11-27 17:04 -------
I will look at this asap, and come back with a solution (hopefully).



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (4 preceding siblings ...)
  2003-11-27 17:04 ` aurag at cae dot com
@ 2003-11-27 21:52 ` pinskia at gcc dot gnu dot org
  2003-12-23  1:18 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-27 21:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-27 21:52 -------
Assigning who thought he assigned it to himself.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aurag at cae dot com
                   |dot org                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (5 preceding siblings ...)
  2003-11-27 21:52 ` pinskia at gcc dot gnu dot org
@ 2003-12-23  1:18 ` pinskia at gcc dot gnu dot org
  2003-12-23  9:35 ` [Bug fortran/6491] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23  1:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (6 preceding siblings ...)
  2003-12-23  1:18 ` pinskia at gcc dot gnu dot org
@ 2003-12-23  9:35 ` pinskia at gcc dot gnu dot org
  2003-12-23  9:47 ` [Bug fortran/6491] [3.3/3.4 Regression] [g77] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23  9:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-23 09:25 -------
Mark it right as the patch which fixed this caused other problems so it was reverted for 
3.3.3 and 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Logical operations error on |[3.3/3.4 Regression] Logical
                   |logicals when using -fugly- |operations error on logicals
                   |logint                      |when using -fugly-logint


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] [g77]  Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (7 preceding siblings ...)
  2003-12-23  9:35 ` [Bug fortran/6491] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-23  9:47 ` pinskia at gcc dot gnu dot org
  2004-01-12 19:21 ` ian at airs dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23  9:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-23 09:26 -------
Mark it right as the patch which fixed this caused other problems so it was reverted for 
3.3.3 and 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3/3.4 Regression] Logical|[3.3/3.4 Regression] [g77]
                   |operations error on logicals|Logical operations error on
                   |when using -fugly-logint    |logicals when using -fugly-
                   |                            |logint


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] [g77]  Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (8 preceding siblings ...)
  2003-12-23  9:47 ` [Bug fortran/6491] [3.3/3.4 Regression] [g77] " pinskia at gcc dot gnu dot org
@ 2004-01-12 19:21 ` ian at airs dot com
  2004-01-12 19:59 ` aurag at cae dot com
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: ian at airs dot com @ 2004-01-12 19:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at airs dot com  2004-01-12 19:20 -------
I posted a potential patch here:
http://gcc.gnu.org/ml/fortran/2004-01/msg00080.html

This needs to be examined by somebody more familiar with FORTRAN.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] [g77]  Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (9 preceding siblings ...)
  2004-01-12 19:21 ` ian at airs dot com
@ 2004-01-12 19:59 ` aurag at cae dot com
  2004-01-14  2:33 ` cvs-commit at gcc dot gnu dot org
  2004-01-14  3:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: aurag at cae dot com @ 2004-01-12 19:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aurag at cae dot com  2004-01-12 19:59 -------
(In reply to comment #11)
> I posted a potential patch here:
> http://gcc.gnu.org/ml/fortran/2004-01/msg00080.html
> 
> This needs to be examined by somebody more familiar with FORTRAN.

I will compile this and test it and have a look.

Thanks for the patch

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] [g77]  Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (10 preceding siblings ...)
  2004-01-12 19:59 ` aurag at cae dot com
@ 2004-01-14  2:33 ` cvs-commit at gcc dot gnu dot org
  2004-01-14  3:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-14  2:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-14 02:32 -------
Subject: Bug 6491

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ian@gcc.gnu.org	2004-01-14 02:32:50

Modified files:
	gcc/f          : ChangeLog expr.c 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&r1=1.620&r2=1.621
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/expr.c.diff?cvsroot=gcc&r1=1.30&r2=1.31



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug fortran/6491] [3.3/3.4 Regression] [g77]  Logical operations error on logicals when using -fugly-logint
       [not found] <20020427140600.6491.aurag@cae.com>
                   ` (11 preceding siblings ...)
  2004-01-14  2:33 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-14  3:05 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-14  3:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-14 03:05 -------
Fixed for 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6491


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-01-14  3:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020427140600.6491.aurag@cae.com>
2003-11-24 21:58 ` [Bug fortran/6491] Logical operations error on logicals when using -fugly-logint toon at moene dot indiv dot nluug dot nl
2003-11-25 10:51 ` aurag at cae dot com
2003-11-25 22:15 ` toon at moene dot indiv dot nluug dot nl
2003-11-27 17:02 ` aurag at cae dot com
2003-11-27 17:04 ` aurag at cae dot com
2003-11-27 21:52 ` pinskia at gcc dot gnu dot org
2003-12-23  1:18 ` pinskia at gcc dot gnu dot org
2003-12-23  9:35 ` [Bug fortran/6491] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-23  9:47 ` [Bug fortran/6491] [3.3/3.4 Regression] [g77] " pinskia at gcc dot gnu dot org
2004-01-12 19:21 ` ian at airs dot com
2004-01-12 19:59 ` aurag at cae dot com
2004-01-14  2:33 ` cvs-commit at gcc dot gnu dot org
2004-01-14  3:05 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).