From aef28d1d1eb2d3af2b6015c764345724744ee5fe Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sat, 17 Jan 1998 23:00:46 +0000 Subject: [PATCH] acconifg.h (NEED_DECLARATION_ATOL): New declaration to check for. * acconifg.h (NEED_DECLARATION_ATOL): New declaration to check for. * rtl.c (atol): Only provide the declaration if NEED_DECLARATION_ATOL. From-SVN: r17404 --- gcc/ChangeLog | 3 +++ gcc/acconfig.h | 3 +++ gcc/config.in | 3 +++ gcc/rtl.c | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3efb4cb1e3e..99e6e8fea8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -54,6 +54,9 @@ Sat Jan 17 21:24:16 1998 David T. McWherter Sat Jan 17 21:16:19 1998 Jeffrey A Law (law@cygnus.com) + * acconfig.h (NEED_DECLARATION_ATOL): New declaration to check for. + * rtl.c (atol): Only provide the declaration if NEED_DECLARATION_ATOL. + * rtl.c (read_rtx): Initialize list_rtx to NULL, not NULL_RTX. * loop.c (find_and_verify_loops): When attempting to move insns from diff --git a/gcc/acconfig.h b/gcc/acconfig.h index 41c0cf8b1d6..6d550a8b999 100644 --- a/gcc/acconfig.h +++ b/gcc/acconfig.h @@ -21,4 +21,7 @@ /* Whether getenv must be declared even if is included. */ #undef NEED_DECLARATION_GETENV + +/* Whether atol must be declared even if is included. */ +#undef NEED_DECLARATION_ATOL @TOP@ diff --git a/gcc/config.in b/gcc/config.in index 92d4ca095fe..18a7528091b 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -23,6 +23,9 @@ /* Whether getenv must be declared even if is included. */ #undef NEED_DECLARATION_GETENV +/* Whether atol must be declared even if is included. */ +#undef NEED_DECLARATION_ATOL + /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/gcc/rtl.c b/gcc/rtl.c index c4486773c8a..113687453ac 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -40,7 +40,7 @@ Boston, MA 02111-1307, USA. */ extern struct obstack *rtl_obstack; -#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT +#ifdef NEED_DECLARATION_ATOL extern long atol(); #endif -- 2.30.2