From patchwork Fri Jul 9 21:03:16 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 11:03:16 -0000 From: Uros Bizjak X-Patchwork-Id: 58433 Message-Id: <1278709397.2387.10.camel@localhost> To: IainS Cc: GCC Patches On Fri, 2010-07-09 at 20:44 +0100, IainS wrote: > Hm. but you did change the test from > > #if !HAVE_AS_IX86_REP_LOCK_PREFIX > > to > > #ifndef HAVE_AS_IX86_REP_LOCK_PREFIX > ... > #endif > > but > > HAVE_AS_IX86_REP_LOCK_PREFIX is defined as 0 or 1 Uh, yes. Fixed by attached patch: 2010-07-09 Uros Bizjak * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test. * configure: Regenerate. Tested on x86_64-pc-linux-gnu, committed to mainline SVN. Thanks for noticing, Uros. Index: configure.ac =================================================================== --- configure.ac (revision 162014) +++ configure.ac (working copy) @@ -3328,10 +3328,9 @@ 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`], - [Define true if the assembler supports 'rep , lock '.]) + lock orl $0, (%esp)],, + [AC_DEFINE(HAVE_AS_IX86_REP_LOCK_PREFIX, 1, + [Define if the assembler supports 'rep , lock '.])]) ;; Index: configure =================================================================== --- configure (revision 162014) +++ configure (working copy) @@ -23356,13 +23356,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; } +if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then +$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_AS_IX86_REP_LOCK_PREFIX `if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi` -_ACEOF +fi - ;; ia64*-*-*)