[Bug libfortran/30694] minval/maxval with +/-Inf

2009-12-05 Thread tkoenig at gcc dot gnu dot org
--- Comment #30 from tkoenig at gcc dot gnu dot org 2009-12-05 21:53 --- (In reply to comment #29) > Probably fixed by the commit of PR 40643 comment 7 > > Author: jakub > Date: Fri Jul 24 07:57:13 2009 > New Revision: 150041 > > URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=1

[Bug libfortran/30694] minval/maxval with +/-Inf

2009-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #29 from burnus at gcc dot gnu dot org 2009-07-24 08:21 --- Probably fixed by the commit of PR 40643 comment 7 Author: jakub Date: Fri Jul 24 07:57:13 2009 New Revision: 150041 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150041 Log: PR fortran/40643

[Bug libfortran/30694] minval/maxval with +/-Inf

2009-07-15 Thread burnus at gcc dot gnu dot org
--- Comment #28 from burnus at gcc dot gnu dot org 2009-07-15 09:41 --- (In reply to comment #24) > So maybe approach the question differently. Which element in an array of NaNs > is the smallest one and what is its value? If I pick any one element, its > "value" is NaN. It does not m

[Bug libfortran/30694] minval/maxval with +/-Inf

2008-02-01 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.2.4 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694

[Bug libfortran/30694] minval/maxval with +/-Inf

