X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fppc%2Fsim-endian.h;h=9a873333a1180eb6e28f4a3d262a13c139bde0dd;hb=22aa1d51198689f5f3f01a874b405bf4449cbfb0;hp=570a311f531bdd5e884f55b275fa63585fd03390;hpb=01f0fe5e0450edf168c1f612feb93cf588e4e7ea;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/ppc/sim-endian.h b/sim/ppc/sim-endian.h index 570a311f53..9a873333a1 100644 --- a/sim/ppc/sim-endian.h +++ b/sim/ppc/sim-endian.h @@ -4,7 +4,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -13,8 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + along with this program; if not, see . */ @@ -94,7 +93,6 @@ INLINE_PSIM_ENDIAN(unsigned_8) endian_le2h_8(unsigned_8 x); #if defined(__linux__) # include -# include # if defined(__LITTLE_ENDIAN) && !defined(LITTLE_ENDIAN) # define LITTLE_ENDIAN __LITTLE_ENDIAN # endif @@ -156,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)