Re: [mpm@selenic.com: Re: buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)]

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2005-04-09 14:05:48
>>>>> On Fri, 8 Apr 2005 20:00:59 -0700, Grant Grundler <iod00d@hp.com> said:

  Grant> It requires at least gcc-3.4 for ia64.  gcc-3.3 will fail
  Grant> with: undefined reference to `__builtin_popcount'

If you change:

# define popcount(x)		__builtin_popcountl(x)

into:

#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
# define popcount(x)         __builtin_popcountl(x)
#else
# define popcount(x)         ia64_popcnt(x)
#endif

then it should build with pre-v3.4 compilers, too.

	--david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Apr 9 00:07:43 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:37 EST