Also reported as http://bugs.debian.org/466613 An ICE appeared twice while trying to build webkit on s390. The first file fails to build with -O2 but is OK with -O1, for the second file it is just the opposite. $ gcc -v Using built-in specs. Target: s390-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 --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libmudflap --with-long-double-128 --enable-checking=release --build=s390-linux-gnu --host=s390-linux-gnu --target=s390-linux-gnu Thread model: posix gcc version 4.2.3 (Debian 4.2.3-1) $ g++ -c -O2 regexp_object.ii ../../../JavaScriptCore/kjs/regexp_object.cpp: In member function ‘KJS::JSObject* KJS::RegExpObjectImp::arrayOfMatches(KJS::ExecState*) const’: ../../../JavaScriptCore/kjs/regexp_object.cpp:333: error: insn does not satisfy its constraints: (insn 532 533 160 16 (set (reg:SI 2 %r2) (const_int -1146241297 [0xffffffffbbadbeef])) 56 {*movsi_esa} (nil) (nil)) ../../../JavaScriptCore/kjs/regexp_object.cpp:333: internal compiler error: in reload_cse_simplify_operands, at postreload.c:392 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>. $ g++ -c -O1 regexp_object.ii => OK $ g++ -c -O1 debugger.ii ../../../JavaScriptCore/wtf/HashTable.h: In member function ‘void WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::rehash(int) [with Key = int, Value = std::pair<int, KJS::ProtectedPtr<KJS::JSValue> >, Extractor = WTF::PairFirstExtractor<std::pair<int, KJS::ProtectedPtr<KJS::JSValue> > >, HashFunctions = WTF::IntHash<int>, Traits = WTF::PairHashTraits<WTF::HashTraits<int>, WTF::HashTraits<KJS::ProtectedPtr<KJS::JSValue> > >, KeyTraits = WTF::HashTraits<int>]’: ../../../JavaScriptCore/wtf/HashTable.h:856: error: insn does not satisfy its constraints: (insn 796 797 58 7 (set (reg:SI 2 %r2) (const_int -1146241297 [0xffffffffbbadbeef])) 56 {*movsi_esa} (nil) (nil)) ../../../JavaScriptCore/wtf/HashTable.h:856: internal compiler error: in reload_cse_simplify_operands, at postreload.c:392 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>. $ g++ -c -O2 debugger.ii ==> OK
Created attachment 15212 [details] First test case (fails with -O2)
Created attachment 15213 [details] Second test case (fails with -O1)
This problem has already been fixed for GCC 4.3 (#34641). The testcase from that PR didn't fail for GCC 4.2 so I didn't apply the patch on 4.2 as well. But now the patch should be fine for 4.2. I've verified that it fixes your testcase.
(In reply to comment #3) > This problem has already been fixed for GCC 4.3 (#34641). The testcase from > that PR didn't fail for GCC 4.2 so I didn't apply the patch on 4.2 as well. But > now the patch should be fine for 4.2. I've verified that it fixes your > testcase. I agree this patch should go into 4.2 as well.
Note the 4.2 branch is closing soon.
Closing 4.2 branch, fixed for 4.3.