public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/44442] Useless temporary with RESHAPE
Date: Wed, 09 Jun 2010 20:58:00 -0000	[thread overview]
Message-ID: <20100609205752.31895.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44442-12313@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from dominiq at lps dot ens dot fr  2010-06-09 20:57 -------
(In reply to comment #2)
> This is a known limitation of array constructors handling by gfortran.

I was about to ask if this pr is a duplicate. From comment #3, it is; so I am
closing it as such.
For the record the optimized dump (with 4.6) reads:

...

  atmp.6.dtype = 521;
  atmp.6.dim[0].stride = 1;
  atmp.6.dim[0].lbound = 0;
  atmp.6.dim[0].ubound = 1;
  atmp.6.data = &A.7;
  atmp.6.offset = 0;
  A.7[0] = 5;
  A.7[1] = 4;
  _gfortran_reshape_r4 (&parm.1, &parm.2, &atmp.6, 0B, 0B);
...

So one temporary is removed with optimization.


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


-- 

dominiq at lps dot ens dot fr changed:

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


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


      parent reply	other threads:[~2010-06-09 20:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-07 11:36 [Bug fortran/44442] New: " dominiq at lps dot ens dot fr
2010-06-07 13:50 ` [Bug fortran/44442] " dominiq at lps dot ens dot fr
2010-06-07 15:59 ` mikael at gcc dot gnu dot org
2010-06-09 19:45 ` dfranke at gcc dot gnu dot org
2010-06-09 20:58 ` dominiq at lps dot ens dot fr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100609205752.31895.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).