public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/36928] array temporary for interleaving assignment
Date: Sat, 22 May 2010 10:11:00 -0000	[thread overview]
Message-ID: <20100522101112.26544.qmail@sourceware.org> (raw)
In-Reply-To: <bug-36928-10391@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from tkoenig at gcc dot gnu dot org  2010-05-22 10:11 -------
I've gotten a bit further with this.

For x(la:ua:sa) = x(lb,ub,sb), there can be no collision

if abs(la-lb) mod gcd(sa, sb) == 0

where gcd is the greatest common divisor.

This will at least fix the test case from comment #1, and also cases like

a(2:x:2) = a(1:y:4).

but will not work in the cases where there is partial overlap only.

Also, it would be nice to have complete simplification so that cases like

a(2*n**2+3*n+1:x:2) = a(2*n**2+3*n:x:2)

can be caught.


-- 


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


  parent reply	other threads:[~2010-05-22 10:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-25  6:55 [Bug fortran/36928] New: " tkoenig at gcc dot gnu dot org
2008-07-25  8:43 ` [Bug fortran/36928] " burnus at gcc dot gnu dot org
2008-11-14  8:27 ` jv244 at cam dot ac dot uk
2010-05-09 20:28 ` dfranke at gcc dot gnu dot org
2010-05-15 15:56 ` tkoenig at gcc dot gnu dot org
2010-05-15 17:06 ` dominiq at lps dot ens dot fr
2010-05-15 17:30 ` tkoenig at gcc dot gnu dot org
2010-05-15 18:01 ` dominiq at lps dot ens dot fr
2010-05-15 18:13 ` jvdelisle at gcc dot gnu dot org
2010-05-16  9:00 ` tkoenig at gcc dot gnu dot org
2010-05-16 10:31 ` rguenth at gcc dot gnu dot org
2010-05-22 10:11 ` tkoenig at gcc dot gnu dot org [this message]
2010-05-22 10:51 ` dominiq at lps dot ens dot fr
2010-05-22 21:20 ` tkoenig at gcc dot gnu dot org
2010-05-31 20:22 ` tkoenig at gcc dot gnu dot org
2010-06-01  5:30 ` [Bug fortran/36928] array temporary for interleaving assignment with non-constant start values tkoenig at gcc dot gnu dot org

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