]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/51094 (Bootstrap failure at revision 181279 on non-ELF targets)
authorDimitrios Apostolou <jimis@gmx.net>
Sat, 12 Nov 2011 21:39:59 +0000 (21:39 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 12 Nov 2011 21:39:59 +0000 (16:39 -0500)
PR bootstrap/51094
* gcc/configure.ac: Check for stpcpy declaration.
* system.h: Declare it if not.
* config.in, configure: Regenerate.

From-SVN: r181326

gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/system.h

index c6c20a2fbcff9231007b8bbf51401fa13e106d3e..e9aa80a778826159b6f77aeececa3cbd82979431 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-12  Dimitrios Apostolou  <jimis@gmx.net>
+
+       PR bootstrap/51094
+       * gcc/configure.ac: Check for stpcpy declaration.
+       * system.h: Declare it if not.
+       * config.in, configure: Regenerate.
+
 2011-11-12  Richard Henderson  <rth@redhat.com>
 
        * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use 
index 3950e289b7c43dffd98c0674ffececb78c1970ef..18dde6f1855d93bd5301881e7a987452286832ba 100644 (file)
 #endif
 
 
+/* Define to 1 if we found a declaration for 'stpcpy', otherwise define to 0.
+   */
+#ifndef USED_FOR_TARGET
+#undef HAVE_DECL_STPCPY
+#endif
+
+
 /* Define to 1 if we found a declaration for 'strsignal', otherwise define to
    0. */
 #ifndef USED_FOR_TARGET
index 99334ce44fd1e45bae963ec47307e2b4a02d5a9a..d8654121837b5bc5a04311e242ccfda0c1b6433a 100755 (executable)
@@ -10453,7 +10453,7 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
 saved_CXXFLAGS="$CXXFLAGS"
 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
-       strsignal strstr strverscmp \
+       strsignal strstr stpcpy strverscmp \
        errno snprintf vsnprintf vasprintf malloc realloc calloc \
        free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
 do
index c7654259c4ae6e1b7b0df445656eaa7c2fbcb4c3..af5b748b0f565bf6bd35e0766677708aa0a978d5 100644 (file)
@@ -1102,7 +1102,7 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
 saved_CXXFLAGS="$CXXFLAGS"
 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
 gcc_AC_CHECK_DECLS(getenv atol asprintf sbrk abort atof getcwd getwd \
-       strsignal strstr strverscmp \
+       strsignal strstr stpcpy strverscmp \
        errno snprintf vsnprintf vasprintf malloc realloc calloc \
        free basename getopt clock getpagesize gcc_UNLOCKED_FUNCS, , ,[
 #include "ansidecl.h"
index 7c7d07ea3eef6fc07c835d3e818e6f06dedcbeee..0a943a3a3fe9c5363bb490d557a76a2f6d022224 100644 (file)
@@ -442,6 +442,10 @@ extern void *sbrk (int);
 extern char *strstr (const char *, const char *);
 #endif
 
+#if defined (HAVE_DECL_STPCPY) && !HAVE_DECL_STPCPY
+extern char *stpcpy (char *, const char *);
+#endif
+
 #ifdef __cplusplus
 }
 #endif