This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] remove WCHAR_TYPE definition for FreeBSD PowerPC64


Hi,

I'm going to commit this patch to trunk, 5.4 and 4.9 branch if there are no objections.

The redefinition of WCHAR_TYPE for PowerPC64 is wrong since its beginning. My fault.

We use the definition from freebsd.h.

Thanks,
Andreas

2015-12-06  Andreas Tobler  <andreast@gcc.gnu.org>

	* config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.

Index: freebsd64.h
===================================================================
--- freebsd64.h	(revision 231129)
+++ freebsd64.h	(working copy)
@@ -316,8 +316,6 @@
 #define PTRDIFF_TYPE	(TARGET_64BIT ? "long int" : "int")

/* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
-#undef WCHAR_TYPE
-#define	WCHAR_TYPE      (TARGET_64BIT ? "int" : "long int")
 #undef  WCHAR_TYPE_SIZE
 #define WCHAR_TYPE_SIZE 32


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]