From: hjl Date: Thu, 11 Sep 2014 22:18:06 +0000 (+0000) Subject: Also turn off OPTION_MASK_ABI_X32 for -m16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2225dc8ebf68a940551bb295e956eb88fb01b81;p=thirdparty%2Fgcc.git Also turn off OPTION_MASK_ABI_X32 for -m16 PR target/63228 * config/i386/i386.c (ix86_option_override_internal): Also turn off OPTION_MASK_ABI_X32 for -m16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215194 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 234ea6083308..1b0700417ec2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-11 H.J. Lu + + PR target/63228 + * config/i386/i386.c (ix86_option_override_internal): Also turn + off OPTION_MASK_ABI_X32 for -m16. + 2014-09-11 Segher Boessenkool * config/rs6000/rs6000.md (rs6000_mftb_): Use mode iterator diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 8f45e52d9f3f..cb308c9ee959 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3346,8 +3346,9 @@ ix86_option_override_internal (bool main_args_p, /* When TARGET_BI_ARCH == 2, by default, OPTION_MASK_ABI_X32 is on and OPTION_MASK_ABI_64 is off. We turn off OPTION_MASK_ABI_X32 if OPTION_MASK_ABI_64 is turned on by - -m64. */ - if (TARGET_LP64_P (opts->x_ix86_isa_flags)) + -m64 or OPTION_MASK_CODE16 is turned on by -m16. */ + if (TARGET_LP64_P (opts->x_ix86_isa_flags) + || TARGET_16BIT_P (opts->x_ix86_isa_flags)) opts->x_ix86_isa_flags &= ~OPTION_MASK_ABI_X32; #endif }