This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Suppress two tests for arm-linux NPTL
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-ports at sourceware dot org
- Date: Thu, 2 Mar 2006 10:21:06 -0500
- Subject: Suppress two tests for arm-linux NPTL
This isn't a beautiful patch, but it works. Until there is some way to
configure libgcc to use __thread during unwinding, the ARM SJLJ
configuration uses a pthread_setspecific key, which causes two NPTL
tests to fail; since this really doesn't matter much, skip the
two tests.
--
Daniel Jacobowitz
CodeSourcery
2006-03-02 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/eabi/Makefile (arm-using-eabi): Set.
* sysdeps/unix/sysv/linux/arm/nptl/Makefile: New file.
Index: glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/Makefile
===================================================================
--- glibc.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/Makefile 2005-12-22 12:20:32.000000000 -0500
+++ glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/Makefile 2005-12-22 13:43:48.000000000 -0500
@@ -1,3 +1,6 @@
+# Set this flag here so that arm/nptl/Makefile will see it.
+arm-using-eabi = yes
+
ifeq ($(subdir),csu)
# In order for unwinding to fail when it falls out of main, we need a
# cantunwind marker. There's one in start.S. To make sure we reach it, add
Index: glibc/ports/sysdeps/unix/sysv/linux/arm/nptl/Makefile
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ glibc/ports/sysdeps/unix/sysv/linux/arm/nptl/Makefile 2005-12-22 13:42:38.000000000 -0500
@@ -0,0 +1,8 @@
+ifeq ($(subdir),nptl)
+ifneq ($(arm-using-eabi),yes)
+# These tests rely on PTHREAD_KEYS_MAX. The SJLJ exception machinery
+# in libgcc registers one key, however, so only PTHREAD_KEYS_MAX-1
+# keys are available. This works fine for EABI targets.
+tests := $(filter-out tst-key1 tst-key4,$(tests))
+endif
+endif