diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2019-06-25 11:45:02 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2019-06-25 13:37:16 -0400 |
commit | 301facfb60db2adb8306009ac27f3b9afd08bb5e (patch) | |
tree | 9b16ef9c015987d86250ac7be4cc528a2f281c0c | |
parent | 641ecb07533e85211b6abce334c85967f3f90209 (diff) | |
download | cygnal-301facfb60db2adb8306009ac27f3b9afd08bb5e.tar.gz cygnal-301facfb60db2adb8306009ac27f3b9afd08bb5e.tar.bz2 cygnal-301facfb60db2adb8306009ac27f3b9afd08bb5e.zip |
Support calculation of pointer size for __int20__ type in _intsup.h
GCC r272640 modifies the MSP430 target to use "__int20__" for
PTRDIFF_TYPE (and therefore INTPTR_TYPE) instead of "__int20".
To support the calculation of pointer size in
newlib/libc/include/sys/_intsup.h, definitions for __int20__ need to be
added.
-rw-r--r-- | newlib/libc/include/sys/_intsup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_intsup.h b/newlib/libc/include/sys/_intsup.h index 88d7400d8..993121ba8 100644 --- a/newlib/libc/include/sys/_intsup.h +++ b/newlib/libc/include/sys/_intsup.h @@ -37,6 +37,7 @@ #pragma push_macro("char") #pragma push_macro("short") #pragma push_macro("__int20") +#pragma push_macro("__int20__") #pragma push_macro("int") #pragma push_macro("long") #undef signed @@ -45,12 +46,14 @@ #undef short #undef int #undef __int20 +#undef __int20__ #undef long #define signed +0 #define unsigned +0 #define char +0 #define short +1 #define __int20 +2 +#define __int20__ +2 #define int +2 #define long +4 #if (__INTPTR_TYPE__ == 8 || __INTPTR_TYPE__ == 10) @@ -189,6 +192,7 @@ #pragma pop_macro("char") #pragma pop_macro("short") #pragma pop_macro("__int20") +#pragma pop_macro("__int20__") #pragma pop_macro("int") #pragma pop_macro("long") |