From 418dd5cefef6cd8d80de3997a0590503d653bc04 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Mon, 1 Jun 2015 21:46:17 +0200 Subject: [PATCH] read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL. 2015-06-01 Andreas Tobler * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL. * config.in: Regenerate. From-SVN: r223996 --- gcc/ChangeLog | 5 +++++ gcc/config.in | 21 +++++++++++---------- gcc/read-rtl.c | 4 ++-- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 40f0c1f4684..a7f3071e913 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-01 Andreas Tobler + + * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL. + * config.in: Regenerate. + 2015-06-01 Yuri Rumyantsev * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow diff --git a/gcc/config.in b/gcc/config.in index daaf9067e4f..3aee936c473 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -624,12 +624,6 @@ #endif -/* Define to 1 if you have the `atoll' function. */ -#ifndef USED_FOR_TARGET -#undef HAVE_ATOLL -#endif - - /* Define to 1 if you have the `atoq' function. */ #ifndef USED_FOR_TARGET #undef HAVE_ATOQ @@ -686,8 +680,15 @@ #endif -/* Define to 1 if we found a declaration for 'basename', otherwise define to - 0. */ +/* Define to 1 if we found a declaration for 'atoll', otherwise define to 0. + */ +#ifndef USED_FOR_TARGET +#undef HAVE_DECL_ATOLL +#endif + + +/* Define to 1 if you have the declaration of `basename(const char*)', and to + 0 if you don't. */ #ifndef USED_FOR_TARGET #undef HAVE_DECL_BASENAME #endif @@ -963,8 +964,8 @@ #endif -/* Define to 1 if we found a declaration for 'strstr', otherwise define to 0. - */ +/* Define to 1 if you have the declaration of `strstr(const char*,const + char*)', and to 0 if you don't. */ #ifndef USED_FOR_TARGET #undef HAVE_DECL_STRSTR #endif diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 749efaff8af..138f179610c 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -704,7 +704,7 @@ initialize_iterators (void) /* Provide a version of a function to read a long long if the system does not provide one. */ -#if HOST_BITS_PER_WIDE_INT > HOST_BITS_PER_LONG && !defined(HAVE_ATOLL) && !defined(HAVE_ATOQ) +#if HOST_BITS_PER_WIDE_INT > HOST_BITS_PER_LONG && !HAVE_DECL_ATOLL && !defined(HAVE_ATOQ) HOST_WIDE_INT atoll (const char *); HOST_WIDE_INT @@ -1328,7 +1328,7 @@ read_rtx_code (const char *code_name) #else /* Prefer atoll over atoq, since the former is in the ISO C99 standard. But prefer not to use our hand-rolled function above either. */ -#if defined(HAVE_ATOLL) || !defined(HAVE_ATOQ) +#if HAVE_DECL_ATOLL || !defined(HAVE_ATOQ) tmp_wide = atoll (name.string); #else tmp_wide = atoq (name.string);