This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: [ SH ] Error during build for SH target with -mrenesas , -O2 option !!!


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

Attachment: sort.i
Description: sort.i

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

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