mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 00:18:44 +02:00
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:
committed by
Matthias Clasen
parent
1e2c77ecbc
commit
79668cdf02
11
configure.in
11
configure.in
@@ -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])
|
||||
|
Reference in New Issue
Block a user