diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-07 19:36:26 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-07 19:36:26 +0000 |
commit | d2dc729fb11c6dcb85ea6d6263160098c31a0dea (patch) | |
tree | 9febea399aa1894ed3141daf9c1b518b6631b55a /libgcc/libgcc2.h | |
parent | 69de5ea9cf98d8f5a1039a1024c7d5bab4673111 (diff) | |
download | linaro-gcc-d2dc729fb11c6dcb85ea6d6263160098c31a0dea.tar.gz linaro-gcc-d2dc729fb11c6dcb85ea6d6263160098c31a0dea.tar.bz2 linaro-gcc-d2dc729fb11c6dcb85ea6d6263160098c31a0dea.zip |
replace BITS_PER_UNIT with __CHAR_BIT__ in target libs
libgcc/ChangeLog:
2015-11-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* config/visium/lib2funcs.c (__set_trampoline_parity): Use
__CHAR_BIT__ instead of BITS_PER_UNIT.
* fixed-bit.h: Likewise.
* fp-bit.h: Likewise.
* libgcc2.c (__popcountSI2): Likewise.
(__popcountDI2): Likewise.
* libgcc2.h: Likewise.
* libgcov.h: Likewise.
libobjc/ChangeLog:
2015-11-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
PR libobjc/24775
* encoding.c (_darwin_rs6000_special_round_type_align): Use
__CHAR_BIT__ instead of BITS_PER_UNIT.
(objc_sizeof_type): Likewise.
(objc_layout_structure): Likewise.
(objc_layout_structure_next_member): Likewise.
(objc_layout_finish_structure): Likewise.
(objc_layout_structure_get_info): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/libgcc2.h')
-rw-r--r-- | libgcc/libgcc2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgcc/libgcc2.h b/libgcc/libgcc2.h index 98bb2742582..d689f3433da 100644 --- a/libgcc/libgcc2.h +++ b/libgcc/libgcc2.h @@ -178,7 +178,7 @@ typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__))); if it existed. */ #if LIBGCC2_UNITS_PER_WORD == 8 -#define W_TYPE_SIZE (8 * BITS_PER_UNIT) +#define W_TYPE_SIZE (8 * __CHAR_BIT__) #define Wtype DItype #define UWtype UDItype #define HWtype DItype @@ -194,7 +194,7 @@ typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__))); #endif #define COMPAT_SIMODE_TRAPPING_ARITHMETIC #elif LIBGCC2_UNITS_PER_WORD == 4 -#define W_TYPE_SIZE (4 * BITS_PER_UNIT) +#define W_TYPE_SIZE (4 * __CHAR_BIT__) #define Wtype SItype #define UWtype USItype #define HWtype SItype @@ -209,7 +209,7 @@ typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__))); #define __NDW(a,b) __ ## a ## di ## b #endif #elif LIBGCC2_UNITS_PER_WORD == 2 -#define W_TYPE_SIZE (2 * BITS_PER_UNIT) +#define W_TYPE_SIZE (2 * __CHAR_BIT__) #define Wtype HItype #define UWtype UHItype #define HWtype HItype @@ -224,7 +224,7 @@ typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__))); #define __NDW(a,b) __ ## a ## si ## b #endif #else -#define W_TYPE_SIZE BITS_PER_UNIT +#define W_TYPE_SIZE __CHAR_BIT__ #define Wtype QItype #define UWtype UQItype #define HWtype QItype |