* egcs-19980425, system.h stuff part 2/6
@ 1998-05-01 19:37 Kaveh R. Ghazi
0 siblings, 0 replies; only message in thread
From: Kaveh R. Ghazi @ 1998-05-01 19:37 UTC (permalink / raw)
To: egcs
This is part 2/6. Note the isascii check is needed by
system.h. The atof decl was used by cp/lex.c in a later part.
Fri May 1 15:56:40 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.
diff -rup orig/egcs-19980425/gcc/configure.in egcs-19980425/gcc/configure.in
--- orig/egcs-19980425/gcc/configure.in Fri Apr 24 10:58:22 1998
+++ egcs-19980425/gcc/configure.in Fri May 1 14:47:42 1998
@@ -181,12 +181,13 @@ AC_CACHE_VAL(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 \
- 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_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
diff -rup orig/egcs-19980425/gcc/configure egcs-19980425/gcc/configure
--- orig/egcs-19980425/gcc/configure Sun Apr 26 01:26:11 1998
+++ egcs-19980425/gcc/configure Fri May 1 14:50:35 1998
@@ -1676,7 +1676,8 @@ fi
echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
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
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1683: checking for $ac_func" >&5
@@ -1779,7 +1780,7 @@ fi
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
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
diff -rup orig/egcs-19980425/gcc/rtl.c egcs-19980425/gcc/rtl.c
--- orig/egcs-19980425/gcc/rtl.c Fri Apr 10 09:41:28 1998
+++ egcs-19980425/gcc/rtl.c Fri May 1 15:04:07 1998
@@ -35,10 +35,6 @@ Boston, MA 02111-1307, USA. */
During optimization and output, this is function_obstack. */
extern struct obstack *rtl_obstack;
-
-#ifdef NEED_DECLARATION_ATOL
-extern long atol();
-#endif
\f
/* Indexed by rtx code, gives number of operands for an rtx with that code.
Does NOT include rtx header data (code and links).
diff -rup orig/egcs-19980425/gcc/rtl.h egcs-19980425/gcc/rtl.h
--- orig/egcs-19980425/gcc/rtl.h Sat Apr 25 12:09:22 1998
+++ egcs-19980425/gcc/rtl.h Fri May 1 14:46:26 1998
@@ -712,9 +712,6 @@ extern char *xrealloc ();
extern char *oballoc 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 rtvec rtvec_alloc PROTO((int));
extern rtx copy_rtx PROTO((rtx));
diff -rup orig/egcs-19980425/gcc/system.h egcs-19980425/gcc/system.h
--- orig/egcs-19980425/gcc/system.h Fri Apr 3 11:37:09 1998
+++ egcs-19980425/gcc/system.h Fri May 1 14:46:26 1998
@@ -180,12 +180,28 @@ extern char *rindex ();
# endif
#endif
+#ifdef NEED_DECLARATION_ABORT
+void abort ();
+#endif
+
+#ifdef NEED_DECLARATION_ATOF
+extern double atof ();
+#endif
+
+#ifdef NEED_DECLARATION_ATOL
+extern long atol();
+#endif
+
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
#ifdef NEED_DECLARATION_GETENV
extern char *getenv ();
+#endif
+
+#ifdef NEED_DECLARATION_SBRK
+extern char *sbrk ();
#endif
#endif /* __GCC_SYSTEM_H__ */
diff -rup orig/egcs-19980425/gcc/toplev.c egcs-19980425/gcc/toplev.c
--- orig/egcs-19980425/gcc/toplev.c Thu Apr 16 20:40:33 1998
+++ egcs-19980425/gcc/toplev.c Fri May 1 14:46:26 1998
@@ -201,14 +201,6 @@ void print_switch_values ();
/* Length of line when printing switch values. */
#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. */
char *progname;
diff -rup orig/egcs-19980425/gcc/tree.h egcs-19980425/gcc/tree.h
--- orig/egcs-19980425/gcc/tree.h Fri Apr 17 10:02:51 1998
+++ egcs-19980425/gcc/tree.h Fri May 1 14:46:26 1998
@@ -1255,9 +1255,6 @@ extern char *oballoc PROTO((int));
extern char *permalloc PROTO((int));
extern char *savealloc PROTO((int));
extern char *expralloc PROTO((int));
-#ifdef NEED_DECLARATION_FREE
-extern void free PROTO((void *));
-#endif
/* Lowest level primitive for allocating a node.
The TREE_CODE is the only argument. Contents are initialized
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-01 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-01 19:37 egcs-19980425, system.h stuff part 2/6 Kaveh R. Ghazi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).