autoconf/m4/visibility_inlines_hidden.m4: Tweak for cygwin-g++-4.5.3. It folded conftest regardress of attributge((noinline)) with >=O1 .

llvm-svn: 150920
This commit is contained in:
NAKAMURA Takumi 2012-02-19 12:05:12 +00:00
parent 289896d2f3
commit 652e0139da
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ AC_DEFUN([AC_CXX_USE_VISIBILITY_INLINES_HIDDEN],
[llvm_cv_cxx_visibility_inlines_hidden], [llvm_cv_cxx_visibility_inlines_hidden],
[ AC_LANG_PUSH([C++]) [ AC_LANG_PUSH([C++])
oldcxxflags="$CXXFLAGS" oldcxxflags="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM( AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[template <typename T> struct X { void __attribute__((noinline)) f() {} };], [template <typename T> struct X { void __attribute__((noinline)) f() {} };],
[X<int>().f();])], [X<int>().f();])],

2
llvm/configure vendored
View File

@ -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 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
oldcxxflags="$CXXFLAGS" oldcxxflags="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror" CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */ /* confdefs.h. */
_ACEOF _ACEOF