This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: __ffssi2 not exported in libgcc_s.so


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



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