[SH][PATCH] SH4 NOFPU support

Kaz Kojima kkojima@rr.iij4u.or.jp
Tue Feb 3 03:19:00 GMT 2009


>> At present, building for SH4 with the FPU disabled fails with illegal 
>> instruction errors from the assembler.
> 
> Looks fine to me.

Ah, I thought that all files touched with your patch are sh4
specific, but sysdeps/sh/dl-trampoline.S is also used by sh3
and the changes

> -#ifdef HAVE_FPU
> +#ifndef __SH4_NOFPU__

are bad for sh3.  You can change sysdeps/sh/sh4/dl-trampoline.S
like as

+#ifndef __SH4_NOFPU__
 #define HAVE_FPU
+#endif
 #include <sysdeps/sh/dl-trampoline.S>

instead.  Sorry for not noticing this.

Regards,
	kaz



More information about the Libc-alpha mailing list