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

Nitin Shah NitinS2@KPITCummins.com
Thu Aug 19 17:03:00 GMT 2004


Hi,
Attached is minimum sort.i file for which error comes.

error comes from the command:
>sh-elf-gcc -mrenesas -O2  sort.i -S

error goes from the command mentioned below:(using option -fno-guess-branch-probability or -fno-gcse with -O2 -mrenesas)
>sh-elf-gcc -mrenesas -fno-guess-branch-probability -O2  sort.i -S
>sh-elf-gcc -mrenesas -fno-gcse -O2  sort.i -S

Also error will go after make any of one changes in sort.i,
1)Comment the (line no.36,38)
if (big_endian_p)
else

OR
2)Make changes (line no. 46) 
for (pointerp = pointers + n - 1; pointerp >= pointers; --pointerp)->
for (pointerp = pointers + n - 1; pointerp >= pointers; --pointerp);

OR
3)Comment the (line no. 42)
memset (count, 0, DIGIT_MAX * sizeof (unsigned int));

OR
4)Comments the (line no.43,44)
for (countp = count + 1; countp < count + DIGIT_MAX; ++countp)
      *countp += countp[-1];

Thanks in advance.
Regards,
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sort.i
Type: application/octet-stream
Size: 1487 bytes
Desc: sort.i
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20040819/61622a2d/attachment.obj>
-------------- next part --------------
------
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