[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2-159-g7bc0888

Service Account noreply at mpich.org
Thu Jan 28 14:20:17 CST 2016

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  7bc0888b4bb43f4f9397ba0d3b82034d96ebb209 (commit)
      from  643a500c1ba7a1659a1c6701afb9e04f99f98b69 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 7bc0888b4bb43f4f9397ba0d3b82034d96ebb209
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Thu Jan 28 13:50:35 2016 -0600

    pm/util: use MPL mem and str routines directly
    Removes configure checks and header file definitions now located
    in MPL. The MPL versions can be directly used instead.
    Signed-off-by: Pavan Balaji <balaji at anl.gov>

diff --git a/src/pm/util/pmutil.h b/src/pm/util/pmutil.h
index 8b079c7..f48d7f9 100644
--- a/src/pm/util/pmutil.h
+++ b/src/pm/util/pmutil.h
@@ -76,45 +76,6 @@ extern int MPIE_Debug;
 #define MPIE_SYSCALL(a_,b_,c_) a_ = (int)b_ c_
-/* Use the memory defintions from mpich/src/include */
-/* #include "mpimem.h" */
-/* The memory routines no longer are available as utility routines.
-   The choices are to use the original memory tracing routines or
-   to select the option of using the basic memory routines.  The 
-   second option is used for now. */
-/* No memory tracing; just use native functions */
-#include <stdlib.h>
-#define MPL_malloc(a)    malloc((size_t)(a))
-#define MPL_calloc(a,b)  calloc((size_t)(a),(size_t)(b))
-#define MPL_free(a)      free((void *)(a))
-#define MPL_realloc(a,b)  realloc((void *)(a),(size_t)(b))
-int MPL_strncpy( char *outstr, const char *instr, size_t maxlen );
-int MPL_strnapp( char *, const char *, size_t );
-char *MPL_strdup( const char * );
-/* Watch for the case where strdup is defined as a macro by a header include */
-# if defined(NEEDS_STRDUP_DECL) && !defined(strdup)
-extern char *strdup( const char * );
-# endif
-#define MPL_strdup(a)    strdup(a)
-/* Don't define MPL_strdup, provide it in safestr.c */
-#endif /* HAVE_STRDUP */
-/* Provide a fallback snprintf for systems that do not have one */
-#define MPL_snprintf snprintf
-/* Sometimes systems don't provide prototypes for snprintf */
-extern int snprintf( char *, size_t, const char *, ... ) ATTRIBUTE((format(printf,3,4)));
-int MPL_snprintf( char *str, size_t size, const char *format, ... ) 
-     ATTRIBUTE((format(printf,3,4)));
-#endif /* HAVE_SNPRINTF */
 #include "mpl.h"
diff --git a/src/pm/util/subconfigure.m4 b/src/pm/util/subconfigure.m4
index f3032ef..ef985c3 100644
--- a/src/pm/util/subconfigure.m4
+++ b/src/pm/util/subconfigure.m4
@@ -124,8 +124,6 @@ AC_CHECK_FUNCS(strsignal)
 if test "$ac_cv_func_strsignal" = "yes" ; then
     PAC_FUNC_NEEDS_DECL([#include <string.h>],strsignal)
 dnl Check for signal handlers
 AC_CHECK_FUNCS(sigaction signal sigset)
@@ -170,14 +168,6 @@ dnl
 # change the compilers behavior, such as the _POSIX_SOURCE test above
 # FIXME: need to include the test, at least for any file that
 # might set _POSIX_SOURCE
-if test "$ac_cv_func_snprintf" = "yes" ; then
-    PAC_FUNC_NEEDS_DECL([#include <stdio.h>],snprintf)
-if test "$ac_cv_func_strdup" = "yes" ; then
-    # Do we need to declare strdup?
-    PAC_FUNC_NEEDS_DECL([#include <string.h>],strdup)
 # putenv() sets environment variable
 if test "$ac_cv_func_putenv" = "yes" ; then


Summary of changes:
 src/pm/util/pmutil.h        |   39 ---------------------------------------
 src/pm/util/subconfigure.m4 |   10 ----------
 2 files changed, 0 insertions(+), 49 deletions(-)

MPICH primary repository

More information about the commits mailing list