public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* svr4.h avoidance: mep
@ 2010-12-09 17:21 Joseph S. Myers
  2010-12-09 18:36 ` DJ Delorie
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph S. Myers @ 2010-12-09 17:21 UTC (permalink / raw)
  To: gcc-patches; +Cc: dj

This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops mep-*-* from using svr4.h.  The macros
used from that header are added to mep.h.

Tested building cc1 and xgcc for cross to mep-elf.  OK to commit?

2010-12-09  Joseph Myers  <joseph@codesourcery.com>

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

diff -rupN --exclude=.svn gcc-mainline-3/gcc/config/mep/mep.h gcc-mainline/gcc/config/mep/mep.h
--- gcc-mainline-3/gcc/config/mep/mep.h	2010-11-22 05:28:24.000000000 -0800
+++ gcc-mainline/gcc/config/mep/mep.h	2010-12-09 08:46:16.000000000 -0800
@@ -202,6 +202,18 @@ crtbegin.o%s"
 #define DOUBLE_TYPE_SIZE      64
 #define LONG_DOUBLE_TYPE_SIZE 64
 #define DEFAULT_SIGNED_CHAR    1
+
+#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
 \f
 /* Register numbers:
  	0..15	core registers
diff -rupN --exclude=.svn gcc-mainline-3/gcc/config.gcc gcc-mainline/gcc/config.gcc
--- gcc-mainline-3/gcc/config.gcc	2010-12-09 05:50:25.000000000 -0800
+++ gcc-mainline/gcc/config.gcc	2010-12-09 08:45:52.000000000 -0800
@@ -1762,7 +1762,7 @@ mcore-*-pe*)
 	use_gcc_stdint=wrap
 	;;
 mep-*-*)
-	tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
+	tm_file="dbxelf.h elfos.h ${tm_file}"
 	tmake_file=mep/t-mep
 	extra_parts="crtbegin.o crtend.o"
 	c_target_objs="mep-pragma.o"

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: svr4.h avoidance: mep
  2010-12-09 17:21 svr4.h avoidance: mep Joseph S. Myers
@ 2010-12-09 18:36 ` DJ Delorie
  0 siblings, 0 replies; 2+ messages in thread
From: DJ Delorie @ 2010-12-09 18:36 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gcc-patches


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

Ok.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-09 18:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 17:21 svr4.h avoidance: mep Joseph S. Myers
2010-12-09 18:36 ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).