diff options
author | H.J. Lu <hjl@lucon.org> | 2009-12-16 00:28:55 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-12-16 00:28:55 +0000 |
commit | 9afbabf64f1d22448a10af638b7d94b4d57be7fe (patch) | |
tree | 2aef6e09af4b7aa7a48b81245fd849d2e8b2894f | |
parent | 6032a3bcc535084cc09bda5f771aad66b1bb8461 (diff) | |
download | binutils-redhat-9afbabf64f1d22448a10af638b7d94b4d57be7fe.tar.gz |
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.
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/as.h | 4 | ||||
-rw-r--r-- | gas/config.in | 4 | ||||
-rwxr-xr-x | gas/configure | 11 | ||||
-rw-r--r-- | gas/configure.in | 1 |
5 files changed, 28 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1bc25c8bd7..595cbfb51a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,13 @@ 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. 2009-12-14 Yoshinori Sato <ysato@users.sourceforge.jp> @@ -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 diff --git a/gas/config.in b/gas/config.in index 9493de7242..9f4c746c22 100644 --- a/gas/config.in +++ b/gas/config.in @@ -49,6 +49,10 @@ /* 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 diff --git a/gas/configure b/gas/configure index cbcffc7dcc..86ae97484a 100755 --- a/gas/configure +++ b/gas/configure @@ -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 diff --git a/gas/configure.in b/gas/configure.in index 455b8ee177..d21b124d77 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -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 |