[patch committed] SH: Fix build failure on sh64-elf

Kaz Kojima kkojima@rr.iij4u.or.jp
Sun Nov 5 13:01:00 GMT 2006


Hi,

I've checked the attached patch in as an obvious follow-up patch
for SH specific library.  Without it, the build fails on sh64-elf.

Regards,
	kaz
--
2006-11-05  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/lib1funcs-4-300.asm: Guard entire file with
        #if !__SHMEDIA__ .

diff -uprN ORIG/trunk/gcc/config/sh/lib1funcs-4-300.asm LOCAL/trunk/gcc/config/sh/lib1funcs-4-300.asm
--- ORIG/trunk/gcc/config/sh/lib1funcs-4-300.asm	2006-11-05 10:02:45.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/lib1funcs-4-300.asm	2006-11-05 19:29:03.000000000 +0900
@@ -29,6 +29,7 @@ Boston, MA 02110-1301, USA.  */
 
 #include "lib1funcs.h"
 
+#if !__SHMEDIA__
 #ifdef L_div_table
 #if defined (__SH3__) || defined (__SH3E__) || defined (__SH4__) || defined (__SH4_SINGLE__) || defined (__SH4_SINGLE_ONLY__) || defined (__SH4_NOFPU__)
 /* This code used shld, thus is not suitable for SH1 / SH2.  */
@@ -936,3 +937,4 @@ LOCAL(div_table_inv):
 #endif /* SH3 / SH4 */
 
 #endif /* L_div_table */
+#endif /* !__SHMEDIA__ */



More information about the Gcc-patches mailing list