Commit 236ce4b2 by Zack Weinberg

configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.

	* configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
	* system.h: Declare snprintf if necessary.
	* configure, config.in: Regenerate.

From-SVN: r72557
parent 10f30fa8
2003-10-16 Zack Weinberg <zack@codesourcery.com>
* configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
* system.h: Declare snprintf if necessary.
* configure, config.in: Regenerate.
2003-10-15 David Edelsohn <edelsohn@gnu.org> 2003-10-15 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_va_arg): Only align vector * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
...@@ -26,13 +32,13 @@ ...@@ -26,13 +32,13 @@
* config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
prototype. Clean up some whitespace. prototype. Clean up some whitespace.
* config/darwin.c: Use gen_rtx_FOO (...) rather than * config/darwin.c: Use gen_rtx_FOO (...) rather than
gen_rtx (FOO, ...). gen_rtx (FOO, ...).
(machopic_non_lazy_ptr_name): Make static. (machopic_non_lazy_ptr_name): Make static.
(name_needs_quotes): Allow '.' and '$' unquoted. (name_needs_quotes): Allow '.' and '$' unquoted.
(machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
case. case.
2003-10-15 Gbor Lki <alga@rgai.hu> 2003-10-15 Gbor Lki <alga@rgai.hu>
* fold-const.c (tree_swap_operands_p): Disable some features * fold-const.c (tree_swap_operands_p): Disable some features
......
...@@ -340,6 +340,9 @@ ...@@ -340,6 +340,9 @@
#undef HAVE_DECL_ERRNO #undef HAVE_DECL_ERRNO
/* Define to 1 if we found this declaration otherwise define to 0. */ /* Define to 1 if we found this declaration otherwise define to 0. */
#undef HAVE_DECL_SNPRINTF
/* Define to 1 if we found this declaration otherwise define to 0. */
#undef HAVE_DECL_VASPRINTF #undef HAVE_DECL_VASPRINTF
/* Define to 1 if we found this declaration otherwise define to 0. */ /* Define to 1 if we found this declaration otherwise define to 0. */
......
...@@ -821,7 +821,7 @@ saved_CFLAGS="$CFLAGS" ...@@ -821,7 +821,7 @@ saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd \ gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd \
strsignal putc_unlocked fputs_unlocked fwrite_unlocked \ strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
fprintf_unlocked strstr errno vasprintf \ fprintf_unlocked strstr errno snprintf vasprintf \
malloc realloc calloc free basename getopt clock, , ,[ malloc realloc calloc free basename getopt clock, , ,[
#include "ansidecl.h" #include "ansidecl.h"
#include "system.h"]) #include "system.h"])
......
...@@ -361,6 +361,10 @@ extern int setrlimit (int, const struct rlimit *); ...@@ -361,6 +361,10 @@ extern int setrlimit (int, const struct rlimit *);
extern void abort (void); extern void abort (void);
#endif #endif
#if defined (HAVE_DECL_SNPRINTF) && !HAVE_DECL_SNPRINTF
extern int snprintf (char *, size_t, const char *, ...);
#endif
/* 1 if we have C99 designated initializers. */ /* 1 if we have C99 designated initializers. */
#if !defined(HAVE_DESIGNATED_INITIALIZERS) #if !defined(HAVE_DESIGNATED_INITIALIZERS)
#define HAVE_DESIGNATED_INITIALIZERS \ #define HAVE_DESIGNATED_INITIALIZERS \
......
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