This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: glibc-2.1 on PowerPC cannot disable floating-point
- To: Kenneth Johansson <erakeon@kieray1.p.y.ki.era.ericsson.se>
- Subject: Re: glibc-2.1 on PowerPC cannot disable floating-point
- From: Zack Weinberg <zack@rabi.columbia.edu>
- Date: Fri, 12 Feb 1999 10:05:15 -0500
- cc: libc-alpha@cygnus.com, Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
On Fri, 12 Feb 1999 14:58:57 +0100, Kenneth Johansson wrote:
>
>
>David Edelsohn wrote:
>
>
>> Was there a reason that the PowerPC port did not utilize the "fpu"
>> structure of other ports (e.g., alpha, arm, i386, m68k, and sparc)? Can
>> the floating-point functionality be moved into an "fpu" subdirectory so
>> that it follows the structure of other ports and can be disabled?
>>
>
>I dont know why it was made the way it is but I guess that powerpc
>always had an FPU. I'am also interested in a version that can be
>compiled without FPU. I did a few changes and got it to compile but I
>never had the time to get it right. I and Geoff Keating had a
>discussion about it back in november I think.
>
>The work involved dose not look to be that much and Geoff who knows
>the intern als of glibc could probably do it in hours. Myself I'am
>probably in the weeks category. Apart from a less than complet
>understanding of the build system I a lso have a hard time testing
>what I make as I dont have any working PowerPc system .
It should suffice to create a sysdeps/powerpc/fpu directory and move
all the floating-point-related files in sysdeps/powerpc to that
directory. I think this is the list:
Versions bits/fenv.h bits/mathdef.h bits/mathinline.h
e_sqrt.c e_sqrtf.c fclrexcpt.c fe_nomask.c
fegetenv.c fegetround.c feholdexcpt.c fenv_const.c
fenv_libc.h fesetenv.c fesetround.c feupdateenv.c
fgetexcptflg.c fpu_control.h fraiseexcpt.c fsetexcptflg.c
ftestexcept.c machine-gmon.h s_copysign.S s_copysignf.S
s_fabs.S s_fabsf.S s_fdim.c s_fdimf.c
s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S
s_isnan.c s_isnanf.S s_llrint.c s_llrintf.c
s_llround.c s_llroundf.c s_lrint.c s_lrintf.S
s_lround.c s_lroundf.c s_rint.c s_rintf.c
t_sqrt.c test-arith.c test-arithf.c w_sqrt.c
w_sqrtf.c
You'll also need to take ieee754 out of powerpc/Implies and add it to
powerpc/fpu/Implies. Dist and Makefile may need to be adjusted.
zw