Commit 8f81384f by Kaveh R. Ghazi Committed by Kaveh Ghazi

The isascii check is needed by system.h.

        * configure.in (AC_CHECK_FUNCS): Add isascii.
        (GCC_NEED_DECLARATIONS): Add atof.
        * system.h: Provide prototypes for abort, atof, atol and sbrk here.
        * rtl.c, rtl.h, toplev.c, tree.h: Not here.

From-SVN: r19572
parent e572c0c6
Wed May 6 11:21:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in (AC_CHECK_FUNCS): Add isascii.
(GCC_NEED_DECLARATIONS): Add atof.
* system.h: Provide prototypes for abort, atof, atol and sbrk here.
* rtl.c, rtl.h, toplev.c, tree.h: Not here.
Wed May 6 10:52:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Wed May 6 10:52:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h: Wrap time.h and sys/file.h in autoconf checks. * system.h: Wrap time.h and sys/file.h in autoconf checks.
......
...@@ -1676,7 +1676,8 @@ fi ...@@ -1676,7 +1676,8 @@ fi
echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
for ac_func in strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \ for ac_func in strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
index rindex strchr strrchr kill getrlimit setrlimit atoll atoq sysconf index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1683: checking for $ac_func" >&5 echo "configure:1683: checking for $ac_func" >&5
...@@ -1779,7 +1780,7 @@ fi ...@@ -1779,7 +1780,7 @@ fi
for ac_func in malloc realloc calloc free bcopy bzero bcmp \ for ac_func in malloc realloc calloc free bcopy bzero bcmp \
index rindex getenv atol sbrk abort index rindex getenv atol sbrk abort atof
do do
echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
echo "configure:1786: checking whether $ac_func must be declared" >&5 echo "configure:1786: checking whether $ac_func must be declared" >&5
......
...@@ -181,12 +181,13 @@ AC_CACHE_VAL(gcc_cv_header_inttypes_h, ...@@ -181,12 +181,13 @@ AC_CACHE_VAL(gcc_cv_header_inttypes_h,
AC_MSG_RESULT($gcc_cv_header_inttypes_h) AC_MSG_RESULT($gcc_cv_header_inttypes_h)
AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \ AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
index rindex strchr strrchr kill getrlimit setrlimit atoll atoq sysconf) index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii)
GCC_FUNC_PRINTF_PTR GCC_FUNC_PRINTF_PTR
GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \ GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
index rindex getenv atol sbrk abort) index rindex getenv atol sbrk abort atof)
AC_DECL_SYS_SIGLIST AC_DECL_SYS_SIGLIST
......
...@@ -36,10 +36,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -36,10 +36,6 @@ Boston, MA 02111-1307, USA. */
extern struct obstack *rtl_obstack; extern struct obstack *rtl_obstack;
#ifdef NEED_DECLARATION_ATOL
extern long atol();
#endif
/* Indexed by rtx code, gives number of operands for an rtx with that code. /* Indexed by rtx code, gives number of operands for an rtx with that code.
Does NOT include rtx header data (code and links). Does NOT include rtx header data (code and links).
This array is initialized in init_rtl. */ This array is initialized in init_rtl. */
......
...@@ -712,9 +712,6 @@ extern char *xrealloc (); ...@@ -712,9 +712,6 @@ extern char *xrealloc ();
extern char *oballoc PROTO((int)); extern char *oballoc PROTO((int));
extern char *permalloc PROTO((int)); extern char *permalloc PROTO((int));
#ifdef NEED_DECLARATION_FREE
extern void free PROTO((void *));
#endif
extern rtx rtx_alloc PROTO((RTX_CODE)); extern rtx rtx_alloc PROTO((RTX_CODE));
extern rtvec rtvec_alloc PROTO((int)); extern rtvec rtvec_alloc PROTO((int));
extern rtx copy_rtx PROTO((rtx)); extern rtx copy_rtx PROTO((rtx));
......
...@@ -190,6 +190,14 @@ extern char *rindex (); ...@@ -190,6 +190,14 @@ extern char *rindex ();
# endif # endif
#endif #endif
#ifdef NEED_DECLARATION_ATOF
extern double atof ();
#endif
#ifdef NEED_DECLARATION_ATOL
extern long atol();
#endif
#ifdef NEED_DECLARATION_FREE #ifdef NEED_DECLARATION_FREE
extern void free (); extern void free ();
#endif #endif
...@@ -198,6 +206,10 @@ extern void free (); ...@@ -198,6 +206,10 @@ extern void free ();
extern char *getenv (); extern char *getenv ();
#endif #endif
#ifdef NEED_DECLARATION_SBRK
extern char *sbrk ();
#endif
/* Redefine abort to report an internal error w/o coredump, and reporting the /* Redefine abort to report an internal error w/o coredump, and reporting the
location of the error in the source file. */ location of the error in the source file. */
#ifndef abort #ifndef abort
...@@ -209,7 +221,11 @@ extern char *getenv (); ...@@ -209,7 +221,11 @@ extern char *getenv ();
#endif /* !__GNUC__ */ #endif /* !__GNUC__ */
#endif /* !__STDC__ */ #endif /* !__STDC__ */
#ifndef USE_SYSTEM_ABORT #ifdef USE_SYSTEM_ABORT
# ifdef NEED_DECLARATION_ABORT
void abort ();
# endif
#else
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
#define abort() \ #define abort() \
(fprintf (stderr, \ (fprintf (stderr, \
...@@ -224,7 +240,7 @@ extern char *getenv (); ...@@ -224,7 +240,7 @@ extern char *getenv ();
exit (FATAL_EXIT_CODE)) exit (FATAL_EXIT_CODE))
#endif /* recent gcc */ #endif /* recent gcc */
#endif /* !USE_SYSTEM_ABORT */ #endif /* USE_SYSTEM_ABORT */
#endif /* !abort */ #endif /* !abort */
#endif /* __GCC_SYSTEM_H__ */ #endif /* __GCC_SYSTEM_H__ */
...@@ -201,14 +201,6 @@ void print_switch_values (); ...@@ -201,14 +201,6 @@ void print_switch_values ();
/* Length of line when printing switch values. */ /* Length of line when printing switch values. */
#define MAX_LINE 75 #define MAX_LINE 75
#ifdef NEED_DECLARATION_ABORT
void abort ();
#endif
#ifdef NEED_DECLARATION_SBRK
extern char *sbrk ();
#endif
/* Name of program invoked, sans directories. */ /* Name of program invoked, sans directories. */
char *progname; char *progname;
......
...@@ -1254,9 +1254,6 @@ extern char *oballoc PROTO((int)); ...@@ -1254,9 +1254,6 @@ extern char *oballoc PROTO((int));
extern char *permalloc PROTO((int)); extern char *permalloc PROTO((int));
extern char *savealloc PROTO((int)); extern char *savealloc PROTO((int));
extern char *expralloc PROTO((int)); extern char *expralloc PROTO((int));
#ifdef NEED_DECLARATION_FREE
extern void free PROTO((void *));
#endif
/* Lowest level primitive for allocating a node. /* Lowest level primitive for allocating a node.
The TREE_CODE is the only argument. Contents are initialized The TREE_CODE is the only argument. Contents are initialized
......
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