PATCH: PR target/59672: Add -m16 support for x86

H.J. Lu
Tue Jan 28 17:12:00 GMT 2014

On Tue, Jan 28, 2014 at 8:42 AM, Uros Bizjak <> wrote:
> On Tue, Jan 28, 2014 at 5:35 PM, H.J. Lu <> wrote:
>>>>> The .code16gcc directive was added to binutils back in 1999:
>> scan-asm testcase doesn't do anything useful.  The only
>> difference in assembly code between -m16 and -m32 is the
>> .code16gcc directive  All magic is done in assembler.
> The test would just pass -m16 in dg-options and scan for the above
> directive. It is a simple test that -m16 works as expected.

scan-asm doesn't work with -m32 on Linux/x86-64 with


since -m32 is appended after any dg-options:

Executing on host:
-fno-diagnostics-show-caret -fdiagnostics-color=never  -ansi
-pedantic-errors -m16 -ffat-lto-objects -S  -m32 -o m16-1.s
(timeout = 300)

Is there a way to change it?


More information about the Gcc-patches mailing list