Re: Add new architechture in gcc build error

2009-09-23 Thread daniel tian
Thank you. I fixed the error. it caused by macro: #define ELIMINABLE_REGS \ {\ {ARG_POINTER_REGNUM,FRAME_POINTER_REGNUM}, \ {ARG_POINTER_REGNUM,STACK_POINTER_REGNUM}, \ {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM} \ } because everytime when gcc check the frame_pointer_need

Re: Add new architechture in gcc build error

2009-09-21 Thread Ian Lance Taylor
daniel tian writes: >I have already finished CPU port named RICE. The previous version > I did is on gcc 4.0.2. it can be compiled. Now I wanna move it to > v4.3.0. I added the config script just as the CRX architechture. > configure:2379: $? = 1 > configure:2398: > /home/daniel.tian/gcc_

Re: Add new architechture in gcc build error

2009-09-21 Thread daniel tian
2009/9/21 Andrew Haley : > daniel tian wrote: >> 2009/9/21 sumanth : >>> Hi , >>>    Follow this wiki  " http://gcc.gnu.org/wiki/DebuggingGCC"; to know how to >>> debug gcc. >>>    As far as I know  compute_frame_pointer_to_fb_displacement is the >>> displacement between your >>>   frame pointer an

Re: Add new architechture in gcc build error

2009-09-21 Thread Andrew Haley
daniel tian wrote: > 2009/9/21 sumanth : >> Hi , >>Follow this wiki " http://gcc.gnu.org/wiki/DebuggingGCC"; to know how to >> debug gcc. >>As far as I know compute_frame_pointer_to_fb_displacement is the >> displacement between your >> frame pointer and the frame base ( mostly stack po

Re: Add new architechture in gcc build error

2009-09-21 Thread daniel tian
2009/9/21 sumanth : > Hi , >    Follow this wiki  " http://gcc.gnu.org/wiki/DebuggingGCC"; to know how to > debug gcc. >    As far as I know  compute_frame_pointer_to_fb_displacement is the > displacement between your >   frame pointer and the frame base ( mostly stack pointer's location after > yo

Re: Add new architechture in gcc build error

2009-09-21 Thread sumanth
Hi , Follow this wiki " http://gcc.gnu.org/wiki/DebuggingGCC"; to know how to debug gcc. As far as I know compute_frame_pointer_to_fb_displacement is the displacement between your frame pointer and the frame base ( mostly stack pointer's location after your prologue code - depend

Re: Add new architechture in gcc build error

2009-09-21 Thread daniel tian
> > You've got to get in there with gdb and find out why > compute_frame_pointer_to_fb_displacement() > is erroring.  There's no way to avoid this. > Thank you. But I don't know how. I mean which execute file, even I can't find the "conftest.c" file. Sorry for asking this simple question.

Re: Add new architechture in gcc build error

2009-09-21 Thread Andrew Haley
daniel tian wrote: > /home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/xgcc > -B/home/daniel.tian/gcc_rice_dev/rice-binutils/build-gcc-debug/./gcc/ > -B/usr/local/cross/rice-elf/rice-elf/bin/ > -B/usr/local/cross/rice-elf/rice-elf/lib/ -isystem > /usr/local/cross/rice-elf/rice-elf