diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-07 20:02:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-07 20:02:56 +0000 |
commit | bf2c10ded6bd31d7b923408f099b32b549acb934 (patch) | |
tree | dbbc87e08c9c78f93a62ab020fbd3748de17c35a | |
parent | 51ac41a799b1e72b092436369bb332e13f689d18 (diff) | |
download | glibc-bf2c10ded6bd31d7b923408f099b32b549acb934.tar.gz glibc-bf2c10ded6bd31d7b923408f099b32b549acb934.tar.xz glibc-bf2c10ded6bd31d7b923408f099b32b549acb934.zip |
Update.
* sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last patch. We must use unsigned int for l member of union.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | bits/byteswap.h | 6 | ||||
-rw-r--r-- | sysdeps/generic/bits/byteswap.h | 6 |
3 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index e4a53653d7..bb7aaab2f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-01-07 Ulrich Drepper <drepper@redhat.com> + * sysdeps/generic/bits/byteswap.h (__bswap_64): Partly revert last + patch. We must use unsigned int for l member of union. + * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Don't call _dl_aux_init for shared libraries. diff --git a/bits/byteswap.h b/bits/byteswap.h index ec2051ace2..89e9ee27a0 100644 --- a/bits/byteswap.h +++ b/bits/byteswap.h @@ -1,5 +1,5 @@ /* Macros to swap the order of bytes in integer values. - Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -53,7 +53,7 @@ __bswap_32 (unsigned int __bsx) #if defined __GNUC__ && __GNUC__ >= 2 /* Swap bytes in 64 bit value. */ -#define __bswap_constant_64(x) \ +# define __bswap_constant_64(x) \ ((((x) & 0xff00000000000000ull) >> 56) \ | (((x) & 0x00ff000000000000ull) >> 40) \ | (((x) & 0x0000ff0000000000ull) >> 24) \ @@ -66,7 +66,7 @@ __bswap_32 (unsigned int __bsx) # define __bswap_64(x) \ (__extension__ \ ({ union { __extension__ unsigned long long int __ll; \ - unsigned long int __l[2]; } __w, __r; \ + unsigned int __l[2]; } __w, __r; \ if (__builtin_constant_p (x)) \ __r.__ll = __bswap_constant_64 (x); \ else \ diff --git a/sysdeps/generic/bits/byteswap.h b/sysdeps/generic/bits/byteswap.h index ec2051ace2..89e9ee27a0 100644 --- a/sysdeps/generic/bits/byteswap.h +++ b/sysdeps/generic/bits/byteswap.h @@ -1,5 +1,5 @@ /* Macros to swap the order of bytes in integer values. - Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -53,7 +53,7 @@ __bswap_32 (unsigned int __bsx) #if defined __GNUC__ && __GNUC__ >= 2 /* Swap bytes in 64 bit value. */ -#define __bswap_constant_64(x) \ +# define __bswap_constant_64(x) \ ((((x) & 0xff00000000000000ull) >> 56) \ | (((x) & 0x00ff000000000000ull) >> 40) \ | (((x) & 0x0000ff0000000000ull) >> 24) \ @@ -66,7 +66,7 @@ __bswap_32 (unsigned int __bsx) # define __bswap_64(x) \ (__extension__ \ ({ union { __extension__ unsigned long long int __ll; \ - unsigned long int __l[2]; } __w, __r; \ + unsigned int __l[2]; } __w, __r; \ if (__builtin_constant_p (x)) \ __r.__ll = __bswap_constant_64 (x); \ else \ |