[PATCH v2] byteswap.h: fix gcc ver test for __builtin_bswap{32,64}

Mike Frysinger vapier@gentoo.org
Fri Nov 30 20:23:00 GMT 2012


On Wednesday 28 November 2012 23:10:20 Mike Frysinger wrote:
> The __builtin_bswap* functions were introduced in gcc-4.3, not gcc-4.2.
> Fix the __GNUC_PREREQ tests to reflect this.
> 
> Otherwise trying to compile code with gcc-4.2 falls down:
> In file included from /usr/include/endian.h:60,
>                  from /usr/include/ctype.h:40,
> /usr/include/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned
> int)': /usr/include/bits/byteswap.h:46: error: '__builtin_bswap32' was not
> declared in this scope /usr/include/bits/byteswap.h: In function 'long
> long unsigned int __bswap_64(long long unsigned int)':
> /usr/include/bits/byteswap.h:110: error: '__builtin_bswap64' was not
> declared in this scope

btw, i think this should go into 2.17 (and perhaps the 2.16 branch) since this 
is a regression from 2.15.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121130/7cfba1bb/attachment.sig>


More information about the Libc-alpha mailing list