From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32495 invoked by alias); 3 Apr 2006 11:20:54 -0000 Received: (qmail 32461 invoked by uid 48); 3 Apr 2006 11:20:51 -0000 Date: Mon, 03 Apr 2006 11:20:00 -0000 Subject: [Bug middle-end/27001] New: ICE with -fschedule-insns -fstack-protector-all X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg00162.txt.bz2 List-Id: The following code snippet causes an ICE on x86_64-unknown-linux-gnu when compiled with "-fschedule-insns -fstack-protector-all". This happens since 4.1.0 when -fstack-protector-all was introduced. ========================================================================= int foo(int i) { i /= i+1; return 0; } ========================================================================= bug.c: In function 'foo': bug.c:5: error: unable to find a register to spill in class 'AREG' bug.c:5: error: this is the insn: (insn 11 21 27 2 (parallel [ (set (reg:SI 1 dx [61]) (div:SI (reg:SI 1 dx [orig:63 i ] [63]) (reg:SI 2 cx [orig:59 D.1879 ] [59]))) (set (reg:SI 2 cx [62]) (mod:SI (reg:SI 1 dx [orig:63 i ] [63]) (reg:SI 2 cx [orig:59 D.1879 ] [59]))) (clobber (reg:CC 17 flags)) ]) 277 {*divmodsi4_nocltd} (nil) (expr_list:REG_DEAD (reg:SI 1 dx [orig:63 i ] [63]) (expr_list:REG_DEAD (reg:SI 2 cx [orig:59 D.1879 ] [59]) (expr_list:REG_UNUSED (reg:CC 17 flags) (expr_list:REG_UNUSED (reg:SI 2 cx [62]) (nil)))))) bug.c:5: internal compiler error: in spill_failure, at reload1.c:1912 Please submit a full bug report, [etc.] -- Summary: ICE with -fschedule-insns -fstack-protector-all Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27001