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/44235] array temporary with high upper bound Date: Sun, 08 Aug 2010 22:41:00 -0000 [thread overview] Message-ID: <20100808224057.28437.qmail@sourceware.org> (raw) In-Reply-To: <bug-44235-10391@http.gcc.gnu.org/bugzilla/> ------- Comment #11 from tkoenig at gcc dot gnu dot org 2010-08-08 22:40 ------- (In reply to comment #10) > > This patch seems to work, and do more or less the right thing. > > No counter-example of that!-) thanks. That's good. > > It inserts the upper bound only for strides not equal to one. > > I am unable to follow the code. Do you mean that you are putting the section in > some canonical form with the minimal value of 'end'? That is correct. If the stride is not equal to one, and if the size can be calculated at compile-time (which the call to gfc_ref_dimen_size checks, and does), then the end of the array reference is set to the minimum. I extended that function to also calculate the end. > What puzzle me is that I > do not see any division, is it hidden in the gmp calls? The division is handled in gfc_ref_dimen_size, where I simply used the size calculatd there to also calculate the minimum end. You'll find the division there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44235
next prev parent reply other threads:[~2010-08-08 22:41 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-21 21:46 [Bug fortran/44235] New: " 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 [this message] 2010-08-09 19:35 ` tkoenig at gcc dot gnu dot org 2010-08-27 12:12 ` 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=20100808224057.28437.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: 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).