This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
glibc-2.5 inlines spill in the internal code with gcc-4.3 snapshots
- From: Luca Barbato <lu_zero at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 16 Nov 2006 17:34:15 +0100
- Subject: glibc-2.5 inlines spill in the internal code with gcc-4.3 snapshots
gcc spits error about function redefined in the following files:
glibc-2.5/sysdeps/ieee754/dbl-64/s_signbit.c
glibc-2.5/sysdeps/ieee754/flt-32/s_signbitf.c
glibc-2.5/stdlib/atof.c
glibc-2.5/stdlib/atol.c
glibc-2.5/stdlib/atoi.c
glibc-2.5/stdlib/strtol.c
glibc-2.5/stdlib/strtol_l.c
and so on.
In file included from ../sysdeps/wordsize-64/strtol_l.c:6:
../stdlib/strtol_l.c:557: error: redefinition of '__strtol_l'
../include/stdlib.h:151: error: previous definition of '__strtol_l' was here
My solution is either redefine the function inlined putting
#define fun inlined_fun
before the definition and then undef it or remove the wrong header (like
math.h when math_internal.h is enough)
The former solution adds mess, the latter looks clean, probably there is
a third correct I hadn't considered yet.
the cflags passed are -O2 -pipe -mtune=power5.
--
Luca Barbato
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero