public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44235]  New: array temporary with high upper bound
@ 2010-05-21 21:46 tkoenig at gcc dot gnu dot org
  2010-05-22  8:20 ` [Bug fortran/44235] " tkoenig at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2010-05-21 21:46 UTC (permalink / raw)
  To: gcc-bugs

subroutine foo(a, b)
  real :: a(10), b(10)
  a(1:4:2) = a(2:4:2)
  b(1:3:2) = b(2:4:2)
end subroutine foo
ig25@linux-fd1f:/tmp> gfortran -c -Warray-temporaries dep.f90
dep.f90:3.13:

  a(1:4:2) = a(2:4:2)
             1
Warnung: Creating array temporary at (1)

The upper bound of '4' in the first array assingment is no different
from '3'; the generation of the array temporary should be based on
the number of iterations, not the upper bound.


-- 
           Summary: array temporary with high upper bound
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org
OtherBugsDependingO 36854
             nThis:


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


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

end of thread, other threads:[~2010-08-27 12:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21 21:46 [Bug fortran/44235] New: array temporary with high upper bound tkoenig at gcc dot gnu dot org
2010-05-22  8:20 ` [Bug fortran/44235] " tkoenig at gcc dot gnu dot org
2010-06-04 22:40 ` tkoenig at gcc dot gnu dot org
2010-07-01 20:23 ` dominiq at lps dot ens dot fr
2010-08-06 21:24 ` steven at gcc dot gnu dot org
2010-08-06 21:34 ` dominiq at lps dot ens dot fr
2010-08-06 22:49 ` dominiq at lps dot ens dot fr
2010-08-07  9:01 ` dominiq at lps dot ens dot fr
2010-08-07 11:17 ` tkoenig at gcc dot gnu dot org
2010-08-07 13:40 ` dominiq at lps dot ens dot fr
2010-08-08 16:08 ` tkoenig at gcc dot gnu dot org
2010-08-08 20:09 ` dominiq at lps dot ens dot fr
2010-08-08 22:41 ` tkoenig at gcc dot gnu dot org
2010-08-09 19:35 ` tkoenig at gcc dot gnu dot org
2010-08-27 12:12 ` tkoenig 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).