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

Alexander Monakov amonakov@ispras.ru
Wed Jan 29 14:42:00 GMT 2014


On Wed, 29 Jan 2014, H.J. Lu wrote:
> Since the .code16gcc directive was added to binutils back in 1999,
> it is older than the minimum binutils required for x86 GCC.  There
> is no need to specify a separate minimum binutils for it.

It's not clear to me why the compiler should be involved in providing this
functionality.  Can the assembler simply support '-mcode16gcc' command-line
flag, which would have the effect of enabling .code16gcc for the whole
translation unit?  That way, you could simply add -Wa,-mcode16gcc to the GCC
command line and avoid the need to patch the compiler.  Am I missing
something?

Thanks.

Alexander



More information about the Gcc-patches mailing list