aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Pau Monné <roger.pau@citrix.com>2016-12-11 17:28:53 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2016-12-11 17:28:53 +0000
commita2cb05ed72fea4dda63b1d879970f430765e3db7 (patch)
tree89fb899413d7c01c997850869ff79ebfc961fdd8 /gcc
parent865fc9684661c46589a30c6021cf44de560940f3 (diff)
downloadgcc-a2cb05ed72fea4dda63b1d879970f430765e3db7.zip
gcc-a2cb05ed72fea4dda63b1d879970f430765e3db7.tar.gz
gcc-a2cb05ed72fea4dda63b1d879970f430765e3db7.tar.bz2
x86-64.h: Append --32 to the assembler options when -m16 is used on non-glibc systems as well.
* config/i386/x86-64.h: Append --32 to the assembler options when -m16 is used on non-glibc systems as well. From-SVN: r243528
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/x86-64.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a990b2d..b67688d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
+
+ * config/i386/x86-64.h: Append --32 to the assembler options when
+ -m16 is used on non-glibc systems as well.
+
2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
PR target/70118
diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h
index b0bf835..9e6c6eb 100644
--- a/gcc/config/i386/x86-64.h
+++ b/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) \