svn commit: r437455 - in head/lang/gcc5: . files
Gerald Pfeifer
gerald at FreeBSD.org
Sat Apr 1 18:35:07 UTC 2017
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é <roger.pau at 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) \
More information about the svn-ports-all
mailing list