[PATCH, i386]: Commited: Conditionally disable sahf for 64bit targets only

Uros Bizjak ubizjak@gmail.com
Fri Mar 9 08:27:00 GMT 2007


Hello!

This patch fixes a small oversight in my recent commit.

Tested on x86_64-linux-gnu, commited to SVN.

2007-03-09  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.h (override_options): Conditionally disable
	x86_sahf for 64bit targets only.

Uros.

Index: i386.c
===================================================================
--- i386.c      (revision 122739)
+++ i386.c      (working copy)
@@ -2153,7 +2153,7 @@
        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 "



More information about the Gcc-patches mailing list