gcc-4.3.0 fails to compile with this message when compiling 
expect-5.43.0. gcc-4.1.3 can compile without fail.
They are both natively running on sh4 board.


           gcc -c  -I. -I. -I/usr/include/tcl-private/generic  
-DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/usr/share/tcl8.5/expect5.43\"
-DEXECSCRIPTDIR=\"/usr/lib/tcl8.5/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST
-DSTTY_BIN=\"/bin/stty\" -O2 -g -mieee -O2 -g -mieee -pipe  -fPIC
-DDFLT_STTY="\"sane\""  Dbg.c -o shared/Dbg.o ; \
        fi
Dbg.c: In function 'Dbg_Interactor':
Dbg.c:1071: error: unable to find a register to spill in class 'R0_REGS'
Dbg.c:1071: error: this is the insn:
(insn:HI 31 50 51 4 Dbg.c:1069 (set (mem/f/c/i:SI (plus:SI (reg/f:SI 3 r3
[186])                (reg:SI 12 r12)) [22 interdata+0 S4 A32])
        (reg/v/f:SI 6 r6 [orig:165 data ] [165])) 172 {movsi_ie}
(expr_list:REG_DEAD (reg/f:SI 3 r3 [186])
        (expr_list:REG_DEAD (reg/v/f:SI 6 r6 [orig:165 data ] [165])
            (nil))))
Dbg.c:1071: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccjGJhgH.out file, please attach this to
your bugreport.
make: *** [Dbg.o] Error 1

# /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] 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=36684

Reply via email to