Commit 976e44e3 by Jakub Jelinek Committed by Jakub Jelinek

re PR libgomp/36469 (bootstrap broken on HPUX PA)

	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
parent a1968bf9
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> 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
PR bootstrap/36452 PR bootstrap/36452
......
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
/* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H #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 */ /* Define to 1 if the target supports __sync_*_compare_and_swap */
#undef HAVE_SYNC_BUILTINS #undef HAVE_SYNC_BUILTINS
......
...@@ -16624,7 +16624,8 @@ rm -f conftest.err conftest.$ac_objext \ ...@@ -16624,7 +16624,8 @@ rm -f conftest.err conftest.$ac_objext \
# Check for functions needed. # Check for functions needed.
for ac_func in getloadavg clock_gettime
for ac_func in getloadavg clock_gettime strtoull
do do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5 echo "$as_me:$LINENO: checking for $ac_func" >&5
......
...@@ -178,7 +178,7 @@ AC_LINK_IFELSE( ...@@ -178,7 +178,7 @@ AC_LINK_IFELSE(
[AC_MSG_ERROR([Pthreads are required to build libgomp])])]) [AC_MSG_ERROR([Pthreads are required to build libgomp])])])
# Check for functions needed. # Check for functions needed.
AC_CHECK_FUNCS(getloadavg clock_gettime) AC_CHECK_FUNCS(getloadavg clock_gettime strtoull)
# Check for broken semaphore implementation on darwin. # Check for broken semaphore implementation on darwin.
# sem_init returns: sem_init error: Function not implemented. # sem_init returns: sem_init error: Function not implemented.
......
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
#include <limits.h> #include <limits.h>
#include <errno.h> #include <errno.h>
#ifndef HAVE_STRTOULL
# define strtoull(ptr, eptr, base) strtoul (ptr, eptr, base)
#endif
struct gomp_task_icv gomp_global_icv = { struct gomp_task_icv gomp_global_icv = {
.nthreads_var = 1, .nthreads_var = 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment