------- Comment #1 from prafullat at kpitcummins dot com 2006-01-04 07:20 ------- Hi,
We found a patch for this PR16665. The Google cache link is as given below (We could not locate any other link for it), http://66.249.93.104/search?q=cache:YpH6FllSZGMJ:svn.uludag.org.tr/pardus/pardus-devel/system/devel/gcc/files/71_all_sh-pr16665-fix.patch+svn.uludag.org.tr/pardus/pardus-devel/+system/devel/gcc/files/71_all_sh-pr16665-fix.patch+&hl=en This patch fix this bug. The code generated after this patch is correct. We have tested it by building a SH4-LINUX toolchain on fedora core 4. However, we have observed some strange problem after applying this patch. 1. Sometimes the assembly code generated is incorrect. We get an assembler error "PCREL too far". The options used for creating assembly are as given below, #sh4-linux-g++ -g -ml -m4 -c foo.cpp -fPIC -o foo.o Please note that, this problem does not occur always. 2. GCC aborts with SEGV For a huge C++ code, G++ sometimes crashes with "segmentation fault" error. The options used for creating assembly are as given below, #sh4-linux-g++ -g -O0 -Wall -c -fPIC foo1.cpp Please note that, this problem does not occur always. We have noticed that, this patch is not approved at FSF and hence not applied to GCC-4.0 and onwards. Is it safe to apply this patch to gcc-3.4.4 ?? Is there any enhancement done to this ?? Reply to this will be highly appreciated. Thanks in advance. Regards, Prafulla Thakare 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 October 12, 2005. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- prafullat at kpitcummins dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |prafullat at kpitcummins dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16665