diff options
author | Jerome Lambourg <lambourg@adacore.com> | 2018-05-17 16:36:36 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2018-05-17 16:36:36 +0000 |
commit | fcf4f8311e25eb0fde59e6f6a61b570c4c1068e3 (patch) | |
tree | afcd5286a3dd380e8c530a839a72004cbf84d59b /gcc/config | |
parent | ca7584f79af7aa544f72a0d599020d72e06639e6 (diff) | |
download | gcc-fcf4f8311e25eb0fde59e6f6a61b570c4c1068e3.zip gcc-fcf4f8311e25eb0fde59e6f6a61b570c4c1068e3.tar.gz gcc-fcf4f8311e25eb0fde59e6f6a61b570c4c1068e3.tar.bz2 |
arm_cmse.h (cmse_nsfptr_create, [...]): Remove #include <stdint.h>.
2018-05-17 Jerome Lambourg <lambourg@adacore.com>
gcc/
* config/arm/arm_cmse.h (cmse_nsfptr_create, cmse_is_nsfptr): Remove
#include <stdint.h>. Replace intptr_t with __INTPTR_TYPE__.
libgcc/
* config/arm/cmse.c (cmse_check_address_range): Replace
UINTPTR_MAX with __UINTPTR_MAX__ and uintptr_t with __UINTPTR_TYPE__.
From-SVN: r260330
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm_cmse.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/arm/arm_cmse.h b/gcc/config/arm/arm_cmse.h index 367e212..f972e23 100644 --- a/gcc/config/arm/arm_cmse.h +++ b/gcc/config/arm/arm_cmse.h @@ -35,7 +35,6 @@ extern "C" { #if __ARM_FEATURE_CMSE & 1 #include <stddef.h> -#include <stdint.h> #ifdef __ARM_BIG_ENDIAN @@ -174,9 +173,9 @@ cmse_nonsecure_caller (void) #define CMSE_MPU_NONSECURE 16 #define CMSE_NONSECURE 18 -#define cmse_nsfptr_create(p) ((typeof ((p))) ((intptr_t) (p) & ~1)) +#define cmse_nsfptr_create(p) ((typeof ((p))) ((__INTPTR_TYPE__) (p) & ~1)) -#define cmse_is_nsfptr(p) (!((intptr_t) (p) & 1)) +#define cmse_is_nsfptr(p) (!((__INTPTR_TYPE__) (p) & 1)) #endif /* __ARM_FEATURE_CMSE & 2 */ |