From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13461 invoked by alias); 11 Mar 2007 01:46:33 -0000 Received: (qmail 13445 invoked by uid 48); 11 Mar 2007 01:46:24 -0000 Date: Sun, 11 Mar 2007 01:46:00 -0000 Subject: [Bug c/31128] New: ICE with __builtin_stack_restore X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "nicholas at mxc dot ca" 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: 2007-03/txt/msg00911.txt.bz2 In a delta reduction from an ICE compiling code from LLVM's C backend, I get the following one-line testcase: void f() { __builtin_stack_restore(f); } $ gcc-4.1 b2.c -c b2.c: In function ‘foo’: b2.c:2: internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:165 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. For Debian GNU/Linux specific bug reporting instructions, see . Preprocessed source stored into /tmp/cc6cllgG.out file, please attach this to your bugreport. This fails with 4.1.2 and 4.0.4: $ gcc-4.1 -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) $ gcc-4.0 -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7) but passes with gcc 3.4 and 3.3. This bug may be related to bug 30095, except that this bug uses C not fortran, and this bug occurs on x86 not ppc. -- Summary: ICE with __builtin_stack_restore Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nicholas at mxc dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31128