public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* svr4.h avoidance: rx
@ 2010-12-09 19:04 Joseph S. Myers
  2010-12-15 11:20 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph S. Myers @ 2010-12-09 19:04 UTC (permalink / raw)
  To: gcc-patches; +Cc: nickc

This patch in the series removing svr4.h from the headers used by
particular targets in GCC stops rx-*-elf* from using that header,
adding the two macros used from it to rx.h.

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

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

	* config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
	* config.gcc (rx-*-elf*): Don't use svr4.h.

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 167658)
+++ gcc/config.gcc	(working copy)
@@ -2230,7 +2230,7 @@ rs6000-ibm-aix[6789].* | powerpc-ibm-aix
 	extra_headers=altivec.h
 	;;
 rx-*-elf*)
-	tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} ../../libgcc/config/rx/rx-abi.h"
+	tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} ../../libgcc/config/rx/rx-abi.h"
 	tmake_file="${tmake_file} rx/t-rx"
 	;;
 s390-*-linux*)
Index: gcc/config/rx/rx.h
===================================================================
--- gcc/config/rx/rx.h	(revision 167658)
+++ gcc/config/rx/rx.h	(working copy)
@@ -137,6 +137,10 @@ extern enum rx_cpu_types  rx_cpu_type;
 #define SIZE_TYPE			"long unsigned int"
 #undef  PTRDIFF_TYPE
 #define PTRDIFF_TYPE			"long int"
+#undef  WCHAR_TYPE
+#define WCHAR_TYPE			"long int"
+#undef  WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE			BITS_PER_WORD
 #define POINTERS_EXTEND_UNSIGNED	1
 #define FUNCTION_MODE 			QImode
 #define CASE_VECTOR_MODE		Pmode

-- 
Joseph S. Myers
joseph@codesourcery.com

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

* Re: svr4.h avoidance: rx
  2010-12-09 19:04 svr4.h avoidance: rx Joseph S. Myers
@ 2010-12-15 11:20 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2010-12-15 11:20 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: gcc-patches

Hi Joseph,

> 2010-12-09  Joseph Myers<joseph@codesourcery.com>
>
> 	* config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
> 	* config.gcc (rx-*-elf*): Don't use svr4.h.

Approved - please apply.

Cheers
   Nick

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

end of thread, other threads:[~2010-12-15 11:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 19:04 svr4.h avoidance: rx Joseph S. Myers
2010-12-15 11:20 ` Nick Clifton

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