aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKai Tietz <ktietz@redhat.com>2013-09-10 11:09:05 +0200
committerKai Tietz <ktietz@gcc.gnu.org>2013-09-10 11:09:05 +0200
commitf14a732496e916cd10e67f2630ddd1eb77cfa7ab (patch)
tree1f686e7f355bb63fdfab93a6e35ae97dbcfddd16 /gcc/config
parent7dbdaf87da09ca1b3ff501d0a89ea28463b541bb (diff)
downloadgcc-f14a732496e916cd10e67f2630ddd1eb77cfa7ab.zip
gcc-f14a732496e916cd10e67f2630ddd1eb77cfa7ab.tar.gz
gcc-f14a732496e916cd10e67f2630ddd1eb77cfa7ab.tar.bz2
invoke.texi (fms-extensions): Document changed behavior for ms-abi targets.
* doc/invoke.texi (fms-extensions): Document changed behavior for ms-abi targets. * config/i386/i386.c (ix86_option_override_internal): Set default value of option -fms-extension for ms-abi targets. From-SVN: r202429
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 1f07e6f..fe9a714 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -3357,6 +3357,12 @@ ix86_option_override_internal (bool main_args_p)
if (!global_options_set.x_ix86_abi)
ix86_abi = DEFAULT_ABI;
+ /* For targets using ms ABI enable ms-extensions, if not
+ explicit turned off. For non-ms ABI we turn off this
+ option. */
+ if (!global_options_set.x_flag_ms_extensions)
+ flag_ms_extensions = (MS_ABI == DEFAULT_ABI);
+
if (global_options_set.x_ix86_cmodel)
{
switch (ix86_cmodel)