From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17992 invoked by alias); 4 Jul 2011 20:36:37 -0000 Received: (qmail 17742 invoked by uid 22791); 4 Jul 2011 20:36:36 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_SV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jul 2011 20:36:16 +0000 From: "arthur.j.odwyer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49632] New: ICE in compute_affine_dependence (tree-data-ref.c:4038) with -O3 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arthur.j.odwyer 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 04 Jul 2011 20:36:00 -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 X-SW-Source: 2011-07/txt/msg00260.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49632 Summary: ICE in compute_affine_dependence (tree-data-ref.c:4038) with -O3 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: arthur.j.odwyer@gmail.com Created attachment 24683 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D24683 Output of "ajo-gcc -std=3Dc99 -w -march=3Dathlon64 -O3 -fcheck-data-deps te= st.c -v" Bug 49033 and/or bug 46851 might be related. This reproduces for me with svn revision 175547 (2011-06-30). It doesn't reproduce with gcc 4.5.1. I'm on Ubuntu 10.10, x86-64. cat >test.c <=3D 0; --g_123) { l_98[0][0] =3D (l_98[i][j+1] !=3D -l_98[i][0]) + (p * MUL(g_107 || l_98[0][1], 2*l_98[0][g_123+= 1]) || p); } l_98[i][j] =3D 0; } } } EOF gcc -std=3Dc99 -w -march=3Dathlon64 -O3 -fcheck-data-deps test.c (Number of distance vectors differ: Banerjee has 1, Omega has 2. Banerjee dist vectors: 0 1=20 Omega dist vectors: 0 1=20 0 -1=20 data dependence relation: (Data Dep:=20 #(Data Ref:=20 # bb: 18=20 # stmt: D.2624_83 =3D l_98[i_54][pretmp.10_69]; # ref: l_98[i_54][pretmp.10_69]; # base_object: l_98 # Access function 0: {1, +, 1}_2 # Access function 1: {0, +, 1}_1 #) #(Data Ref:=20 # bb: 29=20 # stmt: l_98[i_54][j_55] =3D 0; # ref: l_98[i_54][j_55]; # base_object: l_98 # Access function 0: {0, +, 1}_2 # Access function 1: {0, +, 1}_1 #) access_fn_A: {1, +, 1}_2 access_fn_B: {0, +, 1}_2 (subscript=20 iterations_that_access_an_element_twice_in_A: [1 + 1 * x_1] last_conflict: 4 iterations_that_access_an_element_twice_in_B: [0 + 1 * x_1] last_conflict: 4 (Subscript distance: 1 ) ) access_fn_A: {0, +, 1}_1 access_fn_B: {0, +, 1}_1 (subscript=20 iterations_that_access_an_element_twice_in_A: [0] last_conflict: scev_not_known; iterations_that_access_an_element_twice_in_B: [0] last_conflict: scev_not_known; (Subscript distance: 0 ) ) inner loop index: 1 loop nest: (1 2 ) distance_vector: 0 1=20 distance_vector: 0 -1=20 direction_vector: =3D + direction_vector: =3D - ) ) test.c: In function =E2=80=98func_95=E2=80=99: test.c:3:6: internal compiler error: in compute_affine_dependence, at tree-data-ref.c:4038 This test case is reduced from the output of Csmith 2.1.0 (git hash 01aa8b0= 4, https://github.com/Quuxplusone/csmith/), using the following command line: csmith --no-paranoid --no-longlong --no-pointers --arrays --no-jumps --no-consts --volatiles --checksum --divs --muls --no-bitfields --packed-st= ruct -s 1807040286