aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-12-09 17:18:20 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-12-09 17:18:20 +0000
commit7d4595877058f43585db99cef578da89384c44bc (patch)
tree7445ea1d75868c15832ac4ff052874391823027c
parent73aef89eb7b3d00fef404cd3163115c1563a78cf (diff)
downloadgcc-7d4595877058f43585db99cef578da89384c44bc.zip
gcc-7d4595877058f43585db99cef578da89384c44bc.tar.gz
gcc-7d4595877058f43585db99cef578da89384c44bc.tar.bz2
linux.h (SIZE_TYPE, [...]): Define.
* config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define. * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h. From-SVN: r167650
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config.gcc2
-rw-r--r--gcc/config/cris/linux.h7
3 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9dec6e7..6f6c7f3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-09 Joseph Myers <joseph@codesourcery.com>
+
+ * 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 <rguenther@suse.de>
PR middle-end/46844
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 12377e6..24f1b81 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 3f22cd3..5d4f38e 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 */