This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add new architechture in gcc build error


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, if it is
false, aim eliminated register is SP.
But in the former array, gcc still got FP. So error accurred.

Now it is OK with the following:
#define ELIMINABLE_REGS \
{\
 {ARG_POINTER_REGNUM,	     STACK_POINTER_REGNUM}, \
 {ARG_POINTER_REGNUM,	     FRAME_POINTER_REGNUM}, \
 {FRAME_POINTER_REGNUM,	     STACK_POINTER_REGNUM} \
}
just exchange the former two elements.

So thanks for your guys.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]