Date: Sun, 11 Dec 2016 16:20:21 +0000 (UTC) From: Gerald Pfeifer <gerald@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428360 - in head/lang/gcc49: . files Message-ID: <201612111620.uBBGKMam020212@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gerald Date: Sun Dec 11 16:20:21 2016 New Revision: 428360 URL: https://svnweb.freebsd.org/changeset/ports/428360 Log: Copy over files/patch-x86-64-fix-m16 from lang/gcc since both ports are about the same version of GCC (except lang/gcc will move on to GCC 5). Added: head/lang/gcc49/files/patch-x86-64-fix-m16 - copied unchanged from r428286, head/lang/gcc/files/patch-x86-64-fix-m16 Modified: head/lang/gcc49/Makefile Modified: head/lang/gcc49/Makefile ============================================================================== --- head/lang/gcc49/Makefile Sun Dec 11 16:14:05 2016 (r428359) +++ head/lang/gcc49/Makefile Sun Dec 11 16:20:21 2016 (r428360) @@ -3,6 +3,7 @@ PORTNAME= gcc PORTVERSION= 4.9.4 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= GCC/releases/gcc-${DISTVERSION} PKGNAMESUFFIX= ${SUFFIX} Copied: head/lang/gcc49/files/patch-x86-64-fix-m16 (from r428286, head/lang/gcc/files/patch-x86-64-fix-m16) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/gcc49/files/patch-x86-64-fix-m16 Sun Dec 11 16:20:21 2016 (r428360, copy of r428286, 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é <roger.pau@citrix.com> + + * 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) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612111620.uBBGKMam020212>