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 3c37766610b0d89b69b4b21b7053696c4efbfa3f (commit) from 477d83fbd4e90a536f5cba01b624cb179f8a6e86 (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 ----------------------------------------------------------------- http://git.mpich.org/mpich.git/commitdiff/3c37766610b0d89b69b4b21b7053696c4e... commit 3c37766610b0d89b69b4b21b7053696c4efbfa3f Author: Ken Raffenetti <[email protected]> Date: Tue Nov 26 11:10:05 2013 -0600 corrections to weak alias test Test all compilers, not just gcc. Use nesting safe push/pop flag macros. Signed-off-by: Pavan Balaji <[email protected]> diff --git a/confdb/aclocal_cc.m4 b/confdb/aclocal_cc.m4 index f8146e1..f73aa4c 100644 --- a/confdb/aclocal_cc.m4 +++ b/confdb/aclocal_cc.m4 @@ -361,18 +361,13 @@ pac_cv_attr_weak_import=yes,pac_cv_attr_weak_import=no)]) # Check if the alias option for weak attributes is allowed AC_CACHE_CHECK([whether __attribute__((weak,alias(...))) allowed], pac_cv_attr_weak_alias,[ -# We add -Werror if it's gcc to force an error exit if the weak attribute -# isn't understood -if test $GCC = yes ; then - save_CFLAGS=$CFLAGS - CFLAGS=-Werror -fi +PAC_PUSH_FLAG([CFLAGS]) +# force an error exit if the weak attribute isn't understood +CFLAGS=-Werror AC_TRY_COMPILE([int foo(int) __attribute__((weak,alias("__foo")));],[int a;], pac_cv_attr_weak_alias=yes,pac_cv_attr_weak_alias=no) # Restore original CFLAGS -if test $GCC = yes ; then - CFLAGS=$save_CFLAGS -fi]) +PAC_POP_FLAG([CFLAGS])]) if test "$pac_cv_attr_weak_alias" = "yes" ; then AC_DEFINE(HAVE_WEAK_ATTRIBUTE,1,[Attribute style weak pragma]) fi ----------------------------------------------------------------------- Summary of changes: confdb/aclocal_cc.m4 | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) hooks/post-receive -- MPICH primary repository