public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54613] New: [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=
@ 2012-09-18  7:41 burnus at gcc dot gnu.org
  2012-09-18  9:17 ` [Bug fortran/54613] " burnus at gcc dot gnu.org
  2012-09-18  9:25 ` dominiq at lps dot ens.fr
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-18  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54613
           Summary: [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC
                    with KIND=/BACK=
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Fortran 2003 (cf. PR 29600) added KIND= to MINLOC/MAXLOC, Fortran 2008 added
BACK=. Additionally, Fortran 2008 added FINDLOC with a similar syntax.

See also James' post in "binary data"
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/GpaACNKn0Ds

"As can be seen from the commented out code, gfortran does not yet
 implement the BACK= argument for the MAXLOC and MINLOC intrinsics,
 doesn't yet implement MAXLOC, MAXVAL, MINLOC, MINVAL for constant
 expressions and doesn't implement FINDLOC at all."

See also his comments in
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/5eAz5ns6AG0



The first step is to implement the run-time version, i.e. extending
MINLOC/MAXLOC and adding FINDLOC.

(trans-intrinsic.c version, frontend-optimization.c and the library version,
possibly such that one doesn't cause an explosion of the intrinsics, e.g. only
returning default + index-type? If so, one needs to have a RANGE_REF copy for
the array results - and for the MASK argument.)


As a next step, one has to think of the compile-time simplification of
{MIN,MAX}{VAL,LOC},FINDLOC.


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

* [Bug fortran/54613] [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=
  2012-09-18  7:41 [Bug fortran/54613] New: [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK= burnus at gcc dot gnu.org
@ 2012-09-18  9:17 ` burnus at gcc dot gnu.org
  2012-09-18  9:25 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-18  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-18 09:17:25 UTC ---
Created attachment 28211
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28211
Very preliminary patch for MAXLOC/MINLOC

Very preliminary patch for the MAXLOC/MINLOC support; i.e. documentation and
resolving plus identifying the spot (and needed changes) for trans-intrinsic.c.
Implementing the latter and in particular the library support are still
lacking. (As is FINDLOC.)


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

* [Bug fortran/54613] [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=
  2012-09-18  7:41 [Bug fortran/54613] New: [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK= burnus at gcc dot gnu.org
  2012-09-18  9:17 ` [Bug fortran/54613] " burnus at gcc dot gnu.org
@ 2012-09-18  9:25 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-09-18  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-18
     Ever Confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-09-18 09:25:36 UTC ---
This PR seems related to pr25104 and pr45689.


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

end of thread, other threads:[~2012-09-18  9:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-18  7:41 [Bug fortran/54613] New: [F2003/F2008] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK= burnus at gcc dot gnu.org
2012-09-18  9:17 ` [Bug fortran/54613] " burnus at gcc dot gnu.org
2012-09-18  9:25 ` dominiq at lps dot ens.fr

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