]> sourceware.org Git - glibc.git/commit
byteswap.h: fix gcc ver test for __builtin_bswap{32,64}
authorMike Frysinger <[email protected]>
Thu, 29 Nov 2012 04:04:32 +0000 (23:04 -0500)
committerRyan S. Arnold <[email protected]>
Fri, 18 Jan 2013 15:33:34 +0000 (09:33 -0600)
commit4e1f97ccdcc257eba262667f7a3179a7d530330d
tree05ba213dee291fbbf058dd0305d6124dd58fc4f1
parent025b233a88a30f5f0474ff2c6051313eb33e5689
byteswap.h: fix gcc ver test for __builtin_bswap{32,64}

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

Signed-off-by: Mike Frysinger <[email protected]>
(cherry picked from commit c9d6789ebe028a260d3e5be0c26b7d02fdfe99fe)
ChangeLog
bits/byteswap.h
sysdeps/x86/bits/byteswap.h
This page took 0.048072 seconds and 6 git commands to generate.