public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23092] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
@ 2006-02-08 22:15 ` fxcoudert at gcc dot gnu dot org
  2006-02-11 21:36 ` tkoenig at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-02-08 22:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2006-02-08 22:15 -------
The same code fails also with minval replaced by sum or product.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-01-27 20:42:36         |2006-02-08 22:15:37
               date|                            |
            Summary|scalar mask for             |scalar mask for
                   |minval/maxval               |minval/maxval/sum/product


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


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

* [Bug fortran/23092] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
  2006-02-08 22:15 ` [Bug fortran/23092] scalar mask for minval/maxval/sum/product fxcoudert at gcc dot gnu dot org
@ 2006-02-11 21:36 ` tkoenig at gcc dot gnu dot org
  2006-02-25 13:02 ` tkoenig at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-11 21:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2006-02-11 21:36 -------
Created an attachment (id=10824)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10824&action=view)
patch for product

Here's a patch for the product/sum case.  minval/maxval could
be fixed along the same lines, but the code path is differnent, but
I still have to figure out what to do for the mask=.false. case.


-- 


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


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

* [Bug fortran/23092] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
  2006-02-08 22:15 ` [Bug fortran/23092] scalar mask for minval/maxval/sum/product fxcoudert at gcc dot gnu dot org
  2006-02-11 21:36 ` tkoenig at gcc dot gnu dot org
@ 2006-02-25 13:02 ` tkoenig at gcc dot gnu dot org
  2006-03-05 20:03 ` [Bug fortran/23092] [4.1 only] " tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-02-25 13:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tkoenig at gcc dot gnu dot org  2006-02-25 10:32 -------
Subject: Bug 23092

Author: tkoenig
Date: Sat Feb 25 10:32:19 2006
New Revision: 111438

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111438
Log:
2006-02-25  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/23092
        * trans-intrinsic.c (gfc_conv_intrinsic_arith):  If the
        mask expression exists and has rank 0, enclose the generated
        loop in an "if (mask)".
        * (gfc_conv_intrinsic_minmaxloc):  Likewise.

2006-02-25  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/23092
        * scalar_mask_1.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/scalar_mask_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/23092] [4.1 only] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-02-25 13:02 ` tkoenig at gcc dot gnu dot org
@ 2006-03-05 20:03 ` tkoenig at gcc dot gnu dot org
  2006-03-05 20:03 ` tkoenig at gcc dot gnu dot org
  2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-03-05 20:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tkoenig at gcc dot gnu dot org  2006-03-05 20:03 -------
Fixed on 4.1.

Closing.


-- 

tkoenig at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/23092] [4.1 only] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-03-05 20:03 ` [Bug fortran/23092] [4.1 only] " tkoenig at gcc dot gnu dot org
@ 2006-03-05 20:03 ` tkoenig at gcc dot gnu dot org
  2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2006-03-05 20:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from tkoenig at gcc dot gnu dot org  2006-03-05 20:03 -------
Subject: Bug 23092

Author: tkoenig
Date: Sun Mar  5 20:03:08 2006
New Revision: 111742

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111742
Log:
2006-03-05  Thomas Koenig <Thomas.Koenig@online.de>

        PR fortran/23092
        backport from mainline
        * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc):
        If the mask expression exists and has rank 0, enclose the
        generated loop in an "if (mask)".  Put the default
        initialization into the else branch.
        * trans-intrinsic.c (gfc_conv_intrinsic_arith):  If the
        mask expression exists and has rank 0, enclose the generated
        loop in an "if (mask)".
        * (gfc_conv_intrinsic_minmaxloc):  Likewise.

2006-03-05  Thomas Koenig  <Thomas.Koenig@online.de>

        PR fortran/23092
        backport from mainline
        * gfortran.dg/scalar_mask_1.f90:  New test.



Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/scalar_mask_1.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/trans-intrinsic.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/23092] [4.1 only] scalar mask for minval/maxval/sum/product
       [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-03-05 20:03 ` tkoenig at gcc dot gnu dot org
@ 2006-03-14  1:24 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14  1:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.1


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


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

end of thread, other threads:[~2006-03-14  1:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23092-10391@http.gcc.gnu.org/bugzilla/>
2006-02-08 22:15 ` [Bug fortran/23092] scalar mask for minval/maxval/sum/product fxcoudert at gcc dot gnu dot org
2006-02-11 21:36 ` tkoenig at gcc dot gnu dot org
2006-02-25 13:02 ` tkoenig at gcc dot gnu dot org
2006-03-05 20:03 ` [Bug fortran/23092] [4.1 only] " tkoenig at gcc dot gnu dot org
2006-03-05 20:03 ` tkoenig at gcc dot gnu dot org
2006-03-14  1:24 ` 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).