This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]