[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #7 from Thomas Koenig --- Fixed on trunk (only affected branch), closing.
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 --- Comment #6 from Thomas Koenig --- Author: tkoenig Date: Sun Jan 10 13:18:54 2016 New Revision: 232201 URL: https://gcc.gnu.org/viewcvs?rev=232201&root=gcc&view=rev Log: 2016-01-10 Thomas Koenig PR fortran/69154 * frontend-passes.c (in_where): New variable. (inline_matmul_assign): Don't try this if we are within a WHERE statement. (gfc_code_walker): Keep track of in_where. 2016-01-10 Thomas Koenig PR fortran/69154 * gfortran.dg/inline_matmul_12.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/inline_matmul_12.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/frontend-passes.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Thomas Koenig changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org --- Comment #5 from Thomas Koenig --- A quick fix is rather easy - don't do the matmul inlining within a WHERE block. We do the same thing already for function elimination.
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P4 CC||jakub at gcc dot gnu.org
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Thomas Koenig changed: What|Removed |Added Blocks||37131 --- Comment #4 from Thomas Koenig --- Inlined matmul is causing problems. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37131 [Bug 37131] inline matmul for small matrix sizes
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Joost VandeVondele changed: What|Removed |Added CC||Joost.VandeVondele at mat dot ethz ||.ch --- Comment #3 from Joost VandeVondele --- reduced MODULE m_numeric_tools INTEGER, PARAMETER :: dp=8 CONTAINS subroutine llsfit_svd(xx,yy,sigma,nfuncs,funcs,chisq,par,var,cov,info) real(dp),intent(in) :: xx(:),yy(:),sigma(:) real(dp),dimension(SIZE(xx)) :: bb,sigm1 real(dp) :: tmp(nfuncs) real(dp),allocatable :: work(:),Vt(:,:),U(:,:),S(:) WHERE (S>TOL_*MAXVAL(S)) tmp=MATMUL(bb,U)/S END WHERE end subroutine llsfit_svd END MODULE m_numeric_tools
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-01-06 Ever confirmed|0 |1 --- Comment #2 from Dominique d'Humieres --- > To check for an obvious suspect: > > What do you get if you compile with "-O0 -ffrontend-optimize" ? This gives the ICE. The test compiles with -O1 -fno-frontend-optimize. I see the ICE with r222875, but not with r222822. Likely revision r222864.
[Bug fortran/69154] [6 Regression] ICE in gfc_trans_where_2, at fortran/trans-stmt.c:5005 on *-linux
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment #1 from Thomas Koenig --- To check for an obvious suspect: What do you get if you compile with "-O0 -ffrontend-optimize" ?