From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6344 invoked by alias); 24 May 2013 10:17:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6320 invoked by uid 48); 24 May 2013 10:17:55 -0000 From: "bugs at stellardeath dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57396] Wrong code with -fpredictive-commoning in Fortran double-loop Date: Fri, 24 May 2013 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugs at stellardeath dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg01710.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57396 --- Comment #1 from Lorenz H=C3=BCdepohl --- As the loop is quite confusing, i wrote a small python program to reproduce= the correct result: > cat test.py def foo(n): r =3D {} a =3D {} # initialize with some dummy values for i in range(-n, n + 1): for j in range(-n, n + 1): a[(i,j)] =3D j r[(i,j)] =3D j + 1 # here be dragons for k in range(0, n + 1): dj =3D r[(k, k - 2)] * a[(k, k - 2)] r[(k,k)] =3D a[(k, k - 1)] * dj # print it out print "{0:12.8f}".format(r[(0,0)]) foo(5) > python ./test.py -2.00000000 > >>From gcc-bugs-return-423038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 24 10:50:38 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25485 invoked by alias); 24 May 2013 10:50:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25448 invoked by uid 48); 24 May 2013 10:50:32 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56991] constexpr std::initializer_list rejects too complex initialization Date: Fri, 24 May 2013 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg01711.txt.bz2 Content-length: 752 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56991 --- Comment #4 from Daniel Kr=C3=BCgler --- (In reply to Matheus Izvekov from comment #2) > I get also a similar bug: >=20 > #include >=20 > //is accepted by gcc > constexpr std::initializer_list good1 =3D { 1, 2, 3 }; >=20 > struct foo { int a, b; }; >=20 > //still ok > constexpr foo good2 =3D { 1, 2 }; >=20 > //gcc rejects this > constexpr std::initializer_list bad =3D { { 1, 2 }, { 3, 4} }; A variation of the last line also produces the same error: constexpr std::initializer_list bad2 =3D { good2, good2 }; I can confirm that the error also occurs for the trunk, tested with gcc 4.9= .0 20130519 (experimental). >>From gcc-bugs-return-423039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 24 10:51:57 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27942 invoked by alias); 24 May 2013 10:51:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27906 invoked by uid 48); 24 May 2013 10:51:54 -0000 From: "jasonwucj at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57377] compiler cannot be built with RTL checking Date: Fri, 24 May 2013 10:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jasonwucj at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg01712.txt.bz2 Content-length: 600 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57377 Chung-Ju Wu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jasonwucj at gmail dot com --- Comment #1 from Chung-Ju Wu --- The s390 maintainer provided a patch to this problem: http://gcc.gnu.org/ml/gcc-patches/2013-05/msg01364.html He also added documentation for the mnemonic attribute: http://gcc.gnu.org/ml/gcc-patches/2013-05/msg01436.html