Check whether assembler supports numerical local labels.

2007-11-18  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Check whether assembler supports numerical local
        labels.

        * glib/gatomic.c: Fix powerpc implementation of atomic ops for
        platforms where the assembler doesn't support numerical local
        labels.  (#445362)


svn path=/trunk/; revision=5861
This commit is contained in:
Matthias Clasen
2007-11-18 17:42:59 +00:00
committed by Matthias Clasen
parent 1e2c77ecbc
commit 79668cdf02
3 changed files with 95 additions and 2 deletions

View File

@@ -2082,6 +2082,17 @@ if test x"$GCC" = xyes; then
AC_DEFINE_UNQUOTED(G_ATOMIC_POWERPC, 1,
[powerpc atomic implementation])
glib_memory_barrier_needed=yes
AC_MSG_CHECKING([whether asm supports numbered local labels])
AC_TRY_COMPILE(
,[
__asm__ __volatile__ ("1: nop\n"
" bne- 1b")
],[
AC_DEFINE_UNQUOTED(ASM_NUMERIC_LABELS, 1, [define if asm blocks can use numeric local labels])
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
])
;;
ia64)
AC_MSG_RESULT([ia64])