i386.h (override_options): Conditionally disable x86_sahf for 64bit targets only.
authorUros Bizjak <ubizjak@gmail.com>
Fri, 9 Mar 2007 07:21:19 +0000 (08:21 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 9 Mar 2007 07:21:19 +0000 (08:21 +0100)
        * config/i386/i386.h (override_options): Conditionally disable
x86_sahf for 64bit targets only.

From-SVN: r122740

gcc/ChangeLog
gcc/config/i386/i386.c

index 91cb190996796524efc4a44398d13c876b498535..e7d3f541db277eac23ef422cb6a9c167564e32aa 100644 (file)
@@ -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
index a4c91fb20b4e25e5d547033bb533d2a5ec0e322a..70fd96ce8fe4cb30c9a28d51f1acc505c35cf7bd 100644 (file)
@@ -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 "