This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

PATCH for gthr.h (was:: Problems bootstrapping on i686-linux)


On Mon, Jun 18, 2001 at 04:57:50PM -0400, Adam Schrotenboer wrote:
> during bootstrap, gcc 3.0 release  barfs on gthr.[ch] (can't remember for
> sure, from memory) in libstdc++, bad preprocessor directives #_GLIBC_*
> 
> Any ideas people???

I think the following patch is needed.
Can someone make sure this makes it into 3.01? :)


Index: gcc/gthr.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gthr.h,v
retrieving revision 1.7
diff -u -d -p -r1.7 gthr.h
--- gthr.h	2000/01/27 18:49:12	1.7
+++ gthr.h	2001/06/19 03:27:00
@@ -82,11 +82,11 @@ Boston, MA 02111-1307, USA.  */
 
 /* Check first for thread specific defines. */
 #if _PTHREADS
-#include "gthr-posix.h"
+#include "bits/gthr-posix.h"
 #elif _DCE_THREADS
 #include "gthr-dce.h"
 #elif _SOLARIS_THREADS
-#include "gthr-solaris.h"
+#include "bits/gthr-solaris.h"
 
 /* Include GTHREAD_FILE if one is defined. */
 #elif defined(HAVE_GTHR_DEFAULT)
@@ -95,11 +95,11 @@ Boston, MA 02111-1307, USA.  */
 #define GTHREAD_USE_WEAK 1
 #endif
 #endif
-#include "gthr-default.h"
+#include "bits/gthr-default.h"
 
 /* Fallback to single thread definitions. */
 #else
-#include "gthr-single.h"
+#include "bits/gthr-single.h"
 #endif
 
 #endif /* not __gthr_h */



-- 
Carlo Wood <carlo@alinoe.com>


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