This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [SH][PATCH] SH4 NOFPU support
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: ams at codesourcery dot com
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 03 Feb 2009 11:50:36 +0900 (JST)
- Subject: Re: [SH][PATCH] SH4 NOFPU support
- References: <4981C25D.70502@codesourcery.com><20090131.082004.211656735.kkojima@rr.iij4u.or.jp>
>> 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