Commit 416ea725 by Joseph Myers Committed by Joseph Myers

elf.h (SIZE_TYPE, [...]): Define.

	* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
	(DBX_REGISTER_NUMBER): Undefine.
	* config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
	(DBX_REGISTER_NUMBER): Undefine.
	* config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.

From-SVN: r167774
parent 6f855258
2010-12-13 Joseph Myers <joseph@codesourcery.com>
* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu> 2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu>
Joseph Myers <joseph@codesourcery.com> Joseph Myers <joseph@codesourcery.com>
...@@ -2660,11 +2660,11 @@ xstormy16-*-elf) ...@@ -2660,11 +2660,11 @@ xstormy16-*-elf)
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
xtensa*-*-elf*) xtensa*-*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h newlib-stdint.h xtensa/elf.h" tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
tmake_file="xtensa/t-xtensa xtensa/t-elf" tmake_file="xtensa/t-xtensa xtensa/t-elf"
;; ;;
xtensa*-*-linux*) xtensa*-*-linux*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h glibc-stdint.h xtensa/linux.h" tm_file="${tm_file} dbxelf.h elfos.h linux.h glibc-stdint.h xtensa/linux.h"
tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux" tmake_file="${tmake_file} xtensa/t-xtensa xtensa/t-linux"
;; ;;
am33_2.0-*-linux*) am33_2.0-*-linux*)
......
...@@ -32,6 +32,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -32,6 +32,12 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_VERSION #undef TARGET_VERSION
#define TARGET_VERSION fputs (" (Xtensa/ELF)", stderr); #define TARGET_VERSION fputs (" (Xtensa/ELF)", stderr);
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
#undef WCHAR_TYPE #undef WCHAR_TYPE
#define WCHAR_TYPE "short unsigned int" #define WCHAR_TYPE "short unsigned int"
...@@ -75,6 +81,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -75,6 +81,8 @@ along with GCC; see the file COPYING3. If not see
/* Do not force "-fpic" for this target. */ /* Do not force "-fpic" for this target. */
#define XTENSA_ALWAYS_PIC 0 #define XTENSA_ALWAYS_PIC 0
#undef DBX_REGISTER_NUMBER
/* Search for headers in $tooldir/arch/include and for libraries and /* Search for headers in $tooldir/arch/include and for libraries and
startfiles in $tooldir/arch/lib. */ startfiles in $tooldir/arch/lib. */
#define GCC_DRIVER_HOST_INITIALIZATION \ #define GCC_DRIVER_HOST_INITIALIZATION \
......
...@@ -27,6 +27,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -27,6 +27,12 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_VERSION #undef TARGET_VERSION
#define TARGET_VERSION fputs (" (Xtensa GNU/Linux with ELF)", stderr); #define TARGET_VERSION fputs (" (Xtensa GNU/Linux with ELF)", stderr);
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
#undef WCHAR_TYPE #undef WCHAR_TYPE
#define WCHAR_TYPE "long int" #define WCHAR_TYPE "long int"
...@@ -60,5 +66,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -60,5 +66,7 @@ along with GCC; see the file COPYING3. If not see
/* Always enable "-fpic" for Xtensa Linux. */ /* Always enable "-fpic" for Xtensa Linux. */
#define XTENSA_ALWAYS_PIC 1 #define XTENSA_ALWAYS_PIC 1
#undef DBX_REGISTER_NUMBER
#define MD_UNWIND_SUPPORT "config/xtensa/linux-unwind.h" #define MD_UNWIND_SUPPORT "config/xtensa/linux-unwind.h"
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