2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Dec 2009 00:28:56 +0000 (00:28 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Dec 2009 00:28:56 +0000 (00:28 +0000)
* as.h (mempcpy): New.

* configure.in: Check if mempcpy is declared.
* configure: Regenerated.
* config.in: Likewise.

gas/ChangeLog
gas/as.h
gas/config.in
gas/configure
gas/configure.in

index 1bc25c8bd7c64ac8e720b129e0aebcea47124115..595cbfb51a2e23e55772950c248fda394f575419 100644 (file)
@@ -1,3 +1,11 @@
+2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * as.h (mempcpy): New.
+
+       * configure.in: Check if mempcpy is declared.
+       * configure: Regenerated.
+       * config.in: Likewise.
+
 2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-i386.c (build_vex_prefix): Use VEX256.
index 1d1d97e5a06c0029bf0ef7fba16b37ff97b9a108..c670536b9fcc087ddf68da6d6d62b3f20856771e 100644 (file)
--- a/gas/as.h
+++ b/gas/as.h
@@ -149,6 +149,10 @@ extern void *realloc ();
 extern char *strstr ();
 #endif
 
+#if !HAVE_DECL_MEMPCPY
+void *mempcpy(void *, const void *, size_t);
+#endif
+
 #if !HAVE_DECL_VSNPRINTF
 extern int vsnprintf(char *, size_t, const char *, va_list);
 #endif
index 9493de724273d30d703bd89f53cb691c5ce30a71..9f4c746c227871c40c83ad4b0aa1e782435e0a53 100644 (file)
 /* Is the prototype for getopt in <unistd.h> in the expected format? */
 #undef HAVE_DECL_GETOPT
 
+/* Define to 1 if you have the declaration of `mempcpy', and to 0 if you
+   don't. */
+#undef HAVE_DECL_MEMPCPY
+
 /* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
    don't. */
 #undef HAVE_DECL_VSNPRINTF
index cbcffc7dcc76c07c14db5ddb3ece733122671074..86ae97484a7dc28e0da745efb3d4f618bcb4a859 100755 (executable)
@@ -13820,6 +13820,17 @@ $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
 fi
 
 
+ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
+if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
+  ac_have_decl=1
+else
+  ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_MEMPCPY $ac_have_decl
+_ACEOF
+
 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
   ac_have_decl=1
index 455b8ee177400cad5041d4a1b588cb6c9f921aff..d21b124d77f5d165833e8289cd3d66abab91b3e5 100644 (file)
@@ -704,6 +704,7 @@ GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
 GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
 GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
 
+AC_CHECK_DECLS([mempcpy])
 AC_CHECK_DECLS([vsnprintf])
 
 BFD_BINARY_FOPEN