diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-12-09 17:26:33 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2010-12-09 17:26:33 +0000 |
commit | 3c5c2f87e526892dadfb28f2f377a5ae7742a230 (patch) | |
tree | 9ceeabfb36145bba4ed05ce7bc2e4adef75a2aaa /gcc/config/mcore | |
parent | b10757916d5ec410fcdd60c36e66d7fd555cddd8 (diff) |
* config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Don't define.
* config.gcc (mcore-*-elf): Don't use svr4.h.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mcore')
-rw-r--r-- | gcc/config/mcore/mcore.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index f1be9949202..3f76e18eab1 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -692,9 +692,18 @@ extern const enum reg_class reg_class_from_letter[]; /* 'char' is signed by default. */ #define DEFAULT_SIGNED_CHAR 0 -/* The type of size_t unsigned int. */ +#undef SIZE_TYPE #define SIZE_TYPE "unsigned int" +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" + +#undef WCHAR_TYPE +#define WCHAR_TYPE "long int" + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE BITS_PER_WORD + /* Max number of bytes we can move from memory to memory in one reasonably fast instruction. */ #define MOVE_MAX 4 |