From 273df0b91000d649dee24aab4be0346ada2a9862 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 19 Feb 2012 12:05:12 +0000 Subject: autoconf/m4/visibility_inlines_hidden.m4: Tweak for cygwin-g++-4.5.3. It folded conftest regardress of attributge((noinline)) with >=O1 . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150920 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/m4/visibility_inlines_hidden.m4 | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoconf/m4/visibility_inlines_hidden.m4 b/autoconf/m4/visibility_inlines_hidden.m4 index 65dd503e20..b1cc42aa5f 100644 --- a/autoconf/m4/visibility_inlines_hidden.m4 +++ b/autoconf/m4/visibility_inlines_hidden.m4 @@ -8,7 +8,7 @@ AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN], [llvm_cv_cxx_visibility_inlines_hidden], [ AC_LANG_PUSH([C++]) oldcxxflags="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" + CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [template struct X { void __attribute__((noinline)) f() {} };], [X().f();])], diff --git a/configure b/configure index 060d1e6329..e25edc4365 100755 --- a/configure +++ b/configure @@ -20940,7 +20940,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex ac_compiler_gnu=$ac_cv_cxx_compiler_gnu oldcxxflags="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" + CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF -- cgit v1.2.3-18-g5258