This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: enable n32 and n64, and move o32 into mips/mips32


On Mar 29, 2003, Roland McGrath <roland at redhat dot com> wrote:

> tls.h in linuxthreads has come to actual mean all the thread-local storage
> accessors for the machine not just ELF TLS per se, i.e. THREAD_GETMEM et al
> are there in at least most of the ports.

Anyway, this patch fixes all of the linuxthreads build problems I've
run into.  Ok?

Index: linuxthreads/ChangeLog
from  Alexandre Oliva  <aoliva at redhat dot com>

	* alloca_cutoff.c: Include internals.h.
	* sysdeps/pthread/errno-loc.c: Include linuxthreads/internals.h.
	* sysdeps/pthread/herrno-loc.c: Likewise.
	* sysdeps/pthread/res-state.c: Likewise.

Index: linuxthreads/alloca_cutoff.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/alloca_cutoff.c,v
retrieving revision 1.1
diff -u -p -r1.1 alloca_cutoff.c
--- linuxthreads/alloca_cutoff.c 28 Dec 2002 10:18:52 -0000 1.1
+++ linuxthreads/alloca_cutoff.c 29 Mar 2003 07:43:50 -0000
@@ -1,5 +1,5 @@
 /* Determine whether block of given size can be allocated on the stack or not.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,7 @@
 #include <alloca.h>
 #include <stdlib.h>
 #include <sys/param.h>
+#include "internals.h"
 #include <sysdep-cancel.h>
 
 int
Index: linuxthreads/sysdeps/pthread/errno-loc.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/errno-loc.c,v
retrieving revision 1.2
diff -u -p -r1.2 errno-loc.c
--- linuxthreads/sysdeps/pthread/errno-loc.c 31 Dec 2002 20:27:16 -0000 1.2
+++ linuxthreads/sysdeps/pthread/errno-loc.c 29 Mar 2003 07:43:50 -0000
@@ -1,6 +1,6 @@
 /* MT support function to get address of `errno' variable, linuxthreads
    version.
-   Copyright (C) 1996, 1998, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1998, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,7 @@
 
 #include <errno.h>
 #include <tls.h>
+#include <linuxthreads/internals.h>
 #include <sysdep-cancel.h>
 
 #if ! USE___THREAD
Index: linuxthreads/sysdeps/pthread/herrno-loc.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/herrno-loc.c,v
retrieving revision 1.2
diff -u -p -r1.2 herrno-loc.c
--- linuxthreads/sysdeps/pthread/herrno-loc.c 31 Dec 2002 20:27:52 -0000 1.2
+++ linuxthreads/sysdeps/pthread/herrno-loc.c 29 Mar 2003 07:43:50 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 97, 98, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 97, 98, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,7 @@
 
 #include <netdb.h>
 #include <tls.h>
+#include <linuxthreads/internals.h>
 #include <sysdep-cancel.h>
 
 #if ! USE___THREAD
Index: linuxthreads/sysdeps/pthread/res-state.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/res-state.c,v
retrieving revision 1.2
diff -u -p -r1.2 res-state.c
--- linuxthreads/sysdeps/pthread/res-state.c 31 Dec 2002 20:29:09 -0000 1.2
+++ linuxthreads/sysdeps/pthread/res-state.c 29 Mar 2003 07:43:50 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 97, 98, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 97, 98, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,7 @@
 
 #include <resolv.h>
 #include <tls.h>
+#include <linuxthreads/internals.h>
 #include <sysdep-cancel.h>
 
 #if ! USE___THREAD
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]