public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46842] [4.6 Regression] 465.tonto test run miscompares (even with -O0) Date: Thu, 09 Dec 2010 13:43:00 -0000 [thread overview] Message-ID: <bug-46842-4-eA2cybAXh2@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46842-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46842 --- Comment #12 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-09 13:42:57 UTC --- The following is wrongly compiled - however, it is not a regression as it occurs since GCC 4.1. The solution is the same as for gfc_trans_arrayfunc_assign, where the same issue can occur. Cf. PR 44582. Due to the missing temporary, the array contains 88 88 88 88 instead of 88 1 88 3; the test case works with ifort, NAG and g95. (There is a slim chance that this is also the problem for Tonto as there was a time window in 4.6 where this optimization was never applied; it should have then also failed with 4.1 to 4.6.) integer :: a(2,2) a = reshape([1,2,3,4], [2,2]) call sub(transpose(a)) contains subroutine sub(x) integer :: x(:,:) a(1,:) = 88 a(2,:) = x(:,1) if ( any (a(:,1) /= [88, 1]) & .or.any (a(:,2) /= [88, 3])) then print *, a call abort() end if end subroutine sub end
next prev parent reply other threads:[~2010-12-09 13:43 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-07 21:59 [Bug fortran/46842] New: " changpeng.fang at amd dot com 2010-12-07 22:39 ` [Bug fortran/46842] " burnus at gcc dot gnu.org 2010-12-07 23:12 ` changpeng.fang at amd dot com 2010-12-08 0:21 ` dominiq at lps dot ens.fr 2010-12-08 0:50 ` changpeng.fang at amd dot com 2010-12-08 7:03 ` burnus at gcc dot gnu.org 2010-12-09 0:05 ` spop at gcc dot gnu.org 2010-12-09 0:07 ` spop at gcc dot gnu.org 2010-12-09 4:07 ` hjl.tools at gmail dot com 2010-12-09 4:09 ` [Bug fortran/46842] [4.6 Regression] " hjl.tools at gmail dot com 2010-12-09 5:55 ` hjl.tools at gmail dot com 2010-12-09 11:22 ` burnus at gcc dot gnu.org 2010-12-09 13:43 ` burnus at gcc dot gnu.org [this message] 2010-12-09 14:15 ` burnus at gcc dot gnu.org 2010-12-09 14:48 ` hjl.tools at gmail dot com 2010-12-09 16:41 ` burnus at gcc dot gnu.org 2010-12-09 22:50 ` [Bug fortran/46842] [4.6 Regression] wrong results with MATHMUL(..., TRANSPOSE (func ())) -- 465.tonto test run miscompares burnus at gcc dot gnu.org 2010-12-10 7:26 ` burnus at gcc dot gnu.org 2010-12-10 13:24 ` rguenth at gcc dot gnu.org 2010-12-10 13:38 ` Joost.VandeVondele at pci dot uzh.ch 2010-12-10 21:44 ` mikael at gcc dot gnu.org 2010-12-10 21:57 ` mikael at gcc dot gnu.org 2010-12-10 22:20 ` changpeng.fang at amd dot com 2010-12-11 13:00 ` [Bug fortran/46842] [4.6 Regression] wrong results with MATMUL(..., " dominiq at lps dot ens.fr 2010-12-11 17:13 ` jvdelisle at gcc dot gnu.org 2010-12-11 20:05 ` jvdelisle at gcc dot gnu.org 2010-12-11 20:10 ` jvdelisle at gcc dot gnu.org 2010-12-11 20:11 ` jvdelisle at gcc dot gnu.org 2010-12-11 20:36 ` jvdelisle at gcc dot gnu.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=bug-46842-4-eA2cybAXh2@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).