Re: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread daniel tian
2009/10/12 Paolo Bonzini : > >>> That exactly is the problem.  You can't have a CONST_INT inside a >>> ZERO_EXTEND.  That is not valid. >>> You'll need a separate pattern to recognize the CONST_INT without a >>> ZERO_EXTEND around it.  Unfortunately, this will not give reload >>> the freedom it sho

Re: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread Paolo Bonzini
That exactly is the problem. You can't have a CONST_INT inside a ZERO_EXTEND. That is not valid. You'll need a separate pattern to recognize the CONST_INT without a ZERO_EXTEND around it. Unfortunately, this will not give reload the freedom it should have. You mean I should remove the con

Re: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread daniel tian
2009/10/12 Joern Rennecke : > Quoting daniel tian : > >> hi, everyone: >>     I have ported the gcc to new RISC chip. But when I build the >> newlib with it, the gcc crashed in simplify-rtx.c. >>     error message is like this: >> >>     ../../../../../newlib-1.16.0/newlib/libc/time/tzset_r.c: In >

Re: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread Joern Rennecke
Quoting daniel tian : hi, everyone: I have ported the gcc to new RISC chip. But when I build the newlib with it, the gcc crashed in simplify-rtx.c. error message is like this: ../../../../../newlib-1.16.0/newlib/libc/time/tzset_r.c: In function _tzset_r? ../../../../../newli

Re: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread daniel tian
2009/10/12 Jon Beniston : >> PS: Does gcc have a function which could dump the specified rtx? >> I wanna dump the rtx when the crash happening. > > debug_rtx(x); > > You can also call this from within GDB, by typing: > > call debug_rtx(x) > > Cheers, > Jon > Thanks. I dump the context. Here it is:

RE: VOIDmode in ZERO_EXTEND crashed

2009-10-12 Thread Jon Beniston
> PS: Does gcc have a function which could dump the specified rtx? > I wanna dump the rtx when the crash happening. debug_rtx(x); You can also call this from within GDB, by typing: call debug_rtx(x) Cheers, Jon