------- Comment #2 from Joost dot VandeVondele at pci dot uzh dot ch 2010-09-18 07:48 ------- reduced testcase:
> cat bug.f90 integer index(18),i,j,k,l,ipiv(18),info,ichange,neq,lda,ldb, & nrhs,iplas real*8 ep0(6),al10(18),al20(18),dg0(18),ep(6),al1(18), & al2(18),dg(18),ddg(18),xm(6,18),h(18,18),ck(18),cn(18), & c(18),d(18),phi(18),delta(18),r0(18),q(18),b(18),cphi(18), & q1(18),q2(18),stri(6),htri(18),sg(18),r(42),xmc(6,18),aux(18), & t(42),gl(18,18),gr(18,18),ee(6),c1111,c1122,c1212,dd, & skl(3,3),xmtran(3,3),ddsdde(6,6),xx(6,18) do do i=1,18 htri(i)=dabs(sg(i))-r0(i)-ck(i)*(dg(i)/dtime)**(1.d0/cn(i)) do j=1,18 enddo enddo do if(i.ne.j) then gr(index(i),1)=htri(i) endif call dgesv(neq,nrhs,gl,lda,ipiv,gr,ldb,info) enddo enddo end with slightly different bt: #0 0x00000000009aeb56 in vect_transform_stmt (stmt=0x7f588feacb28, gsi=0x7fffceb29b40, strided_store=0x7fffceb29b7f "", slp_node=0x0, slp_node_instance=<value optimized out>) at /data03/vondele/gcc_trunk/gcc/gcc/tree-vectorizer.h:315 #1 0x00000000009b5dd5 in vect_transform_loop (loop_vinfo=0x14570b0) at /data03/vondele/gcc_trunk/gcc/gcc/tree-vect-loop.c:4797 #2 0x00000000009c9275 in vectorize_loops () at /data03/vondele/gcc_trunk/gcc/gcc/tree-vectorizer.c:225 #3 0x00000000007bb69f in execute_one_pass (pass=0x128d680) at /data03/vondele/gcc_trunk/gcc/gcc/passes.c:1573 #4 0x00000000007bb995 in execute_pass_list (pass=0x128d680) at /data03/vondele/gcc_trunk/gcc/gcc/passes.c:1628 #5 0x00000000007bb9ad in execute_pass_list (pass=0x128d4a0) at /data03/vondele/gcc_trunk/gcc/gcc/passes.c:1629 #6 0x00000000007bb9ad in execute_pass_list (pass=0x128cae0) at /data03/vondele/gcc_trunk/gcc/gcc/passes.c:1629 #7 0x00000000008bfd06 in tree_rest_of_compilation (fndecl=0x7f588ff95d00) at /data03/vondele/gcc_trunk/gcc/gcc/tree-optimize.c:452 #8 0x0000000000a6c0b9 in cgraph_expand_function (node=0x7f588fda4000) at /data03/vondele/gcc_trunk/gcc/gcc/cgraphunit.c:1469 #9 0x0000000000a6fe99 in cgraph_optimize () at /data03/vondele/gcc_trunk/gcc/gcc/cgraphunit.c:1548 #10 0x0000000000a7027d in cgraph_finalize_compilation_unit () at /data03/vondele/gcc_trunk/gcc/gcc/cgraphunit.c:1012 #11 0x000000000077b5af in write_global_declarations () at /data03/vondele/gcc_trunk/gcc/gcc/langhooks.c:310 #12 0x00000000008631d3 in toplev_main (argc=22, argv=0x7fffceb29e98) at /data03/vondele/gcc_trunk/gcc/gcc/toplev.c:984 #13 0x00007f5890738436 in __libc_start_main () from /lib64/libc.so.6 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45714