From: jsm28 Date: Thu, 9 Dec 2010 17:18:20 +0000 (+0000) Subject: * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f511a20bf9ab00efcd7b9433a9d83098a07a7fe2;p=thirdparty%2Fgcc.git * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define. * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167650 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9dec6e713272..6f6c7f37ab15 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-12-09 Joseph Myers + + * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define. + * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h. + 2010-12-09 Richard Guenther PR middle-end/46844 diff --git a/gcc/config.gcc b/gcc/config.gcc index 12377e651b0a..24f1b816ad78 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -942,7 +942,7 @@ cris-*-elf | cris-*-none) use_gcc_stdint=wrap ;; crisv32-*-linux* | cris-*-linux*) - tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h cris/linux.h" + tm_file="dbxelf.h elfos.h ${tm_file} linux.h glibc-stdint.h cris/linux.h" # We need to avoid using t-linux, so override default tmake_file tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" extra_options="${extra_options} cris/linux.opt" diff --git a/gcc/config/cris/linux.h b/gcc/config/cris/linux.h index 3f22cd369198..5d4f38ee946c 100644 --- a/gcc/config/cris/linux.h +++ b/gcc/config/cris/linux.h @@ -132,7 +132,14 @@ along with GCC; see the file COPYING3. If not see builtin_define ("__NO_UNDERSCORES__"); \ } \ while (0) + +/* Node: Type Layout */ +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" /* Node: Sections */