Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Assume that we have memmove().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Feb 2020 18:42:28 +0000 (13:42 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Feb 2020 19:30:47 +0000 (14:30 -0500)
Windows has this, and so do all other live platforms according to the
buildfarm, so remove the configure probe and c.h's substitute code.

This is part of a series of commits to get rid of no-longer-relevant
configure checks and dead src/port/ code.  I'm committing them separately
to make it easier to back out individual changes if they prove less
portable than I expect.

Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us

configure
configure.in
src/include/c.h
src/include/pg_config.h.in
src/tools/msvc/Solution.pm

index 4041051d59febf686654d9d6ca6192aae3c626e4..8d38e792aade8b86a1a4dc06d3da44050ab3d5e8 100755 (executable)
--- a/configure
+++ b/configure
@@ -14925,7 +14925,7 @@ fi
 LIBS_including_readline="$LIBS"
 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
 
-for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
+for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
index 7660c7776705a57793b7ea21649419aab5bcfa9f..86b1d298c601f1dd1aaca6f6a36cc1bebb5a6238 100644 (file)
@@ -1627,7 +1627,6 @@ AC_CHECK_FUNCS(m4_normalize([
    kqueue
    mbstowcs_l
    memset_s
-   memmove
    poll
    posix_fallocate
    ppoll
index 2e8b2d4e3fe39273fb46f9ca5773b347d99b1332..f2cc0338de62954a874a84cb345e180c982e2c51 100644 (file)
@@ -1261,10 +1261,6 @@ extern long long strtoll(const char *str, char **endptr, int base);
 extern unsigned long long strtoull(const char *str, char **endptr, int base);
 #endif
 
-#if !defined(HAVE_MEMMOVE) && !defined(memmove)
-#define memmove(d, s, c)       bcopy(s, d, c)
-#endif
-
 /* no special DLL markers on most ports */
 #ifndef PGDLLIMPORT
 #define PGDLLIMPORT
index 9de9ae6631e3fd55a63b64d971e8538c37e4619a..ef4c175c9847e632c87f3d2ddf5aca3e3d77f222 100644 (file)
 /* Define to 1 if you have the `mbstowcs_l' function. */
 #undef HAVE_MBSTOWCS_L
 
-/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
-
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
index 81b0bf2128239e8b42ef05c74b1ae79b233fe074..56d52fc331057b1a65b23239d6f07427cea06222 100644 (file)
@@ -294,7 +294,6 @@ sub GenerateFiles
        HAVE_LONG_LONG_INT_64       => 1,
        HAVE_MBARRIER_H             => undef,
        HAVE_MBSTOWCS_L             => 1,
-       HAVE_MEMMOVE                => 1,
        HAVE_MEMORY_H               => 1,
        HAVE_MEMSET_S               => undef,
        HAVE_MINIDUMP_TYPE          => 1,