From mboxrd@z Thu Jan 1 00:00:00 1970 From: aaronl@vitelus.com To: gcc-gnats@gcc.gnu.org Subject: optimization/4711: ICE in eliminate_regs, at reload1.c:2576 Date: Sat, 27 Oct 2001 12:26:00 -0000 Message-id: <20011027192403.20653.qmail@sourceware.cygnus.com> X-SW-Source: 2001-10/msg00595.html List-Id: >Number: 4711 >Category: optimization >Synopsis: ICE in eliminate_regs, at reload1.c:2576 >Confidential: no >Severity: critical >Priority: high >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sat Oct 27 12:26:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: aaronl@vitelus.com >Release: gcc version 3.1 20011027 (experimental) >Organization: >Environment: Linux endquote 2.4.9-ac10 #1 Fri Sep 14 00:02:50 PDT 2001 i686 unknown >Description: Hello, I notice that this bug has been reported many times, for example in #4555, #4387, #4384, #3835, #3214, and #2426. However, the bug reporting guidelines say to report new bugs as followups to old ones. I have developed a minimal test case that will reproduce "Internal compiler error in eliminate_regs, at reload1.c:2576": void testfunc(char* foo, int bar) { fd_set readfds; fd_set rfds = readfds; switch (bar) { case 0: break; default: if ((__extension__ ({register char __result; __asm__ __volatile__ ("btl %1,%2 ; setcb %b0" : "=q" (__result) : "r" (0), "m" (*(&rfds)->fds_bits) : "cc"); __result; }))) break; } } Compile this with -O[23s] and it will ICE. -O[01] will not cause it to. >How-To-Repeat: Compile the self-contained testcase contained in the description. >Fix: >Release-Note: >Audit-Trail: >Unformatted: