diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-11-07 19:36:26 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-11-07 19:36:26 +0000 |
commit | a153644f75bb7e5c7814eb2a7a4737108018748f (patch) | |
tree | 9febea399aa1894ed3141daf9c1b518b6631b55a /libgcc/fixed-bit.h | |
parent | 3dee689d8fa82d36a83926931bb9ebaad18ee465 (diff) | |
download | gcc-a153644f75bb7e5c7814eb2a7a4737108018748f.zip gcc-a153644f75bb7e5c7814eb2a7a4737108018748f.tar.gz gcc-a153644f75bb7e5c7814eb2a7a4737108018748f.tar.bz2 |
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.
From-SVN: r229936
Diffstat (limited to 'libgcc/fixed-bit.h')
-rw-r--r-- | libgcc/fixed-bit.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgcc/fixed-bit.h b/libgcc/fixed-bit.h index 2efe01d..7f51f7b 100644 --- a/libgcc/fixed-bit.h +++ b/libgcc/fixed-bit.h @@ -434,7 +434,7 @@ typedef union } INTunion; #endif -#define FIXED_WIDTH (FIXED_SIZE * BITS_PER_UNIT) /* in bits. */ +#define FIXED_WIDTH (FIXED_SIZE * __CHAR_BIT__) /* in bits. */ #define FIXED_C_TYPE1(NAME) NAME ## type #define FIXED_C_TYPE2(NAME) FIXED_C_TYPE1(NAME) #define FIXED_C_TYPE FIXED_C_TYPE2(MODE_NAME) @@ -1108,17 +1108,17 @@ extern FIXED_C_TYPE FIXED_USASHL (FIXED_C_TYPE, word_type); #if defined (FROM_MODE_NAME_S) && defined (TO_MODE_NAME_S) #if FROM_TYPE == 1 /* Signed integer. */ -#define FROM_INT_WIDTH (FROM_INT_SIZE * BITS_PER_UNIT) +#define FROM_INT_WIDTH (FROM_INT_SIZE * __CHAR_BIT__) #endif #if FROM_TYPE == 2 /* Unsigned integer. */ -#define FROM_INT_WIDTH (FROM_INT_SIZE * BITS_PER_UNIT) +#define FROM_INT_WIDTH (FROM_INT_SIZE * __CHAR_BIT__) #endif #if FROM_TYPE == 4 /* Fixed-point. */ #define FROM_FIXED_C_TYPE FIXED_C_TYPE2(FROM_MODE_NAME) #define FROM_FBITS FBITS2(FROM_MODE_NAME) -#define FROM_FIXED_WIDTH (FROM_FIXED_SIZE * BITS_PER_UNIT) +#define FROM_FIXED_WIDTH (FROM_FIXED_SIZE * __CHAR_BIT__) #define FROM_FBITS FBITS2(FROM_MODE_NAME) #define FROM_IBITS IBITS2(FROM_MODE_NAME) #define FROM_I_F_BITS (FROM_FBITS + FROM_IBITS) @@ -1136,7 +1136,7 @@ extern FIXED_C_TYPE FIXED_USASHL (FIXED_C_TYPE, word_type); #if TO_TYPE == 4 /* Fixed-point. */ #define TO_FIXED_C_TYPE FIXED_C_TYPE2(TO_MODE_NAME) #define TO_FBITS FBITS2(TO_MODE_NAME) -#define TO_FIXED_WIDTH (TO_FIXED_SIZE * BITS_PER_UNIT) +#define TO_FIXED_WIDTH (TO_FIXED_SIZE * __CHAR_BIT__) #define TO_FBITS FBITS2(TO_MODE_NAME) #define TO_IBITS IBITS2(TO_MODE_NAME) #define TO_I_F_BITS (TO_FBITS + TO_IBITS) |