From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3542 invoked by alias); 14 Dec 2010 19:19:09 -0000 Received: (qmail 3532 invoked by uid 22791); 14 Dec 2010 19:19:08 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 14 Dec 2010 19:19:02 +0000 From: "spop at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/45552] [graphite] ICE in sese_loop_depth, at sese.h:172 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: spop at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: spop at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 14 Dec 2010 19:19: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: 2010-12/txt/msg01636.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45552 --- Comment #4 from Sebastian Pop 2010-12-14 19:18:56 UTC --- Reduced testcase: typedef struct { double z; } Vector; typedef struct { float *vertex; float *normal; } VertexArray; typedef struct { Vector *vertex; int num_vertex; } ObjectSmooth; typedef struct { int num_cells; } State; static void *array_from_ObjectSmooth( ObjectSmooth *obj ) { int i, j; VertexArray *array = (VertexArray *) malloc( sizeof( VertexArray ) ); array->vertex = (float *) malloc( 3*sizeof(float)*obj->num_vertex ); array->normal = (float *) malloc( 3*sizeof(float)*obj->num_vertex ); for (i=0, j=0; inum_vertex; ++i) { array->normal[j++] = 9; array->vertex[j] = obj->vertex[i].z; array->normal[j++] = 1; } } static void draw_cell( void ) { glCallList( array_from_ObjectSmooth( (ObjectSmooth *) malloc(10) )); } static int render( State *st) { int b; for (b=0; bnum_cells; ++b) { draw_cell(); draw_cell(); } } reshape_glcells( int width, int height ) { render( 0 ); }