From 9faaf9385034ac71f308643de1afc91b5dd731aa Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 25 Jul 2018 13:20:15 +0000 Subject: Fix C11 conformance issues Remove conformace assumption of NPTL implementation for ISO C threads and revert wrong libcrypt addition on linknamespace-libs-XPG4. The i686-gnu target now shows two new conformance failures: FAIL: conform/ISO11/threads.h/conform FAIL: conform/ISO11/threads.h/linknamespace It is expected due missing HTL ISO C threads support and both conformance .out files indicates the reason ("#error "HTL does not implement ISO C threads"). Checked on i686-linux-gnu and i686-gnu. * include/threads.h: Move to ... * sysdeps/nptl/threads.h: ... here. * sysdeps/htl/threads.h: New file. * conform/Makefile (linknamespace-libs-ISO11): Use static-thread-library instead of linking libpthread. (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition. --- ChangeLog | 9 +++++++++ conform/Makefile | 5 ++--- include/threads.h | 1 - sysdeps/htl/threads.h | 1 + sysdeps/nptl/threads.h | 1 + 5 files changed, 13 insertions(+), 4 deletions(-) delete mode 100644 include/threads.h create mode 100644 sysdeps/htl/threads.h create mode 100644 sysdeps/nptl/threads.h diff --git a/ChangeLog b/ChangeLog index a7fcb6dfb2..f6aa73550b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2018-07-25 Adhemerval Zanella + + * include/threads.h: Move to ... + * sysdeps/nptl/threads.h: ... here. + * sysdeps/htl/threads.h: New file. + * conform/Makefile (linknamespace-libs-ISO11): Use + static-thread-library instead of linking libpthread. + (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition. + 2018-07-25 Florian Weimer * nptl/tst-mtx-timedlock.c (do_test): Implement carry from diff --git a/conform/Makefile b/conform/Makefile index a0ab70e302..d43093171b 100644 --- a/conform/Makefile +++ b/conform/Makefile @@ -197,9 +197,8 @@ linknamespace-libs-xsi = $(linknamespace-libs-posix) linknamespace-libs-ISO = $(linknamespace-libs-isoc) linknamespace-libs-ISO99 = $(linknamespace-libs-isoc) linknamespace-libs-ISO11 = $(linknamespace-libs-isoc) \ - $(common-objpfx)nptl/libpthread.a -linknamespace-libs-XPG4 = $(linknamespace-libs-isoc) \ - $(common-objpfx)crypt/libcrypt.a + $(static-thread-library) +linknamespace-libs-XPG4 = $(linknamespace-libs-isoc) linknamespace-libs-XPG42 = $(linknamespace-libs-XPG4) linknamespace-libs-POSIX = $(linknamespace-libs-thr) linknamespace-libs-UNIX98 = $(linknamespace-libs-xsi) diff --git a/include/threads.h b/include/threads.h deleted file mode 100644 index 1090612837..0000000000 --- a/include/threads.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/htl/threads.h b/sysdeps/htl/threads.h new file mode 100644 index 0000000000..3c04fbcc79 --- /dev/null +++ b/sysdeps/htl/threads.h @@ -0,0 +1 @@ +#error "HTL does not implement ISO C threads" diff --git a/sysdeps/nptl/threads.h b/sysdeps/nptl/threads.h new file mode 100644 index 0000000000..1090612837 --- /dev/null +++ b/sysdeps/nptl/threads.h @@ -0,0 +1 @@ +#include -- cgit v1.2.3