From owner-svn-ports-head@freebsd.org Sat Apr 1 18:35:07 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 033BED294EF; Sat, 1 Apr 2017 18:35:07 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF6ADBA0; Sat, 1 Apr 2017 18:35:06 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v31IZ53i012572; Sat, 1 Apr 2017 18:35:05 GMT (envelope-from gerald@FreeBSD.org) Received: (from gerald@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v31IZ5w9012570; Sat, 1 Apr 2017 18:35:05 GMT (envelope-from gerald@FreeBSD.org) Message-Id: <201704011835.v31IZ5w9012570@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gerald set sender to gerald@FreeBSD.org using -f From: Gerald Pfeifer Date: Sat, 1 Apr 2017 18:35:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437455 - in head/lang/gcc5: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 18:35:07 -0000 Author: gerald Date: Sat Apr 1 18:35:05 2017 New Revision: 437455 URL: https://svnweb.freebsd.org/changeset/ports/437455 Log: Add files/patch-x86-64-fix-m16 which already has been accepted in the upstream GCC 5 branch (and hence is in lang/gcc5-devel) and which we carry in lang/gcc. It should become obsolete when/if GCC 5.5 releases. Added: head/lang/gcc5/files/patch-x86-64-fix-m16 - copied unchanged from r437440, head/lang/gcc/files/patch-x86-64-fix-m16 Modified: head/lang/gcc5/Makefile Modified: head/lang/gcc5/Makefile ============================================================================== --- head/lang/gcc5/Makefile Sat Apr 1 18:16:18 2017 (r437454) +++ head/lang/gcc5/Makefile Sat Apr 1 18:35:05 2017 (r437455) @@ -3,6 +3,7 @@ PORTNAME= gcc PORTVERSION= 5.4.0 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= GCC/releases/gcc-${DISTVERSION} PKGNAMESUFFIX= ${SUFFIX} Copied: head/lang/gcc5/files/patch-x86-64-fix-m16 (from r437440, head/lang/gcc/files/patch-x86-64-fix-m16) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/gcc5/files/patch-x86-64-fix-m16 Sat Apr 1 18:35:05 2017 (r437455, copy of r437440, head/lang/gcc/files/patch-x86-64-fix-m16) @@ -0,0 +1,25 @@ +At the moment the -m16 option only passes the "--32" parameter to the +assembler on glibc OSes, while on other OSes the assembler is called +without any specific flag. This is wrong and causes the assembler to +fail. Fix it by adding support for the -m16 option to x86-64.h. + +2016-07-06 Roger Pau Monné + + * x86-64.h: append --32 to the assembler options when -m16 is used + even on non-glibc OSes. + +This should be backported to all stable branches up to 4.9 (when -m16 was +introduced). + +--- UTC +--- gcc/config/i386/x86-64.h ++++ gcc/config/i386/x86-64.h +@@ -49,7 +49,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + #define WCHAR_TYPE_SIZE 32 + + #undef ASM_SPEC +-#define ASM_SPEC "%{m32:--32} %{m64:--64} %{mx32:--x32}" ++#define ASM_SPEC "%{m16|m32:--32} %{m64:--64} %{mx32:--x32}" + + #undef ASM_OUTPUT_ALIGNED_BSS + #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \