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

Dan Kegel dank@kegel.com
Mon Aug 16 16:06:00 GMT 2004


Nitin Shah wrote:
> 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.

You're using a compiler from kpitgnutools.com; talk to them for support.
Or more exactly, follow the instructions at http://www.kpitgnutools.com
referred to in the error message.
When you file the bug report, they will want you to provide
a minimal test case.  This is very important.  The procedure for
creating one is as follows:

Tke command that failed from log, and turn it into a shell script
  that does
    #!/bin/sh
    PATH=...the path from the log...
    export PATH
    cd ...the directory from the log...
    [the command that failed]
Run that script, verify it fails in same way
Then add -E to the gcc command, remove -o sort.o, and
save result in sort.i
Compile sort.i and verify same error
Repeat:
   Back up sort.i
   Delete lines from sort.i
   Verify error still happens on smaller file
until sort.i is as small as possible

Post sort.i with error report

- Dan

-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
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