public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36935]  New: unneeded temporary
@ 2008-07-25 13:38 jv244 at cam dot ac dot uk
  2008-07-25 14:19 ` [Bug fortran/36935] " dfranke at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-07-25 13:38 UTC (permalink / raw)
  To: gcc-bugs

integer :: a(3)
a=(/i,j,k/)
END


-- 
           Summary: unneeded temporary
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/36935] unneeded temporary
  2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
@ 2008-07-25 14:19 ` dfranke at gcc dot gnu dot org
  2008-07-25 14:27 ` jv244 at cam dot ac dot uk
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-07-25 14:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dfranke at gcc dot gnu dot org  2008-07-25 14:18 -------
Reads similar to http://gcc.gnu.org/ml/fortran/2008-07/msg00163.html

PaulT wrote:
>  pt = point((/ x, y, z /))
>            1
> Warning: Creating array temporary at (1)

This will always occur where an array actual argument is not a
contiguous section of a variable.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/36935] unneeded temporary
  2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
  2008-07-25 14:19 ` [Bug fortran/36935] " dfranke at gcc dot gnu dot org
@ 2008-07-25 14:27 ` jv244 at cam dot ac dot uk
  2008-07-26 20:29 ` tkoenig at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-07-25 14:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2008-07-25 14:26 -------
(In reply to comment #1)
> Reads similar to http://gcc.gnu.org/ml/fortran/2008-07/msg00163.html
> 
> PaulT wrote:
> >  pt = point((/ x, y, z /))
> >            1
> > Warning: Creating array temporary at (1)
> 
> This will always occur where an array actual argument is not a
> contiguous section of a variable.
> 

It is similar, but I believe Paul might have misread your example. His comment
would but right if point were a function call, but it is not. I believe a temp
shouldn't be created in your example.


-- 


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


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

* [Bug fortran/36935] unneeded temporary
  2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
  2008-07-25 14:19 ` [Bug fortran/36935] " dfranke at gcc dot gnu dot org
  2008-07-25 14:27 ` jv244 at cam dot ac dot uk
@ 2008-07-26 20:29 ` tkoenig at gcc dot gnu dot org
  2008-08-17  0:07 ` [Bug fortran/36935] unneeded temporary for array constructor pinskia at gcc dot gnu dot org
  2009-01-04  0:21 ` dfranke at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2008-07-26 20:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tkoenig at gcc dot gnu dot org  2008-07-26 20:28 -------
Confirmed.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tkoenig at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-07-26 20:28:54
               date|                            |


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


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

* [Bug fortran/36935] unneeded temporary for array constructor
  2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2008-07-26 20:29 ` tkoenig at gcc dot gnu dot org
@ 2008-08-17  0:07 ` pinskia at gcc dot gnu dot org
  2009-01-04  0:21 ` dfranke at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-17  0:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug fortran/36935] unneeded temporary for array constructor
  2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2008-08-17  0:07 ` [Bug fortran/36935] unneeded temporary for array constructor pinskia at gcc dot gnu dot org
@ 2009-01-04  0:21 ` dfranke at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-01-04  0:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dfranke at gcc dot gnu dot org  2009-01-04 00:20 -------


*** This bug has been marked as a duplicate of 33341 ***


-- 

dfranke at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-01-04  0:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-25 13:38 [Bug fortran/36935] New: unneeded temporary jv244 at cam dot ac dot uk
2008-07-25 14:19 ` [Bug fortran/36935] " dfranke at gcc dot gnu dot org
2008-07-25 14:27 ` jv244 at cam dot ac dot uk
2008-07-26 20:29 ` tkoenig at gcc dot gnu dot org
2008-08-17  0:07 ` [Bug fortran/36935] unneeded temporary for array constructor pinskia at gcc dot gnu dot org
2009-01-04  0:21 ` dfranke 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).