From a2cb05ed72fea4dda63b1d879970f430765e3db7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roger=20Pau=20Monn=C3=A9?= Date: Sun, 11 Dec 2016 17:28:53 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/x86-64.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a990b2d6b8f..b67688dfd80 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-11 Roger Pau Monné + + * 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 PR target/70118 diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index b0bf83589d7..9e6c6eb5a36 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) \ -- 2.30.2