From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17940 invoked by alias); 29 Jun 2010 22:04:46 -0000 Received: (qmail 17480 invoked by uid 48); 29 Jun 2010 22:04:29 -0000 Date: Tue, 29 Jun 2010 22:04:00 -0000 Message-ID: <20100629220429.17479.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/44545] [4.5/4.6 Regression] internal compiler error: in remove_unreachable_handlers, at tree-eh In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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-06/txt/msg02876.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2010-06-29 22:04 ------- Reduced even further: int DrawChunk(int *tabSize, int x) { const int numEnds = 10; int ends[numEnds + 2]; if (*tabSize > 0) { x -= 5; x = (x + *tabSize) / *tabSize; } } --- CUT --- Compile with -O2 -fstack-check -fnon-call-exceptions -ftrapv -fexceptions (the last option is needed for C front-end). As far as I can tell the reassoication pass causes the ICE. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Keywords| |ice-on-valid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44545