2008-02-01 Thread jsm28 at gcc dot gnu dot org
--- Comment #27 from jsm28 at gcc dot gnu dot org 2008-02-01 16:53 --- 4.2.3 is being released now, changing milestones of open bugs to 4.2.4. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-12-08 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|fxcoudert at gcc dot gnu dot|unassigned at gcc dot gnu |org

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-18 Thread burnus at gcc dot gnu dot org
--- Comment #26 from burnus at gcc dot gnu dot org 2007-10-18 18:22 --- If I understand it correctly, there is a difference between IEEE 754-1989 and the current draft of IEEE 754 (duped IEEE 754r), see also http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/33055faef5

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-18 Thread fxcoudert at gcc dot gnu dot org
--- Comment #25 from fxcoudert at gcc dot gnu dot org 2007-10-18 07:38 --- (In reply to comment #24) > So maybe approach the question differently. Which element in an array of NaNs > is the smallest one and what is its value? If I pick any one element, its > "value" is NaN. It does n

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #24 from jvdelisle at gcc dot gnu dot org 2007-10-18 00:18 --- Ok for hypot, and that may make sense knowing the nature of the function. Minval is not a complex or transcendental function. I should not write in loose general terms. So maybe approach the question different

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-17 Thread kargl at gcc dot gnu dot org
--- Comment #23 from kargl at gcc dot gnu dot org 2007-10-17 23:57 --- (In reply to comment #22) > Well this is just one little opinion: > > There is no way that it is realistic to get a valid number out of a NaN > or a group of NaNs. It can only be NaN. Read the hypot man page.

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #22 from jvdelisle at gcc dot gnu dot org 2007-10-17 23:49 --- Well this is just one little opinion: There is no way that it is realistic to get a valid number out of a NaN or a group of NaNs. It can only be NaN. It's like a place from which there is no return. Maybe we

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-17 Thread fxcoudert at gcc dot gnu dot org
--- Comment #21 from fxcoudert at gcc dot gnu dot org 2007-10-17 22:32 --- I've been thinking about MINVAL((/NaN,NaN/)), ie minval of an array containing only NaNs, over and over again, and it's a tough choice. Here's what compilers currently output for MINVAL and MAXVAL: Intel: Inf, -

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-10-09 Thread mmitchel at gcc dot gnu dot org
--- Comment #20 from mmitchel at gcc dot gnu dot org 2007-10-09 19:22 --- Change target milestone to 4.2.3, as 4.2.2 has been released. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-08-08 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-07-19 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.2.1 |4.2.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-06-21 Thread pault at gcc dot gnu dot org
--- Comment #19 from pault at gcc dot gnu dot org 2007-06-21 18:12 --- (In reply to comment #18) > Due to huge time constraints, I won't be able to > do anything with this for the next few weeks. Unassigning > myself for the time. > If anybody wants to look over my partial patch and fly

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-06-15 Thread tkoenig at gcc dot gnu dot org
-- tkoenig at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|tkoenig at gcc dot gnu dot |unassigned at gcc dot gnu |org

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-06-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #18 from tkoenig at gcc dot gnu dot org 2007-06-15 18:55 --- Due to huge time constraints, I won't be able to do anything with this for the next few weeks. Unassigning myself for the time. If anybody wants to look over my partial patch and fly with it, he's welcome :-) --

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-05-17 Thread tkoenig at gcc dot gnu dot org
--- Comment #17 from tkoenig at gcc dot gnu dot org 2007-05-17 14:40 --- Created an attachment (id=13569) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13569&action=view) partial implementation Here's a partial implementation that seems to get things right for the (min)|(max)loc0

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-05-14 Thread mmitchel at gcc dot gnu dot org
--- Comment #16 from mmitchel at gcc dot gnu dot org 2007-05-14 22:26 --- Will not be fixed in 4.2.0; retargeting at 4.2.1. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-04-19 Thread tkoenig at gcc dot gnu dot org
--- Comment #15 from tkoenig at gcc dot gnu dot org 2007-04-19 21:03 --- (In reply to comment #14) > (In reply to comment #13) > > The tree stuff is hard, btw. Still trying :-) > > Tree stuff? Do we generate inline code? We generate inline code for rank 0 minval and minloc, i.e. r

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-04-18 Thread fxcoudert at gcc dot gnu dot org
--- Comment #14 from fxcoudert at gcc dot gnu dot org 2007-04-18 22:59 --- (In reply to comment #13) > The tree stuff is hard, btw. Still trying :-) Tree stuff? Do we generate inline code? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-04-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #13 from tkoenig at gcc dot gnu dot org 2007-04-15 22:12 --- (In reply to comment #12) > Now all that's left is to translate that into C and tree representations :-) The tree stuff is hard, btw. Still trying :-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-04-10 Thread tkoenig at gcc dot gnu dot org
--- Comment #12 from tkoenig at gcc dot gnu dot org 2007-04-10 20:58 --- Created an attachment (id=13350) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13350&action=view) Sample implementation This is how I would the implementation of minloc to behave, shown as a sample implement

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-03-25 Thread tkoenig at gcc dot gnu dot org
--- Comment #11 from tkoenig at gcc dot gnu dot org 2007-03-25 22:04 --- I'll give this a shot. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added As

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-03-25 Thread fxcoudert at gcc dot gnu dot org
--- Comment #10 from fxcoudert at gcc dot gnu dot org 2007-03-25 11:49 --- $ cat nan.f90 real :: nan, x x = 7.2 nan = 0.0 nan = nan / nan print *, minval((/ nan, x /)), maxval((/ nan, x /)) print *, minval((/ nan /)), maxval((/ nan /)) print *, minloc((/ nan

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-02-14 Thread fxcoudert at gcc dot gnu dot org
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-02-14 20:21 --- We should fix {MIN,MAX}{VAL,LOC} for NaNs, as well as infinities. See http://groups.google.com/group/comp.lang.fortran/browse_frm/thread/e3745c39a11522c5 for details -- http://gcc.gnu.org/bugzilla/show_bug.cg

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-02-07 Thread tkoenig at gcc dot gnu dot org
--- Comment #8 from tkoenig at gcc dot gnu dot org 2007-02-07 17:54 --- > The status of the other patch is: Waiting for review. > http://gcc.gnu.org/ml/gcc-patches/2007-02/msg00260.html I can't do any regression-testing right now, because PR 30678 :-( -- http://gcc.gnu.org/bugzill

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-02-06 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2007-02-06 12:30 --- > I don't know what the status is of the other patch for MAXVAL/MINVAL, but we > should probably combine them into a single patch (in particular to ease the > backporting). The status of the other patch is: Waiting fo

[Bug libfortran/30694] minval/maxval with +/-Inf

2007-02-06 Thread fxcoudert at gcc dot gnu dot org
--- Comment #6 from fxcoudert at gcc dot gnu dot org 2007-02-06 12:12 --- (In reply to comment #5) > Min/maxval should return (for REAL): > +INF if there is an INF in the maxval argument array > -INF if there is a -INF in the minval argument array > NAN if the argument array only con