public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jv244 at cam dot ac dot uk" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38112] New: unneeded temporary Date: Fri, 14 Nov 2008 08:48:00 -0000 [thread overview] Message-ID: <bug-38112-6642@http.gcc.gnu.org/bugzilla/> (raw) since b is an allocatable without the target attribute, there is no way it can 'alias' a. No need for a temp thus SUBROUTINE S(a) INTEGER, POINTER, DIMENSION(:) :: a INTEGER, DIMENSION(:), ALLOCATABLE :: b ALLOCATE(b(10)) b(a)=1 END SUBROUTINE S gfortran -c -Warray-temporaries test.f90 test.f90:5.2: b(a)=1 1 Warning: Creating array temporary at (1) -- 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 OtherBugsDependingO 36854 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38112
next reply other threads:[~2008-11-14 8:48 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-14 8:48 jv244 at cam dot ac dot uk [this message] 2008-11-14 8:52 ` [Bug fortran/38112] " jv244 at cam dot ac dot uk 2008-11-18 20:02 ` pault at gcc dot gnu dot org 2010-02-22 5:49 ` pault at gcc dot gnu dot org 2010-02-22 8:58 ` burnus at gcc dot gnu dot org 2010-02-22 9:06 ` paul dot richard dot thomas at gmail dot com 2010-02-23 8:45 ` burnus at gcc dot gnu dot org 2010-02-24 6:46 ` pault at gcc dot gnu dot org 2010-05-09 20:51 ` dfranke at gcc dot gnu dot org 2010-05-25 20:52 ` mikael at gcc dot gnu dot org 2010-05-25 20:57 ` paul dot richard dot thomas at gmail dot com
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=bug-38112-6642@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).