Commit ed38428f by Joseph Myers Committed by Joseph Myers

mcore.h (PTRDIFF_TYPE, [...]): Define.

	* 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.

From-SVN: r167658
parent cfe5b8ea
2010-12-09 Joseph Myers <joseph@codesourcery.com>
* 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.
2010-12-09 Joseph Myers <joseph@codesourcery.com>
* config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
......@@ -1751,7 +1751,7 @@ m68k-*-rtems*)
extra_parts="crtbegin.o crtend.o"
;;
mcore-*-elf)
tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
tmake_file=mcore/t-mcore
inhibit_libc=true
;;
......
......@@ -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
......
/* Operating system specific defines to be used when targeting GCC for
generic System V Release 3 system.
Copyright (C) 1991, 1996, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
Copyright (C) 1991, 1996, 2000, 2002, 2004, 2007, 2010
Free Software Foundation, Inc.
Contributed by Ron Guilmette (rfg@monkeys.com).
This file is part of GCC.
......@@ -77,21 +78,6 @@ along with GCC; see the file COPYING3. If not see
#undef DBX_DEBUGGING_INFO
/* Define the actual types of some ANSI-mandated types. These
definitions should work for most SVR3 systems. */
#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
/* The prefix to add to user-visible assembler symbols.
For System V Release 3 the convention is to prepend a leading
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment