* Makeconfig (+includes): Don't use $(last-includes).
This commit is contained in:
parent
85047fe3b9
commit
3045a1fe89
|
@ -1,3 +1,7 @@
|
||||||
|
2003-03-23 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* Makeconfig (+includes): Don't use $(last-includes).
|
||||||
|
|
||||||
2003-03-22 Alexandre Oliva <aoliva@redhat.com>
|
2003-03-22 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
|
* sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
|
||||||
|
|
|
@ -621,7 +621,7 @@ endif # $(+cflags) == ""
|
||||||
+includes = -I$(..)include -I. \
|
+includes = -I$(..)include -I. \
|
||||||
$(patsubst %/,-I%,$(objpfx)) $(patsubst %/,-I%,$(..)) \
|
$(patsubst %/,-I%,$(objpfx)) $(patsubst %/,-I%,$(..)) \
|
||||||
$(libio-include) $(includes) \
|
$(libio-include) $(includes) \
|
||||||
$(+sysdep-includes) $(last-includes) $(sysincludes)
|
$(+sysdep-includes) $(sysincludes)
|
||||||
|
|
||||||
# Since libio has several internal header files, we use a -I instead
|
# Since libio has several internal header files, we use a -I instead
|
||||||
# of many little headers in the include directory.
|
# of many little headers in the include directory.
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
2003-03-23 Roland McGrath <roland@redhat.com>
|
2003-03-23 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* tst-tls3.c (do_test) [! HAVE___THREAD]: Don't test anything.
|
||||||
|
* tst-tls3mod.c: Likewise.
|
||||||
|
* tst-tls1.c: Likewise.
|
||||||
|
* tst-tls2.c: Likewise.
|
||||||
|
|
||||||
* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
|
* tst-mutex5.c (do_test): Unlock before destroy, otherwise we invoke
|
||||||
undefined behavior.
|
undefined behavior.
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
|
#if HAVE___THREAD
|
||||||
struct test_s
|
struct test_s
|
||||||
{
|
{
|
||||||
int a;
|
int a;
|
||||||
|
@ -51,11 +52,19 @@ tf (void *arg)
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
do_test (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
|
#if !HAVE___THREAD
|
||||||
|
|
||||||
|
puts ("No __thread support in compiler, test skipped.");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
|
||||||
if (s.a != INIT_A || s.b != INIT_B)
|
if (s.a != INIT_A || s.b != INIT_B)
|
||||||
{
|
{
|
||||||
puts ("initial value of s in main thread wrong");
|
puts ("initial value of s in main thread wrong");
|
||||||
|
@ -85,6 +94,7 @@ do_test (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#if HAVE___THREAD
|
||||||
|
|
||||||
#define N 10
|
#define N 10
|
||||||
static pthread_t th[N];
|
static pthread_t th[N];
|
||||||
|
@ -105,11 +106,18 @@ tf (void *arg)
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
do_test (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
|
#if !HAVE___THREAD
|
||||||
|
|
||||||
|
puts ("No __thread support in compiler, test skipped.");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
|
||||||
if (pthread_barrier_init (&b, NULL, N + 1) != 0)
|
if (pthread_barrier_init (&b, NULL, N + 1) != 0)
|
||||||
{
|
{
|
||||||
puts ("barrier_init failed");
|
puts ("barrier_init failed");
|
||||||
|
@ -179,6 +187,7 @@ do_test (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,13 @@ int nsigs;
|
||||||
int
|
int
|
||||||
do_test (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
|
#if !HAVE___THREAD
|
||||||
|
|
||||||
|
puts ("No __thread support in compiler, test skipped.");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
|
|
||||||
if (pthread_barrier_init (&b, NULL, N + 1) != 0)
|
if (pthread_barrier_init (&b, NULL, N + 1) != 0)
|
||||||
{
|
{
|
||||||
puts ("barrier_init failed");
|
puts ("barrier_init failed");
|
||||||
|
@ -172,6 +179,7 @@ do_test (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
#if HAVE___THREAD
|
||||||
|
|
||||||
extern pthread_barrier_t b;
|
extern pthread_barrier_t b;
|
||||||
|
|
||||||
#define TOTAL_SIGS 1000
|
#define TOTAL_SIGS 1000
|
||||||
|
@ -79,3 +81,5 @@ tf (void *arg)
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue