llvm.org GIT mirror llvm / 273df0b
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 NAKAMURA Takumi 7 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 [llvm_cv_cxx_visibility_inlines_hidden],
88 [ AC_LANG_PUSH([C++])
99 oldcxxflags="$CXXFLAGS"
10 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
10 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
1111 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
1212 [template struct X { void __attribute__((noinline)) f() {} };],
1313 [X().f();])],
2093920939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2094020940
2094120941 oldcxxflags="$CXXFLAGS"
20942 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20942 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
2094320943 cat >conftest.$ac_ext <<_ACEOF
2094420944 /* confdefs.h. */
2094520945 _ACEOF