Re: problem in gcc port based on MIPS

2006-07-09 Thread Ian Lance Taylor
Please do not send e-mail to both gcc and gcc-help. Please just write to one mailing list. Thanks. "kernel coder" <[EMAIL PROTECTED]> writes: > I modified mips backend to support stw instruction.But during the > compilation of crtstuff.c it is generating an instrucion > > stw $2,p.2249 > > as

problem in gcc port based on MIPS

2006-07-09 Thread kernel coder
hi, I am trying to write the backend for a processor based on mips.I am facing some problems during compilation of gcc.GAS has been ported for target processor.The store word instruction on ported assembler only supports 16 bit offsets.i.e the only supported format is stw $1,16-bit-offset($2

Re: gcc port based on MIPS

2006-06-29 Thread Ian Lance Taylor
"kernel coder" <[EMAIL PROTECTED]> writes: > thanks,There is a macro LEGITIMIZE_RELOAD_ADDRESS.Accroding to gcc internals > "It is a C compound statement that attempts to replace x, which is an > address that needs > reloading, with a valid memory address for an operand of mode mode. > win will be

Re: gcc port based on MIPS

2006-06-27 Thread kernel coder
thanks,There is a macro LEGITIMIZE_RELOAD_ADDRESS.Accroding to gcc internals "It is a C compound statement that attempts to replace x, which is an address that needs reloading, with a valid memory address for an operand of mode mode. win will be a C statement label elsewhere in the code". I'm not

Re: gcc port based on MIPS

2006-06-20 Thread Ian Lance Taylor
"kernel coder" <[EMAIL PROTECTED]> writes: > > ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value > > `' for `mode' attribute > > ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value > > `' for `mode' attribute > > Sorry,these errors were just my mistake.I mistakenly comminted out the >

Re: gcc port based on MIPS

2006-06-20 Thread kernel coder
../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value `' for `mode' attribute ../../gcc-4.1.0/gcc/config/ABC/ABC.md:228: unknown value `' for `mode' attribute Sorry,these errors were just my mistake.I mistakenly comminted out the following line in ABC.md file (define_mode_attr UNITMODE [(SF

Re: gcc port based on MIPS

2006-06-19 Thread Andrew Pinski
> > "kernel coder" <[EMAIL PROTECTED]> writes: > > > (define_mode_attr divide_condition > > [DF (SF "!TARGET_FIX_SB1 || flag_unsafe_math_optimizations")]) > > ;; (V2SF "TARGET_SB1 && (!TARGET_FIX_SB1 || > > flag_unsafe_math_optimizations)")]) > > > > > > As you can see i just omitted the en

Re: gcc port based on MIPS

2006-06-19 Thread Ian Lance Taylor
"kernel coder" <[EMAIL PROTECTED]> writes: > > V2SF will be created by the line > > VECTOR_MODES (FLOAT, 8); > > Yes you are absolutely right.When i changed the name of file > ABC-modes.def to 1ABC-modes.def ,i got the following error > > make[1]: *** No rule to make target > `../../gcc-4.1.

Re: gcc port based on MIPS

2006-06-19 Thread kernel coder
V2SF will be created by the line VECTOR_MODES (FLOAT, 8); Yes you are absolutely right.When i changed the name of file ABC-modes.def to 1ABC-modes.def ,i got the following error make[1]: *** No rule to make target `../../gcc-4.1.0/gcc/config/ABC/ABC-modes.def', needed by `build/genmodes.o'.

Re: gcc port based on MIPS

2006-06-19 Thread Ian Lance Taylor
"kernel coder" <[EMAIL PROTECTED]> writes: > But when i issued the make all-gcc command .Following error occured > > ../../gcc-4.1.0/gcc/config/ABC/ABC.md: unknown mode `V2SF' > > Would u please explain why this error is being generated.Also a bit of > explaination of 'V2SF' mode will helpful.

gcc port based on MIPS

2006-06-19 Thread kernel coder
hi, I'm trying to port gcc for a processor which is very similar to MIPS.Today i just tried to compile gcc-4.1.0 for this processor by changing configuration files. First i changed the config.sub file in base directory and just added the name of processor ABC. Then i changed the configure.ac file