From: Siddhesh Poyarekar Date: Fri, 18 Oct 2013 14:15:36 +0000 (+0530) Subject: Don't include tls.h in test cases X-Git-Tag: glibc-2.19~591 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7738d0822fd34e95ebf01ce8fa8ea397bc4843d;p=thirdparty%2Fglibc.git Don't include tls.h in test cases Remove tls.h includes where they are not needed. --- diff --git a/ChangeLog b/ChangeLog index 1c59515829e..c9fd07dee82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,29 @@ +2013-10-18 Siddhesh Poyarekar + + * elf/tst-tls-dlinfo.c: Don't include tls.h. + * elf/tst-tls1.c: Likewise. + * elf/tst-tls10.h: Likewise. + * elf/tst-tls14.c: Likewise. + * elf/tst-tls2.c: Likewise. + * elf/tst-tls3.c: Likewise. + * elf/tst-tls4.c: Likewise. + * elf/tst-tls5.c: Likewise. + * elf/tst-tls6.c: Likewise. + * elf/tst-tls7.c: Likewise. + * elf/tst-tls8.c: Likewise. + * elf/tst-tls9.c: Likewise. + * elf/tst-tlsmod1.c: Likewise. + * elf/tst-tlsmod13.c: Likewise. + * elf/tst-tlsmod13a.c: Likewise. + * elf/tst-tlsmod14a.c: Likewise. + * elf/tst-tlsmod16a.c: Likewise. + * elf/tst-tlsmod16b.c: Likewise. + * elf/tst-tlsmod2.c: Likewise. + * elf/tst-tlsmod3.c: Likewise. + * elf/tst-tlsmod4.c: Likewise. + * elf/tst-tlsmod5.c: Likewise. + * elf/tst-tlsmod6.c: Likewise. + 2013-10-18 Ondřej Bílka [BZ #12486] diff --git a/elf/tst-tls-dlinfo.c b/elf/tst-tls-dlinfo.c index 26c2811178f..28661b19c2f 100644 --- a/elf/tst-tls-dlinfo.c +++ b/elf/tst-tls-dlinfo.c @@ -2,8 +2,6 @@ #include #include -#include - #define TEST_FUNCTION do_test () static int diff --git a/elf/tst-tls1.c b/elf/tst-tls1.c index 3b9b10f9aaa..bec0a2ff261 100644 --- a/elf/tst-tls1.c +++ b/elf/tst-tls1.c @@ -1,8 +1,6 @@ /* glibc test for TLS in ld.so. */ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tls10.h b/elf/tst-tls10.h index 2b5709af72f..7c8c6a63916 100644 --- a/elf/tst-tls10.h +++ b/elf/tst-tls10.h @@ -1,4 +1,3 @@ -#include #include struct A diff --git a/elf/tst-tls14.c b/elf/tst-tls14.c index ffd31e97be3..6bacb599ddd 100644 --- a/elf/tst-tls14.c +++ b/elf/tst-tls14.c @@ -4,8 +4,6 @@ #include #include -#include - #define AL 4096 struct foo { diff --git a/elf/tst-tls2.c b/elf/tst-tls2.c index 3d13272c08a..d0b6d51402d 100644 --- a/elf/tst-tls2.c +++ b/elf/tst-tls2.c @@ -1,8 +1,6 @@ /* glibc test for TLS in ld.so. */ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tls3.c b/elf/tst-tls3.c index c5e501eb4ee..ca96c6a073c 100644 --- a/elf/tst-tls3.c +++ b/elf/tst-tls3.c @@ -1,8 +1,6 @@ /* glibc test for TLS in ld.so. */ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tls4.c b/elf/tst-tls4.c index 4ae33db24d9..63170c34786 100644 --- a/elf/tst-tls4.c +++ b/elf/tst-tls4.c @@ -2,8 +2,6 @@ #include #include -#include - #define TEST_FUNCTION do_test () static int diff --git a/elf/tst-tls5.c b/elf/tst-tls5.c index 27b18294fb2..76905c56db0 100644 --- a/elf/tst-tls5.c +++ b/elf/tst-tls5.c @@ -2,8 +2,6 @@ #include #include -#include - #define TEST_FUNCTION do_test () static int diff --git a/elf/tst-tls6.c b/elf/tst-tls6.c index 021622d9c7c..9e6235f1d34 100644 --- a/elf/tst-tls6.c +++ b/elf/tst-tls6.c @@ -3,7 +3,6 @@ #include #include -#include #define TEST_FUNCTION do_test () diff --git a/elf/tst-tls7.c b/elf/tst-tls7.c index 1edc2b63568..23a16e44897 100644 --- a/elf/tst-tls7.c +++ b/elf/tst-tls7.c @@ -3,7 +3,6 @@ #include #include -#include #define TEST_FUNCTION do_test () diff --git a/elf/tst-tls8.c b/elf/tst-tls8.c index 36b1baca636..4bf3e3ffb58 100644 --- a/elf/tst-tls8.c +++ b/elf/tst-tls8.c @@ -3,7 +3,6 @@ #include #include -#include #define TEST_FUNCTION do_test () diff --git a/elf/tst-tls9.c b/elf/tst-tls9.c index 12078518fad..6306fb56586 100644 --- a/elf/tst-tls9.c +++ b/elf/tst-tls9.c @@ -3,7 +3,6 @@ #include #include -#include #define TEST_FUNCTION do_test () static int diff --git a/elf/tst-tlsmod1.c b/elf/tst-tlsmod1.c index 4d966c9472c..8d9156791be 100644 --- a/elf/tst-tlsmod1.c +++ b/elf/tst-tlsmod1.c @@ -1,7 +1,5 @@ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tlsmod13.c b/elf/tst-tlsmod13.c index 76da630a05e..7712d8b8c86 100644 --- a/elf/tst-tlsmod13.c +++ b/elf/tst-tlsmod13.c @@ -1,5 +1,3 @@ -#include - __thread int a[2] __attribute__ ((tls_model ("initial-exec"))); int diff --git a/elf/tst-tlsmod13a.c b/elf/tst-tlsmod13a.c index d5515d4a15f..ca4eaccbff1 100644 --- a/elf/tst-tlsmod13a.c +++ b/elf/tst-tlsmod13a.c @@ -1,5 +1,3 @@ -#include - __thread int b[2] __attribute__ ((tls_model ("initial-exec"))); extern int foo (void); diff --git a/elf/tst-tlsmod14a.c b/elf/tst-tlsmod14a.c index 6806d3403c9..824c06d1f9a 100644 --- a/elf/tst-tlsmod14a.c +++ b/elf/tst-tlsmod14a.c @@ -1,8 +1,6 @@ #include #include -#include - #define AL 4096 struct foo { diff --git a/elf/tst-tlsmod16a.c b/elf/tst-tlsmod16a.c index c16e603c8b4..4ec6a6c37d0 100644 --- a/elf/tst-tlsmod16a.c +++ b/elf/tst-tlsmod16a.c @@ -1,3 +1 @@ -#include - int __thread tlsvar; diff --git a/elf/tst-tlsmod16b.c b/elf/tst-tlsmod16b.c index 7268c56bcb6..1ecba26dbed 100644 --- a/elf/tst-tlsmod16b.c +++ b/elf/tst-tlsmod16b.c @@ -1,5 +1,3 @@ -#include - extern __thread int tlsvar __attribute__((tls_model("initial-exec"))); void * diff --git a/elf/tst-tlsmod2.c b/elf/tst-tlsmod2.c index 981923313c5..40eb1407f86 100644 --- a/elf/tst-tlsmod2.c +++ b/elf/tst-tlsmod2.c @@ -1,7 +1,5 @@ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tlsmod3.c b/elf/tst-tlsmod3.c index 5c456ee2da4..6d186c47ee6 100644 --- a/elf/tst-tlsmod3.c +++ b/elf/tst-tlsmod3.c @@ -1,7 +1,5 @@ #include -#include - #include "tls-macros.h" extern int in_dso (int n, int *caller_foop); diff --git a/elf/tst-tlsmod4.c b/elf/tst-tlsmod4.c index dd954866186..86889aac7e5 100644 --- a/elf/tst-tlsmod4.c +++ b/elf/tst-tlsmod4.c @@ -1,7 +1,5 @@ #include -#include - #include "tls-macros.h" diff --git a/elf/tst-tlsmod5.c b/elf/tst-tlsmod5.c index 00d3a9d9203..a97c7e5e0c6 100644 --- a/elf/tst-tlsmod5.c +++ b/elf/tst-tlsmod5.c @@ -1,5 +1,3 @@ -#include - #include "tls-macros.h" COMMON_INT_DEF(foo); diff --git a/elf/tst-tlsmod6.c b/elf/tst-tlsmod6.c index 244d9ae485a..e968596dd4e 100644 --- a/elf/tst-tlsmod6.c +++ b/elf/tst-tlsmod6.c @@ -1,5 +1,3 @@ -#include - #include "tls-macros.h" COMMON_INT_DEF(bar);