acconifg.h (NEED_DECLARATION_ATOL): New declaration to check for.
authorJeffrey A Law <law@cygnus.com>
Sat, 17 Jan 1998 23:00:46 +0000 (23:00 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 17 Jan 1998 23:00:46 +0000 (16:00 -0700)
        * 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
gcc/acconfig.h
gcc/config.in
gcc/rtl.c

index 3efb4cb1e3ef1826028d903476e01b004f3ebee4..99e6e8fea8d6ce45c4a6d56df765a6b48c721b09 100644 (file)
@@ -54,6 +54,9 @@ Sat Jan 17 21:24:16 1998  David T. McWherter <dtm@waterw.com>
 
 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
index 41c0cf8b1d61bc6a2f50ad5c07b1adcd849b74a2..6d550a8b999bd778d949c854e34af42cbbcb0fc9 100644 (file)
@@ -21,4 +21,7 @@
 
 /* Whether getenv must be declared even if <stdlib.h> is included.  */
 #undef NEED_DECLARATION_GETENV
+
+/* Whether atol must be declared even if <stdlib.h> is included.  */
+#undef NEED_DECLARATION_ATOL
 @TOP@
index 92d4ca095fe7fec81ae68168ab5986f1f54b4291..18a7528091bf45059bd3207ebd80ae65904ae2fc 100644 (file)
@@ -23,6 +23,9 @@
 /* Whether getenv must be declared even if <stdlib.h> is included.  */
 #undef NEED_DECLARATION_GETENV
 
+/* Whether atol must be declared even if <stdlib.h> is included.  */
+#undef NEED_DECLARATION_ATOL
+
 /* Define if you have the ANSI C header files.  */
 #undef STDC_HEADERS
 
index c4486773c8a5ebc0dbeb9a4ad6be067208c52699..113687453ac9d58049ffa7aa4bba6f2855e9107b 100644 (file)
--- 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
 \f