This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __ffssi2 not exported in libgcc_s.so
- From: Richard Sandiford <richard at codesourcery dot com>
- To: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 03 May 2007 12:10:13 +0100
- Subject: Re: __ffssi2 not exported in libgcc_s.so
- References: <20070502145252.GA31032@blc4eb430604175.ibm.com>
Andreas Krebbel <Andreas.Krebbel@de.ibm.com> writes:
> What I'm curious about is why this didn't occur earlier?! The symbol
> is available since 2003 and I can hardly imagine that no platform was
> ever in need of it till now.
To answer that, I'm afraid my patch is to blame:
2007-04-24 Richard Sandiford <richard@codesourcery.com>
* optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
over an external ffs function.
We used to use ffs to implement __builtin_ffs if sizeof (int),
even if libgcc provided a suitable alternative. This broke targets
whose C libraries don't provide their own ffs.
__ffssi2 was effectively dead code on many targets until now.
Richard