This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, i386]: Committed: Fix x86_sahf setting condition.
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Jun 2007 14:59:15 +0200
- Subject: [PATCH, i386]: Committed: Fix x86_sahf setting condition.
Hello!
A fix for the collateral damage introduced by recent i386 patches.
Tested on i386-pc-linux-gnu, committed to mainline.
2007-06-22 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (override_options): Correct x86_sahf
setting condition.
Uros.
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 125942)
+++ config/i386/i386.c (working copy)
@@ -2059,7 +2059,7 @@
x86_popcnt = true;
if (processor_alias_table[i].flags & (PTA_PREFETCH_SSE | PTA_SSE))
x86_prefetch_sse = true;
- if ((processor_alias_table[i].flags & PTA_NO_SAHF) && !TARGET_64BIT)
+ if (!(TARGET_64BIT && (processor_alias_table[i].flags & PTA_NO_SAHF)))
x86_sahf = true;
break;