From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11800 invoked by alias); 11 Sep 2010 20:59:35 -0000 Received: (qmail 11766 invoked by uid 48); 11 Sep 2010 20:59:23 -0000 Date: Sat, 11 Sep 2010 20:59:00 -0000 Message-ID: <20100911205923.11765.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/45633] [4.6 regression] internal compiler error: verify_stmts failed In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jojelino at gmail dot com" 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-09/txt/msg01465.txt.bz2 ------- Comment #4 from jojelino at gmail dot com 2010-09-11 20:59 ------- this causes ICE confirmed with gcc -O3 -msse2 -std=gnu99 reduced testcase typedef unsigned char uint8_t; typedef struct foo2 { int offset[4]; uint8_t* ref[4]; } foo2; int foo(const foo2 *fooval) { uint8_t *source[4] = { fooval->ref[0], fooval->ref[1], fooval->ref[2] }; int strides[4] = { fooval->offset[0], fooval->offset[1], fooval->offset[2] }; for (int i = 0; i < 4; i++) { strides[i] = -strides[i]; source[i] -= strides[i]; } return source[0]; } int main() { foo2 fool; int ret = foo(&fool); return ret; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45633