From patchwork Sat Jul 10 05:30:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [i386] : Correct HAVE_AS_IX86_REP_LOCK_PREFIX configure test for Darwin Date: Fri, 09 Jul 2010 19:30:53 -0000 From: Uros Bizjak X-Patchwork-Id: 58461 Message-Id: <1278739853.2459.0.camel@localhost> To: Mike Stump Cc: gcc-patches@gcc.gnu.org, IainS 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. --- 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;