gcc-4.3.0 fails to compile with this message when compiling qt-4.3.4. gcc-4.1.3 can compile without fail. They are both natively running on sh4 board.
The message is very similar with Bug #36684. They may have the same root cause. g++ -c -include .pch/release-shared/QtGui -pipe -fno-exceptions -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -g -mieee -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qcolordialog.o dialogs/qcolordialog.cpp In file included from dialogs/qcolordialog.cpp:1717: dialogs/qcolordialog.cpp: In member function 'virtual QSize QColorPicker::sizeHint() const': dialogs/qcolordialog.cpp:834: error: unable to find a register to spill in class 'R0_REGS' dialogs/qcolordialog.cpp:834: error: this is the insn: (insn:HI 25 53 26 2 dialogs/qcolordialog.cpp:833 (set (reg:SI 1 r1 [orig:178 pHeight ] [178]) (mem/c/i:SI (plus:SI (reg/f:SI 1 r1 [175]) (reg:SI 12 r12)) [11 pHeight+0 S4 A32])) 172 {movsi_ie} (expr_list:REG_DEAD (reg/f:SI 1 r1 [175]) (nil))) dialogs/qcolordialog.cpp:834: confused by earlier errors, bailing out make[1]: *** [.obj/release-shared/qcolordialog.o] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/qt-x11-opensource-src-4.3.4/src/gui' # /usr/bin/gcc -v Using built-in specs. Target: sh4-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --build=sh4-redhat-linux Thread model: posix gcc version 4.3.0 20080404 (Red Hat 4.3.0-6.fs1.1) (GCC) -- Summary: [4.3 regression] qt-4.3.4 compile failure with message "unable to find a register to spill in class 'R0_REGS'" Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: masaki dot chikama at gmail dot com GCC build triplet: sh4-redhat-linux GCC host triplet: sh4-redhat-linux GCC target triplet: sh4-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36686