This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc-2.5 build with -Os broken on PowerPC


Hello.

glibc 2.5 does not compile on PowerPC with -Os. It fails on:
 sysdeps/powerpc/fpu/e_sqrt.c
and
 sysdeps/powerpc/fpu/e_sqrtf.c
because of undefined reference to __CPU_HAS_FSQRT.

This is because __CPU_HAS_FSQRT is defined in mathinline.h, which is not
included if glibc is built with -Os optimization (and shouldn't be).

My fix/hack was to force mathinline.h inclusion in e_sqrt(f).c files:
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/glibc-ppc-include-mathinline.patch?rev=1.1
but I've been told it isn't a good idea.

Probably __CPU_HAS_FSQRT definitions should be moved somewere else, but
I see no good place for it.

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]