From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2554 invoked by alias); 27 Jun 2013 15:56:32 -0000 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 Received: (qmail 2489 invoked by uid 48); 27 Jun 2013 15:56:27 -0000 From: "Martin.Jansa at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57735] New: ICE with -mtune=xscale (error: could not split insn) when building webkit Date: Thu, 27 Jun 2013 15:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Martin.Jansa at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg01686.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57735 Bug ID: 57735 Summary: ICE with -mtune=xscale (error: could not split insn) when building webkit Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Martin.Jansa at gmail dot com Created attachment 30391 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30391&action=edit JSGlobalObjectFunctions.cpp.tar.bz2 I'll try to attach smaller test-case later, but real-world reproducer follows: /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/xscalete-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ -v Using built-in specs. COLLECT_GCC=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/xscalete-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ COLLECT_LTO_WRAPPER=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/xscalete-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.8.1/lto-wrapper Target: arm-oe-linux-gnueabi Configured with: /OE/shr-core/tmp-eglibc/work-shared/gcc-4.8.1-r0/gcc-4.8.1/configure --build=x86_64-linux --host=x86_64-linux --target=arm-oe-linux-gnueabi --prefix=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr --exec_prefix=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr --bindir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/xscalete-oe-linux-gnueabi --sbindir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/xscalete-oe-linux-gnueabi --libexecdir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/xscalete-oe-linux-gnueabi --datadir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/share --sysconfdir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/etc --sharedstatedir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/com --localstatedir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/var --libdir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/xscalete-oe-linux-gnueabi --includedir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include --oldincludedir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include --infodir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/share/info --mandir=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-oe-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-float=soft --with-gxx-include-dir=/OE/shr-core/tmp-eglibc/sysroots/spitz/usr/include/c++ --with-sysroot=/OE/shr-core/tmp-eglibc/sysroots/spitz --with-build-sysroot=/OE/shr-core/tmp-eglibc/sysroots/spitz --enable-poison-system-directories --disable-libunwind-exceptions --with-mpfr=/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr --with-system-zlib --disable-nls Thread model: posix gcc version 4.8.1 (GCC) /OE/shr-core/tmp-eglibc/work/xscalete-oe-linux-gnueabi/webkit-efl/1.9.3+svnr120144-r3/src/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:150:1: error: could not split insn } ^ (insn 505 8094 507 (set (reg:SI 1 r1 [orig:494 D.142559 ] [494]) (plus:SI (reg/v:SI 5 r5 [orig:157 character ] [157]) (const_int -17179934720 [0xfffffffbffff0000]))) /OE/shr-core/tmp-eglibc/work/xscalete-oe-linux-gnueabi/webkit-efl/1.9.3+svnr120144-r3/src/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:108 5 {*arm_addsi3} (nil)) /OE/shr-core/tmp-eglibc/work/xscalete-oe-linux-gnueabi/webkit-efl/1.9.3+svnr120144-r3/src/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:150:1: internal compiler error: in final_scan_insn, at final.c:2897 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. {standard input}: Assembler messages: {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive Removing -mtune=xscale is enough to pass that (the same source builds fine for other devices I'm using), using -mtune=arm926ej-s also works. Attached archive contains 3 files: -rw-r--r-- 1 bitbake bitbake 1932165 Jun 27 17:37 CMakeFiles/javascriptcore_efl.dir/runtime/JSGlobalObjectFunctions.cpp.E # preprocessed source -rw-r--r-- 1 bitbake bitbake 3809 Jun 27 17:45 CMakeFiles/javascriptcore_efl.dir/runtime/JSGlobalObjectFunctions.cpp.cmd # command line used -rw-r--r-- 1 bitbake bitbake 28308 Jun 27 17:46 CMakeFiles/javascriptcore_efl.dir/runtime/JSGlobalObjectFunctions.cpp.log # output with couple of warnings before that ICE Sorry for packing it, I wasn't sure if you would prefer 2MB preprocessed attachment.