From: uros Date: Fri, 9 Mar 2007 07:21:19 +0000 (+0000) Subject: * config/i386/i386.h (override_options): Conditionally disable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1d7c974d5e1fdce7f84257cc9d3b34e47860913;p=thirdparty%2Fgcc.git * config/i386/i386.h (override_options): Conditionally disable x86_sahf for 64bit targets only. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122740 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91cb19099679..e7d3f541db27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-03-09 Uros Bizjak + + * config/i386/i386.h (override_options): Conditionally disable + x86_sahf for 64bit targets only. + 2007-03-08 Andrew Pinski PR C/31072 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index a4c91fb20b4e..70fd96ce8fe4 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2153,7 +2153,7 @@ override_options (void) if (processor_alias_table[i].flags & PTA_SSE4A && !(target_flags_explicit & MASK_SSE4A)) target_flags |= MASK_SSE4A; - if (!(processor_alias_table[i].flags & PTA_NO_SAHF)) + if (!(TARGET_64BIT && (processor_alias_table[i].flags & PTA_NO_SAHF))) x86_sahf = true; if (TARGET_64BIT && !(processor_alias_table[i].flags & PTA_64BIT)) error ("CPU you selected does not support x86-64 "