x86-64.h: Append --32 to the assembler options when -m16 is used on non-glibc systems...
authorRoger Pau Monné <roger.pau@citrix.com>
Sun, 11 Dec 2016 17:28:53 +0000 (17:28 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sun, 11 Dec 2016 17:28:53 +0000 (17:28 +0000)
* 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
gcc/config/i386/x86-64.h

index a990b2d6b8f2e697ad7b9e3ebc7b30133bb60493..b67688dfd801cdd329c3e27756b45fbdc8432dbe 100644 (file)
@@ -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
index b0bf83589d7b4a5ae34d7c5e4549c7876e81025f..9e6c6eb5a362b99242ed478e137a15c2f732150f 100644 (file)
@@ -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) \