fix 25259

Richard Henderson rth@redhat.com
Tue Jan 24 22:02:00 GMT 2006


Patch by Paulo, pulled from the perl related pr.  
Tested on i686-linux.


r~


        PR libgomp/25259
        * configure.ac: Use GCC_HEADER_STDINT.
        * libgomp.h: Include gstdint.h.
        * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
        * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.

Index: libgomp_f.h.in
===================================================================
--- libgomp_f.h.in	(revision 110175)
+++ libgomp_f.h.in	(working copy)
@@ -32,12 +32,6 @@
 #define LIBGOMP_F_H 1
 
 #include "libgomp.h"
-#if HAVE_STDINT_H
-#include <stdint.h>
-#endif
-#if HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
 
 #if (OMP_LOCK_SIZE == OMP_LOCK_KIND) \
     && (OMP_LOCK_ALIGN <= OMP_LOCK_SIZE)
Index: configure.ac
===================================================================
--- configure.ac	(revision 110176)
+++ configure.ac	(working copy)
@@ -142,6 +142,8 @@ AC_CHECK_HEADERS(unistd.h semaphore.h sy
 AC_CHECK_HEADER([pthread.h],[],
   [AC_MSG_ERROR([Pthreads are required to build libgomp])])
 
+GCC_HEADER_STDINT(gstdint.h)
+
 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
 XPCFLAGS=""
 CFLAGS="$CFLAGS -pthread"
Index: libgomp.h
===================================================================
--- libgomp.h	(revision 110175)
+++ libgomp.h	(working copy)
@@ -38,6 +38,7 @@
 #define LIBGOMP_H 1
 
 #include "config.h"
+#include "gstdint.h"
 
 #include <pthread.h>
 #include <stdbool.h>



More information about the Gcc-patches mailing list