[ SH ] Error during build for SH target with -mrenesas , -O2 option !!!

Nitin Shah NitinS2@KPITCummins.com
Mon Aug 16 15:01:00 GMT 2004


Hi,
I have taken following source code version to build SH(COFF/ELF)toolchain,
1. GCC(gcc-3.4-20040730).
2. binutils-2.15.
3. newlib-1.12.0 (Dated 15/07/2004 from CVS).
I want to build libraries using option -mrenesas.

With optimization option -O2 and -mrenesas,
I am getting following error at the stage of final gcc building.

Kindly suggest how to remove this error.

Due to compilation error for sort.c it's not generating .ii and .s files using --save-temps.

*****************************************error text************************************************

./../gcc-3.4.2/gnush_v0403_coff-1/sh-coff/sys-include -c -DHAVE_CONFIG_H -O2 -O2 -DCOFFPATCH  -mrenesas -I.
-I./../gcc-3.4-20040730/libiberty/../include  -W -Wall -Wtraditional -pedantic /home/kpit/fsfsrc/downloads/gcc-3.4-20040730/libiberty/sort.c -o sort.o
./gcc-3.4-20040730/libiberty/sort.c: In function `sort_pointers':
./gcc-3.4-20040730/libiberty/sort.c:134: error: insn does not satisfy its constraints:
(insn:HI 55 53 57 2 (set (reg/v:SI 148 mach [orig:161 big_endian_p ] [161])
        (reg:SI 147 t)) 122 {movsi_i} (insn_list 53 (nil))
    (nil))
./gcc-3.4-20040730/libiberty/sort.c:134: internal compiler error: in reload_cse_simplify_operands, at postreload.c:378
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.kpitgnutools.com> for instructions.
make[3]: *** [sort.o] Error 1
make[3]: Leaving directory `/home/nitins2/intmdt_build/sh-coffbld3.4-20040730/build-gcc-3.4-20040730/sh-coff/mrenesas/libiberty'
make[2]: *** [multi-do] Error 1
make[2]: Leaving directory `/home/nitins2/intmdt_build/sh-coffbld3.4-20040730/build-gcc-3.4-20040730/sh-coff/libiberty'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nitins2/intmdt_build/sh-coffbld3.4-20040730/build-gcc-3.4-20040730/sh-coff/libiberty'
make: *** [all-target-libiberty] Error 2

***************************************************************************************************

Thanks in advance.

Nitin Shah,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list