From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20716 invoked by alias); 20 Nov 2014 21:04:53 -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 20683 invoked by uid 48); 20 Nov 2014 21:04:50 -0000 From: "sasha.levin at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64004] New: [5 Regressio] Build error in tree-ssa-loop-niter.c in maybe_lower_iteration_bound Date: Thu, 20 Nov 2014 21:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sasha.levin at oracle 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: 2014-11/txt/msg02319.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64004 Bug ID: 64004 Summary: [5 Regressio] Build error in tree-ssa-loop-niter.c in maybe_lower_iteration_bound Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sasha.levin at oracle dot com CC: ams at gcc dot gnu.org I'm seeing the following build error: ../../gcc/tree-ssa-loop-niter.c: In function =E2=80=98void maybe_lower_iteration_bound(loop*)=E2=80=99: ../../gcc/tree-ssa-loop-niter.c:3420:38: error: =E2=80=98struct vec=E2=80=99 has no member named =E2=80=98empty=E2= =80=99=20=20 if (exit_warned && !problem_stmts.empty ())=20=20 ^=20=20 make[3]: *** [tree-ssa-loop-niter.o] Error 1 Configuration used (on amd64): ../configure --prefix=3D/home/sasha/gcc-inst/ --with-arch=3Dnative --with-tune=3Dnative --enable-languages=3Dc --enable-lto --enable-gold --enable-stage1-languages=3Dc Seems to be introduced by commit: commit f18e93a8e53abb42cdcb344d966808be2505a9dc=20=20 Author: ams =20=20 Date: Thu Nov 20 20:22:54 2014 +0000=20=20 Warn on undefined loop exit.=20=20 2014-11-20 Andrew Stubbs =20=20 gcc/=20=20 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a lo= op=20=20 condition would be removed due to undefined behaviour.=20=20 gcc/testsuite/=20=20 * gcc.dg/undefined-loop-1.c: New file.=20=20 * gcc.dg/undefined-loop-2.c: New file.=20=20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217891 138bc75d-0d04-0410-961f-82ee72b054a4 >>From gcc-bugs-return-467848-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Nov 20 21:14:38 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29849 invoked by alias); 20 Nov 2014 21:14: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 29787 invoked by uid 48); 20 Nov 2014 21:14:34 -0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63673] VSX intrinsic vec_vsx_ld fails to compile with double, maps to wrong instructions with float Date: Thu, 20 Nov 2014 21:14: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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt at gcc dot gnu.org X-Bugzilla-Status: RESOLVED 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: cf_gcctarget bug_status cc resolution 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: 2014-11/txt/msg02320.txt.bz2 Content-length: 1139 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63673 Bill Schmidt changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc |powerpc64le-unknown-linux-g | |nu Status|UNCONFIRMED |RESOLVED CC| |wschmidt at gcc dot gnu.org Resolution|--- |INVALID --- Comment #3 from Bill Schmidt --- The case using doubles is user error. You have violated the type system. You should instead use: vector double v = vec_vsx_ld(8, (vector double *)d); // should load {1.0, 2.0\ } The case using floats is not an error. You are compiling for little-endian, and the lxvw4x instruction loads the vector elements in big-endian order (element 0 on the left). The sequence: lxvd2x 0,9,10 xxpermdi 0,0,0,2 causes the vector elements to be loaded in little-endian order (element 0 on the right).