This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] remove WCHAR_TYPE definition for FreeBSD PowerPC64
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 6 Dec 2015 23:54:58 +0100
- Subject: [patch] remove WCHAR_TYPE definition for FreeBSD PowerPC64
- Authentication-results: sourceware.org; auth=none
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