Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 15:06:19 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r438173 - in branches/2017Q2/lang: gcc/files gcc5/files gcc6/files
Message-ID:  <201704101506.v3AF6Jds088611@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Apr 10 15:06:19 2017
New Revision: 438173
URL: https://svnweb.freebsd.org/changeset/ports/438173

Log:
  MFH: r438061 by andreast
  
  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)
  Approved by:	ports-secteam blanket

Modified:
  branches/2017Q2/lang/gcc/files/patch-aarch64-support
  branches/2017Q2/lang/gcc5/files/patch-aarch64-support
  branches/2017Q2/lang/gcc6/files/patch-aarch64-support
Directory Properties:
  branches/2017Q2/   (props changed)

Modified: branches/2017Q2/lang/gcc/files/patch-aarch64-support
==============================================================================
--- branches/2017Q2/lang/gcc/files/patch-aarch64-support	Mon Apr 10 14:51:50 2017	(r438172)
+++ branches/2017Q2/lang/gcc/files/patch-aarch64-support	Mon Apr 10 15:06:19 2017	(r438173)
@@ -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: branches/2017Q2/lang/gcc5/files/patch-aarch64-support
==============================================================================
--- branches/2017Q2/lang/gcc5/files/patch-aarch64-support	Mon Apr 10 14:51:50 2017	(r438172)
+++ branches/2017Q2/lang/gcc5/files/patch-aarch64-support	Mon Apr 10 15:06:19 2017	(r438173)
@@ -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: branches/2017Q2/lang/gcc6/files/patch-aarch64-support
==============================================================================
--- branches/2017Q2/lang/gcc6/files/patch-aarch64-support	Mon Apr 10 14:51:50 2017	(r438172)
+++ branches/2017Q2/lang/gcc6/files/patch-aarch64-support	Mon Apr 10 15:06:19 2017	(r438173)
@@ -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?201704101506.v3AF6Jds088611>