diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 04:06:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-04 05:04:30 -0500 |
commit | 9bbf6f91c6e85ca916ec2c266009167f20f5ecfd (patch) | |
tree | 6819794d652596c2af44565c9a87e93c064c40fb /sim/ppc/sim-endian.h | |
parent | 13adda68c54abf2654d01fa6523c379a13e418da (diff) | |
download | gdb-9bbf6f91c6e85ca916ec2c266009167f20f5ecfd.zip gdb-9bbf6f91c6e85ca916ec2c266009167f20f5ecfd.tar.gz gdb-9bbf6f91c6e85ca916ec2c266009167f20f5ecfd.tar.bz2 |
sim: punt x86-specific bswap logic
The compiler/C library should produce reasonable code for htonl/ntohl,
and at least glibc tries pretty hard to always produce good code for
them. This logic only had support for 32-bit x86 systems anymore, and
it's unlikely people were even opting into this, so drop it all.
Diffstat (limited to 'sim/ppc/sim-endian.h')
-rw-r--r-- | sim/ppc/sim-endian.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sim/ppc/sim-endian.h b/sim/ppc/sim-endian.h index c6df0f2..9a87333 100644 --- a/sim/ppc/sim-endian.h +++ b/sim/ppc/sim-endian.h @@ -154,13 +154,6 @@ INLINE_PSIM_ENDIAN(unsigned_8) endian_le2h_8(unsigned_8 x); # endif #endif -#if (defined (__i486__) || defined (__i586__) || defined (__i686__)) && defined(__GNUC__) && WITH_BSWAP -#undef htonl -#undef ntohl -#define htonl(IN) __extension__ ({ int _out; __asm__ ("bswap %0" : "=r" (_out) : "0" (IN)); _out; }) -#define ntohl(IN) __extension__ ({ int _out; __asm__ ("bswap %0" : "=r" (_out) : "0" (IN)); _out; }) -#endif - /* Power or PowerPC running AIX */ #if defined(_POWER) && defined(_AIX) # if (WITH_HOST_BYTE_ORDER == 0) |