about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-03 21:08:05 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-03 21:08:05 +0000
commitfbd90f6c25ad26706dee0898d6eaca40881852f9 (patch)
tree76a3b64eb51df6224501bb0e44cb76ef4f200ac2 /nptl
parent414f49c0349d3de3478672a9c56b349d65cdf8f1 (diff)
downloadglibc-fbd90f6c25ad26706dee0898d6eaca40881852f9.tar.gz
glibc-fbd90f6c25ad26706dee0898d6eaca40881852f9.tar.xz
glibc-fbd90f6c25ad26706dee0898d6eaca40881852f9.zip
Update.
2003-07-03  Ulrich Drepper  <drepper@redhat.com>

	* configure.in: Also check for .cfi_rel_offset pseudo-op.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog2
-rwxr-xr-xnptl/sysdeps/pthread/configure24
-rw-r--r--nptl/sysdeps/pthread/configure.in4
3 files changed, 16 insertions, 14 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 0b016b095f..b80879e54e 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,7 @@
 2003-07-03  Ulrich Drepper  <drepper@redhat.com>
 
+	* sysdeps/pthread/configure.in: Require CFI directives.
+
 	* sysdeps/pthread/librt-cancellation.c (__pthread_unwind): Remove
 	definition.
 	* pthreadP.h (__pthread_unwind): Add hidden_proto if used in
diff --git a/nptl/sysdeps/pthread/configure b/nptl/sysdeps/pthread/configure
index f0c3da139d..39182cbb6c 100755
--- a/nptl/sysdeps/pthread/configure
+++ b/nptl/sysdeps/pthread/configure
@@ -6,6 +6,12 @@ echo "$as_me: error: compiler support for __thread is required" >&2;}
    { (exit 1); exit 1; }; }
 fi
 
+if test "x$libc_cv_asm_cfi_directives" != xyes; then
+  { { echo "$as_me:$LINENO: error: CFI directive support in assembler is required" >&5
+echo "$as_me: error: CFI directive support in assembler is required" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
 
 echo "$as_me:$LINENO: checking for forced unwind support" >&5
 echo $ECHO_N "checking for forced unwind support... $ECHO_C" >&6
@@ -14,11 +20,7 @@ if test "${libc_cv_forced_unwind+set}" = set; then
 else
   cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
+#include "confdefs.h"
 #include <unwind.h>
 int
 main ()
@@ -46,8 +48,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   libc_cv_forced_unwind=yes
 else
   echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
+cat conftest.$ac_ext >&5
 libc_cv_forced_unwind=no
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
@@ -68,11 +69,7 @@ if test "${libc_cv_c_cleanup+set}" = set; then
 else
     cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
+#include "confdefs.h"
 
 #include <stdio.h>
 void cl (void *a) { }
@@ -102,8 +99,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   libc_cv_c_cleanup=yes
 else
   echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
+cat conftest.$ac_ext >&5
 libc_cv_c_cleanup=no
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
diff --git a/nptl/sysdeps/pthread/configure.in b/nptl/sysdeps/pthread/configure.in
index 922741e723..e0fb10b67c 100644
--- a/nptl/sysdeps/pthread/configure.in
+++ b/nptl/sysdeps/pthread/configure.in
@@ -5,6 +5,10 @@ if test "x$libc_cv_gcc___thread" != xyes; then
   AC_MSG_ERROR(compiler support for __thread is required)
 fi
 
+if test "x$libc_cv_asm_cfi_directives" != xyes; then
+  AC_MSG_ERROR(CFI directive support in assembler is required)
+fi
+
 dnl Iff <unwind.h> is available, make sure it is the right one and it
 dnl contains struct _Unwind_Exception.
 AC_CACHE_CHECK(dnl