Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2017 18:55:35 +0000 (UTC)
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438061 - in head/lang: gcc/files gcc5/files gcc6/files
Message-ID:  <201704081855.v38ItZH5002650@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andreast (src committer)
Date: Sat Apr  8 18:55:35 2017
New Revision: 438061
URL: https://svnweb.freebsd.org/changeset/ports/438061

Log:
  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)

Modified:
  head/lang/gcc/files/patch-aarch64-support
  head/lang/gcc5/files/patch-aarch64-support
  head/lang/gcc6/files/patch-aarch64-support

Modified: head/lang/gcc/files/patch-aarch64-support
==============================================================================
--- head/lang/gcc/files/patch-aarch64-support	Sat Apr  8 18:47:57 2017	(r438060)
+++ head/lang/gcc/files/patch-aarch64-support	Sat Apr  8 18:55:35 2017	(r438061)
@@ -31,7 +31,7 @@ Index: gcc/config/aarch64/aarch64-freebs
 ===================================================================
 --- 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-freebs
 +#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
 ===================================================================

Modified: head/lang/gcc5/files/patch-aarch64-support
==============================================================================
--- head/lang/gcc5/files/patch-aarch64-support	Sat Apr  8 18:47:57 2017	(r438060)
+++ head/lang/gcc5/files/patch-aarch64-support	Sat Apr  8 18:55:35 2017	(r438061)
@@ -31,7 +31,7 @@ Index: gcc/config/aarch64/aarch64-freebs
 ===================================================================
 --- 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-freebs
 +#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
 ===================================================================

Modified: head/lang/gcc6/files/patch-aarch64-support
==============================================================================
--- head/lang/gcc6/files/patch-aarch64-support	Sat Apr  8 18:47:57 2017	(r438060)
+++ head/lang/gcc6/files/patch-aarch64-support	Sat Apr  8 18:55:35 2017	(r438061)
@@ -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
 ===================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704081855.v38ItZH5002650>