mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 07:20:29 +08:00
configure.in: Find declaration for sbrk.
* configure.in: Find declaration for sbrk. * acconfig.h (NEED_DECLARATION_SBRK): New tag. * config.in, configure: Rebuild. * mips-tfile.c: Properly protect declaration of sbrk and free. * toplev.c: Properly protect declaration of sbrk. From-SVN: r17417
This commit is contained in:
parent
bb02e7eaa4
commit
c5d0345e8d
@ -1,3 +1,11 @@
|
||||
Mon Jan 19 09:38:18 1998 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* configure.in: Find declaration for sbrk.
|
||||
* acconfig.h (NEED_DECLARATION_SBRK): New tag.
|
||||
* config.in, configure: Rebuild.
|
||||
* mips-tfile.c: Properly protect declaration of sbrk and free.
|
||||
* toplev.c: Properly protect declaration of sbrk.
|
||||
|
||||
Sun Jan 18 20:18:01 1998 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* alpha.c (alpha_handle_trap_shadows): Ignore CLOBBERs.
|
||||
|
@ -13,10 +13,10 @@
|
||||
/* Whether free must be declared even if <stdlib.h> is included. */
|
||||
#undef NEED_DECLARATION_FREE
|
||||
|
||||
/* Whether index must be declared even if <stdlib.h> is included. */
|
||||
/* Whether index must be declared even if <string.h> is included. */
|
||||
#undef NEED_DECLARATION_INDEX
|
||||
|
||||
/* Whether rindex must be declared even if <stdlib.h> is included. */
|
||||
/* Whether rindex must be declared even if <string.h> is included. */
|
||||
#undef NEED_DECLARATION_RINDEX
|
||||
|
||||
/* Whether getenv must be declared even if <stdlib.h> is included. */
|
||||
@ -24,4 +24,7 @@
|
||||
|
||||
/* Whether atol must be declared even if <stdlib.h> is included. */
|
||||
#undef NEED_DECLARATION_ATOL
|
||||
|
||||
/* Whether sbrk must be declared even if <unistd.h> is included. */
|
||||
#undef NEED_DECLARATION_SBRK
|
||||
@TOP@
|
||||
|
@ -14,10 +14,10 @@
|
||||
/* Whether free must be declared even if <stdlib.h> is included. */
|
||||
#undef NEED_DECLARATION_FREE
|
||||
|
||||
/* Whether index must be declared even if <stdlib.h> is included. */
|
||||
/* Whether index must be declared even if <string.h> is included. */
|
||||
#undef NEED_DECLARATION_INDEX
|
||||
|
||||
/* Whether rindex must be declared even if <stdlib.h> is included. */
|
||||
/* Whether rindex must be declared even if <string.h> is included. */
|
||||
#undef NEED_DECLARATION_RINDEX
|
||||
|
||||
/* Whether getenv must be declared even if <stdlib.h> is included. */
|
||||
@ -26,6 +26,9 @@
|
||||
/* Whether atol must be declared even if <stdlib.h> is included. */
|
||||
#undef NEED_DECLARATION_ATOL
|
||||
|
||||
/* Whether sbrk must be declared even if <unistd.h> is included. */
|
||||
#undef NEED_DECLARATION_SBRK
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
|
326
gcc/configure
vendored
326
gcc/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -186,6 +186,7 @@ GCC_NEED_DECLARATION(free)
|
||||
GCC_NEED_DECLARATION(index)
|
||||
GCC_NEED_DECLARATION(rindex)
|
||||
GCC_NEED_DECLARATION(getenv)
|
||||
GCC_NEED_DECLARATION(sbrk)
|
||||
|
||||
AC_DECL_SYS_SIGLIST
|
||||
|
||||
|
@ -1755,8 +1755,10 @@ STATIC void free_thead __proto((thead_t *));
|
||||
STATIC char *local_index __proto((const char *, int));
|
||||
STATIC char *local_rindex __proto((const char *, int));
|
||||
|
||||
#ifndef __alpha
|
||||
#ifdef NEED_DECLARATION_SBRK
|
||||
extern char *sbrk __proto((int));
|
||||
#endif
|
||||
#ifdef NEED_DECLARATION_FREE
|
||||
extern void free __proto((PTR_T));
|
||||
#endif
|
||||
extern char *mktemp __proto((char *));
|
||||
|
@ -39,6 +39,9 @@ Boston, MA 02111-1307, USA. */
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#undef FLOAT /* This is for hpux. They should change hpux. */
|
||||
#undef FFS /* Some systems define this in param.h. */
|
||||
@ -190,7 +193,7 @@ void print_switch_values ();
|
||||
/* Length of line when printing switch values. */
|
||||
#define MAX_LINE 75
|
||||
|
||||
#ifdef __alpha
|
||||
#ifdef NEED_DECLARATION_SBRK
|
||||
extern char *sbrk ();
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user