aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2017-04-09 02:55:35 +0800
committerandreast <andreast@FreeBSD.org>2017-04-09 02:55:35 +0800
commitb3d025d5d67e52edc1c80d917623a3446b64991c (patch)
tree5ed5bb8c602cfeeb9418e227d0df4141cb6bd119 /lang
parentd8e7b994a45901a6a5cbf03e2b2ae54b6d76b121 (diff)
downloadfreebsd-ports-gnome-b3d025d5d67e52edc1c80d917623a3446b64991c.tar.gz
freebsd-ports-gnome-b3d025d5d67e52edc1c80d917623a3446b64991c.tar.zst
freebsd-ports-gnome-b3d025d5d67e52edc1c80d917623a3446b64991c.zip
Define WCHAR_T for aarch64 on all active gcc (gcc/gcc5 and gcc6) releases.
This define is already in upstream. The gcc*-devel ports will pickup the commit from upstream. Submitted by: kan@ Approved by: gerald@ (maintainer)
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc/files/patch-aarch64-support7
-rw-r--r--lang/gcc5/files/patch-aarch64-support7
-rw-r--r--lang/gcc6/files/patch-aarch64-support7
3 files changed, 18 insertions, 3 deletions
diff --git a/lang/gcc/files/patch-aarch64-support b/lang/gcc/files/patch-aarch64-support
index 7272a1382b30..976848aca11b 100644
--- a/lang/gcc/files/patch-aarch64-support
+++ b/lang/gcc/files/patch-aarch64-support
@@ -31,7 +31,7 @@ Index: gcc/config/aarch64/aarch64-freebsd.h
===================================================================
--- gcc/config/aarch64/aarch64-freebsd.h (nonexistent)
+++ gcc/config/aarch64/aarch64-freebsd.h (working copy)
-@@ -0,0 +1,94 @@
+@@ -0,0 +1,99 @@
+/* Definitions for AArch64 running FreeBSD
+ Copyright (C) 2016 Free Software Foundation, Inc.
+
@@ -125,6 +125,11 @@ Index: gcc/config/aarch64/aarch64-freebsd.h
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
+
++/* Use the AAPCS type for wchar_t, override the one from
++ config/freebsd.h. */
++#undef WCHAR_TYPE
++#define WCHAR_TYPE "unsigned int"
++
+#endif /* GCC_AARCH64_FREEBSD_H */
Index: gcc/config/aarch64/t-aarch64-freebsd
===================================================================
diff --git a/lang/gcc5/files/patch-aarch64-support b/lang/gcc5/files/patch-aarch64-support
index 7272a1382b30..976848aca11b 100644
--- a/lang/gcc5/files/patch-aarch64-support
+++ b/lang/gcc5/files/patch-aarch64-support
@@ -31,7 +31,7 @@ Index: gcc/config/aarch64/aarch64-freebsd.h
===================================================================
--- gcc/config/aarch64/aarch64-freebsd.h (nonexistent)
+++ gcc/config/aarch64/aarch64-freebsd.h (working copy)
-@@ -0,0 +1,94 @@
+@@ -0,0 +1,99 @@
+/* Definitions for AArch64 running FreeBSD
+ Copyright (C) 2016 Free Software Foundation, Inc.
+
@@ -125,6 +125,11 @@ Index: gcc/config/aarch64/aarch64-freebsd.h
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
+
++/* Use the AAPCS type for wchar_t, override the one from
++ config/freebsd.h. */
++#undef WCHAR_TYPE
++#define WCHAR_TYPE "unsigned int"
++
+#endif /* GCC_AARCH64_FREEBSD_H */
Index: gcc/config/aarch64/t-aarch64-freebsd
===================================================================
diff --git a/lang/gcc6/files/patch-aarch64-support b/lang/gcc6/files/patch-aarch64-support
index a5c4fb339801..f8dbdacb9688 100644
--- a/lang/gcc6/files/patch-aarch64-support
+++ b/lang/gcc6/files/patch-aarch64-support
@@ -88,7 +88,7 @@
+LIB1ASMFUNCS = _aarch64_sync_cache_range
--- gcc/config/aarch64/aarch64-freebsd.h.orig 2016-10-20 21:29:03.780130000 +0200
+++ gcc/config/aarch64/aarch64-freebsd.h 2016-10-20 21:29:03.780349000 +0200
-@@ -0,0 +1,94 @@
+@@ -0,0 +1,99 @@
+/* Definitions for AArch64 running FreeBSD
+ Copyright (C) 2016 Free Software Foundation, Inc.
+
@@ -182,6 +182,11 @@
+#undef TARGET_BINDS_LOCAL_P
+#define TARGET_BINDS_LOCAL_P default_binds_local_p_2
+
++/* Use the AAPCS type for wchar_t, override the one from
++ config/freebsd.h. */
++#undef WCHAR_TYPE
++#define WCHAR_TYPE "unsigned int"
++
+#endif /* GCC_AARCH64_FREEBSD_H */
Index: gcc/dwarf2out.c
===================================================================