http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50928



--- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> 2012-11-03 17:22:30 
UTC ---

xgcc (GCC) 4.8.0 20121103 (experimental) [trunk revision 193124]



Now fails just building libgcc with what appears to be the same error.



Short command line for preprocessed source I will attach



 /home/joel/v850/tools/b-gcc-svn/./gcc/xgcc

-B/home/joel/v850/tools/b-gcc-svn/./gcc/ -c m32c_bug.c -O2 -mcpu=m32cm



At -O0, it compiles



Full command line:



/home/joel/v850/tools/b-gcc-svn/./gcc/xgcc

-B/home/joel/v850/tools/b-gcc-svn/./gcc/ -nostdinc

-B/home/joel/v850/tools/b-gcc-svn/m32c-rtems4.11/newlib/ -isystem

/home/joel/v850/tools/b-gcc-svn/m32c-rtems4.11/newlib/targ-include -isystem

/home/joel/v850/tools/gcc-svn/newlib/libc/include

-B/home/joel/v850/install/m32c-rtems4.11/bin/

-B/home/joel/v850/install/m32c-rtems4.11/lib/ -isystem

/home/joel/v850/install/m32c-rtems4.11/include -isystem

/home/joel/v850/install/m32c-rtems4.11/sys-include    -g -O2 -mcpu=m32cm -O2

-I../../../../gcc-svn/libgcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC

-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual

-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem

./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector

-Dinhibit_libc  -I. -I. -I../../.././gcc -I../../../../gcc-svn/libgcc

-I../../../../gcc-svn/libgcc/. -I../../../../gcc-svn/libgcc/../gcc

-I../../../../gcc-svn/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o

_ffssi2.o -MT _ffssi2.o -MD -MP -MF _ffssi2.dep -DL_ffssi2 -c

../../../../gcc-svn/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS

../../../../gcc-svn/libgcc/libgcc2.c: In function '__ffssi2':

../../../../gcc-svn/libgcc/libgcc2.c:524:1: error: unable to find a register to

spill in class 'A_REGS'

 }

 ^

../../../../gcc-svn/libgcc/libgcc2.c:524:1: error: this is the insn:

(insn 58 56 59 10 (set (reg:HI 0 r0 [orig:26 D.2772 ] [26])

        (zero_extend:HI (mem/u/j:QI (plus:PSI (subreg:PSI (reg:SI 68 [ D.2773

]) 0)

                    (symbol_ref:PSI ("__clz_tab") [flags 0x40] <var_decl

0xb77dc5c0 __clz_tab>)) [0 __clz_tab S1 A8])))

../../../../gcc-svn/libgcc/libgcc2.c:522 115 {zero_extendqihi2}

     (expr_list:REG_DEAD (reg:SI 68 [ D.2773 ])

        (nil)))

../../../../gcc-svn/libgcc/libgcc2.c:524:1: internal compiler error: in

spill_failure, at reload1.c:2124

0x849f565 _fatal_insn(char const*, rtx_def const*, char const*, int, char

const*)

    ../../gcc-svn/gcc/rtl-error.c:110

0x849f2c3 spill_failure

    ../../gcc-svn/gcc/reload1.c:2124

0x849f2c3 find_reload_regs

    ../../gcc-svn/gcc/reload1.c:2050

0x849f2c3 select_reload_regs

    ../../gcc-svn/gcc/reload1.c:2070

0x849f2c3 reload(rtx_def*, int)

    ../../gcc-svn/gcc/reload1.c:991

0x83cb8ea do_reload

    ../../gcc-svn/gcc/ira.c:4636

0x83cb8ea rest_of_handle_reload

    ../../gcc-svn/gcc/ira.c:4737

Reply via email to