* gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.

From-SVN: r205106
This commit is contained in:
Ulrich Weigand 2013-11-20 12:14:14 +00:00 committed by Ulrich Weigand
parent 99e6af154c
commit cf598484ae
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gcc.target/powerpc/darwin-longlong.c (msw): Make endian-safe.
2013-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
* gcc.target/s390/htm-1.c: Rename to ...

View File

@ -11,7 +11,11 @@ int msw(long long in)
int i[2];
} ud;
ud.ll = in;
#ifdef __LITTLE_ENDIAN__
return ud.i[1];
#else
return ud.i[0];
#endif
}
int main()