__ffssi2 not exported in libgcc_s.so
Richard Sandiford
richard@codesourcery.com
Thu May 3 11:10:00 GMT 2007
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
More information about the Gcc
mailing list