diff mbox

[i386] : Correct HAVE_AS_IX86_REP_LOCK_PREFIX configure test for Darwin

Message ID 1278739853.2459.0.camel@localhost
State New
Headers show

Commit Message

Uros Bizjak July 10, 2010, 5:30 a.m. UTC
On Fri, 2010-07-09 at 16:50 -0700, Mike Stump wrote:
> On Jul 9, 2010, at 9:08 AM, Uros Bizjak wrote:
> > Attached patch fixes HAVE_AS_IX86_REP_LOCK_PREFIX configure test for
> > Darwin and removes special handling from output_operand.
> 
> ENOPATCH?

Attached.

Uros.
diff mbox

Patch

--- trunk/gcc/configure.ac	2010/07/09 15:01:14	162000
+++ trunk/gcc/configure.ac	2010/07/09 16:02:58	162001
@@ -3327,6 +3327,7 @@ 
     gcc_GAS_CHECK_FEATURE([rep and lock prefix],
         gcc_cv_as_ix86_rep_lock_prefix,,,
 	[rep movsl
+	 lock addl %edi, (%eax,%esi)
 	 lock orl $0, (%esp)])
     AC_DEFINE_UNQUOTED(HAVE_AS_IX86_REP_LOCK_PREFIX,
       [`if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi`],
--- trunk/gcc/configure	2010/07/09 15:01:14	162000
+++ trunk/gcc/configure	2010/07/09 16:02:58	162001
@@ -23337,6 +23337,7 @@ 
   gcc_cv_as_ix86_rep_lock_prefix=no
   if test x$gcc_cv_as != x; then
     echo 'rep movsl
+	 lock addl %edi, (%eax,%esi)
 	 lock orl $0, (%esp)' > conftest.s
     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
--- trunk/gcc/config/i386/i386.c	2010/07/09 15:01:14	162000
+++ trunk/gcc/config/i386/i386.c	2010/07/09 16:02:58	162001
@@ -12651,7 +12651,7 @@ 
 	  return;
 
 	case ';':
-#if TARGET_MACHO || !HAVE_AS_IX86_REP_LOCK_PREFIX
+#ifndef HAVE_AS_IX86_REP_LOCK_PREFIX
 	  fputs (";", file);
 #endif
 	  return;