Commit 0989cef3 authored by Antonio J. Pena's avatar Antonio J. Pena Committed by Kenneth Raffenetti
Browse files

Remove MPICH_ATTR_WEAK_ALIAS macro



After fixing #2002, MPICH_ATTR_WEAK_ALIAS is not needed. This commit
cleans up its leftovers.
Signed-off-by: Kenneth Raffenetti's avatarKen Raffenetti <raffenet@mcs.anl.gov>
parent b208dd70
......@@ -1793,12 +1793,7 @@ if test $enable_weak_symbols = "yes" ; then
# Check for the ability to support multiple weak symbols
if test "$pac_cv_prog_c_weak_symbols" = "pragma weak" ; then
PAC_PROG_C_MULTIPLE_WEAK_SYMBOLS(AC_DEFINE(HAVE_MULTIPLE_PRAGMA_WEAK,1,[Define if multiple weak symbols may be defined]))
else
if test "$pac_cv_prog_c_weak_symbols" = "no" -a "$pac_cv_attr_weak_alias" = "yes"; then
MPICH_ATTR_WEAK_ALIAS_DEFINITION="__attribute__((weak,alias(fname)))"
fi
fi
AC_SUBST(MPICH_ATTR_WEAK_ALIAS_DEFINITION)
fi
export NEEDSPLIB
......
......@@ -5264,17 +5264,17 @@ extern FORT_DLL_SPEC int FORT_CALL mpi_conversion_fn_null_ ( void*v1, MPI_Fint*v
#elif defined(HAVE_WEAK_ATTRIBUTE) /* If support weak attribute */
extern FORT_DLL_SPEC int FORT_CALL mpi_conversion_fn_null__ ( void*v1, MPI_Fint*v2, MPI_Fint*v3, void*v4, MPI_Offset*v5, MPI_Fint *v6, MPI_Fint*v7, MPI_Fint *ierr )
#ifndef MPICH_MPI_FROM_PMPI
MPICH_ATTR_WEAK_ALIAS(\"mpi_conversion_fn_null_\")
__attribute__((weak,alias(\"mpi_conversion_fn_null_\")))
#endif
;
extern FORT_DLL_SPEC int FORT_CALL mpi_conversion_fn_null ( void*v1, MPI_Fint*v2, MPI_Fint*v3, void*v4, MPI_Offset*v5, MPI_Fint *v6, MPI_Fint*v7, MPI_Fint *ierr )
#ifndef MPICH_MPI_FROM_PMPI
MPICH_ATTR_WEAK_ALIAS(\"mpi_conversion_fn_null_\")
__attribute__((weak,alias(\"mpi_conversion_fn_null_\")))
#endif
;
extern FORT_DLL_SPEC int FORT_CALL MPI_CONVERSION_FN_NULL ( void*v1, MPI_Fint*v2, MPI_Fint*v3, void*v4, MPI_Offset*v5, MPI_Fint *v6, MPI_Fint*v7, MPI_Fint *ierr )
#ifndef MPICH_MPI_FROM_PMPI
MPICH_ATTR_WEAK_ALIAS(\"mpi_conversion_fn_null_\")
__attribute__((weak,alias(\"mpi_conversion_fn_null_\")))
#endif
;
#endif
......
......@@ -424,7 +424,6 @@ while (<FD>) {
$fullline =~ s+/\*.*\*/++g;
# parse out attributes
$fullline =~ s/MPICH_ATTR_WEAK_ALIAS\(.*\)//g;
$fullline =~ s/MPICH_ATTR_POINTER_WITH_TYPE_TAG\(.*\)//g;
# parse out unnecessary spaces
......
......@@ -107,7 +107,6 @@ while (<FD>) {
$fullline =~ s+/\*.*\*/++g;
# parse out attributes
$fullline =~ s/MPICH_ATTR_WEAK_ALIAS\(.*\)//g;
$fullline =~ s/MPICH_ATTR_POINTER_WITH_TYPE_TAG\(.*\)//g;
# cleanup pointer format
......
......@@ -14,8 +14,6 @@
extern "C" {
#endif
#define MPICH_ATTR_WEAK_ALIAS(fname) @MPICH_ATTR_WEAK_ALIAS_DEFINITION@
#undef MPICH_DEFINE_ATTR_TYPE_TYPES
#if defined(__has_attribute)
# if __has_attribute(pointer_with_type_tag) && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment