aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 91cb190..e7d3f54 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-09 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.h (override_options): Conditionally disable
+ x86_sahf for 64bit targets only.
+
2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C/31072
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a4c91fb..70fd96c 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 "