]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libgomp/36469 (bootstrap broken on HPUX PA)
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jun 2008 06:27:04 +0000 (08:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jun 2008 06:27:04 +0000 (08:27 +0200)
PR libgomp/36469
* configure.ac: Add AC_CHECK_FUNCS (strtoull).
* configure: Regenerated.
* config.h.in: Regenerated.
* env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
defined.

From-SVN: r136650

libgomp/ChangeLog
libgomp/config.h.in
libgomp/configure
libgomp/configure.ac
libgomp/env.c

index 92b999fd3c305d038ee8d8942044edd1a192aa45..ca5d3c0dce54fdabf1ac3065120a6a522a91ed81 100644 (file)
@@ -1,3 +1,12 @@
+2008-06-11  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/36469
+       * configure.ac: Add AC_CHECK_FUNCS (strtoull).
+       * configure: Regenerated.
+       * config.h.in: Regenerated.
+       * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
+       defined.
+
 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
 
        PR bootstrap/36452
index 88a616ca1eddd783835de1718102de2c2d7bf2a5..5f0dcc7570bdca47664f6a95286b75ef6a6ff42b 100644 (file)
@@ -48,6 +48,9 @@
 /* Define to 1 if you have the <string.h> header file. */
 #undef HAVE_STRING_H
 
+/* Define to 1 if you have the `strtoull' function. */
+#undef HAVE_STRTOULL
+
 /* Define to 1 if the target supports __sync_*_compare_and_swap */
 #undef HAVE_SYNC_BUILTINS
 
index f22c8a06c318230c8a07542ca0a5f1c9cee3026c..038aef5ef36d9067e7b11866d236b78473efcf7e 100755 (executable)
@@ -16624,7 +16624,8 @@ rm -f conftest.err conftest.$ac_objext \
 # Check for functions needed.
 
 
-for ac_func in getloadavg clock_gettime
+
+for ac_func in getloadavg clock_gettime strtoull
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 echo "$as_me:$LINENO: checking for $ac_func" >&5
index 12c92340e8cc747953c7fd133af0d0b83a468142..21aed2ba8190457ab8eb305b77be2e561e317e09 100644 (file)
@@ -178,7 +178,7 @@ AC_LINK_IFELSE(
    [AC_MSG_ERROR([Pthreads are required to build libgomp])])])
 
 # Check for functions needed.
-AC_CHECK_FUNCS(getloadavg clock_gettime)
+AC_CHECK_FUNCS(getloadavg clock_gettime strtoull)
 
 # Check for broken semaphore implementation on darwin.
 # sem_init returns: sem_init error: Function not implemented.
index 022fb1bb0ad9a19c68ec1c6fa9a8f4ced2c66297..50872c277fe63fbbb85eaa27c7724c3cf550fe36 100644 (file)
@@ -47,6 +47,9 @@
 #include <limits.h>
 #include <errno.h>
 
+#ifndef HAVE_STRTOULL
+# define strtoull(ptr, eptr, base) strtoul (ptr, eptr, base)
+#endif
 
 struct gomp_task_icv gomp_global_icv = {
   .nthreads_var = 1,