linux.h (SIZE_TYPE, [...]): Undefine.

* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Undefine.
	* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
	WCHAR_TYPE_SIZE): Define.
	* config.gcc (mn10300-*-*): Don't use svr4.h.

From-SVN: r167744
This commit is contained in:
Joseph Myers 2010-12-13 11:26:42 +00:00 committed by Joseph Myers
parent cd077e79a0
commit 6b9b8b34d1
4 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2010-12-13 Joseph Myers <joseph@codesourcery.com>
* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Undefine.
* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (mn10300-*-*): Don't use svr4.h.
2010-12-13 Joseph Myers <joseph@codesourcery.com>
* config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and

View File

@ -1974,7 +1974,7 @@ mmix-knuth-mmixware)
use_gcc_stdint=wrap
;;
mn10300-*-*)
tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"

View File

@ -84,3 +84,7 @@ extern int mn10300_protect_label;
} \
while (0)
#undef SIZE_TYPE
#undef PTRDIFF_TYPE
#undef WCHAR_TYPE
#undef WCHAR_TYPE_SIZE

View File

@ -121,6 +121,18 @@ extern enum processor_type mn10300_tune_cpu;
/* Define this as 1 if `char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 0
#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
/* Standard register usage. */