diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-11 06:27:04 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-11 06:27:04 +0000 |
commit | 17f4f6cb5a57bf5debf272067cda4061f22fed3a (patch) | |
tree | 84cdb8434984529cb5d2724af92ab328c4cbae93 /libgomp | |
parent | e5f280341b24dd4423411b0f8e929eee198d4488 (diff) | |
download | gcc-17f4f6cb5a57bf5debf272067cda4061f22fed3a.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 9 | ||||
-rw-r--r-- | libgomp/config.h.in | 3 | ||||
-rwxr-xr-x | libgomp/configure | 3 | ||||
-rw-r--r-- | libgomp/configure.ac | 2 | ||||
-rw-r--r-- | libgomp/env.c | 3 |
5 files changed, 18 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 92b999fd3c3..ca5d3c0dce5 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/config.h.in b/libgomp/config.h.in index 88a616ca1ed..5f0dcc7570b 100644 --- a/libgomp/config.h.in +++ b/libgomp/config.h.in @@ -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 diff --git a/libgomp/configure b/libgomp/configure index f22c8a06c31..038aef5ef36 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -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 diff --git a/libgomp/configure.ac b/libgomp/configure.ac index 12c92340e8c..21aed2ba819 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -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. diff --git a/libgomp/env.c b/libgomp/env.c index 022fb1bb0ad..50872c277fe 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -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, |