]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: Removed now useless -fhuge-objects GCC compiler flag
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 8 Dec 2011 10:39:26 +0000 (03:39 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 8 Dec 2011 10:39:26 +0000 (03:39 -0700)
acinclude/compiler-flags.m4
configure.ac
lib/libTrie/acinclude.m4
lib/libTrie/configure.ac

index 5b4a5fb852bf48c712d4d539055132f3512a1078..5757c5c804bc8777e80027ec598c4b45ed410eca 100644 (file)
@@ -47,19 +47,6 @@ AC_DEFUN([SQUID_CC_CHECK_ARGUMENT],[
   }])
 ])
 
-# check if the c++ compiler supports the -fhuge-objects flag
-# sets the variable squid_cv_cxx_arg_fhugeobjects to either "yes" or "no"
-#
-AC_DEFUN([SQUID_CXX_CHECK_ARG_FHUGEOBJECTS],[
-  AC_LANG_PUSH([C++])
-  if test "$GCC" = "yes"; then
-    SQUID_CC_CHECK_ARGUMENT([squid_cv_cxx_arg_fhugeobjects],[-Werror -fhuge-objects])
-  else
-    squid_cv_cxx_arg_fhugeobjects=no
-  fi
-  AC_LANG_POP([C++])
-])
-
 # detect what kind of compiler we're using, either by using hints from
 # autoconf itself, or by using predefined preprocessor macros
 # sets the variable squid_cv_compiler to one of
index 70c91994767920ea2eeeeb4883b35811aa19bf6f..4973e5efe2b704e964a1b1c8faf1c705e06ed309 100644 (file)
@@ -321,10 +321,6 @@ if test "x$enable_strict_error_checking" != "xno"; then
   SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cxx_option_werror"
 fi
 
-SQUID_CXX_CHECK_ARG_FHUGEOBJECTS
-if test "x$squid_cv_cxx_arg_fhugeobjects" = "xyes"; then
-  SQUID_CXXFLAGS="$SQUID_CXXFLAGS -fhuge-objects"
-fi
 # squid_cv_cc_arg_pipe is set by SQUID_CC_GUESS_OPTIONS
 SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cc_arg_pipe"
 SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_arg_pipe"
index 981bfbbc1b2bde4408c5b3234996efd9f2228277..ae7da3eae0bf954f0bf62dfa68abdd1f7875a1e4 100644 (file)
@@ -1,33 +1 @@
 dnl
-dnl thanks to autogen, for the template..
-dnl
-dnl @synopsis  AC_TEST_CHECKFORHUGEOBJECTS
-dnl
-dnl Test whether -fhuge-objects is available with this c++ compiler. gcc-29.5 series compilers need this on some platform with large objects.
-dnl
-HUGE_OBJECT_FLAG=""
-AC_DEFUN([AC_TEST_CHECKFORHUGEOBJECTS],[
- if test "$GCC" = "yes"; then
-  AC_MSG_CHECKING([whether compiler accepts -fhuge-objects])
-  AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[
-    ac_cv_test_checkforhugeobjects=`echo "int main(int argc, char **argv) { int foo; }" > conftest.cc
-${CXX} -Werror -fhuge-objects -o conftest.bin conftest.cc 2>/dev/null
-res=$?
-rm -f conftest.*
-echo yes
-exit $res`
-    if [[ $? -ne 0 ]]
-    then ac_cv_test_checkforhugeobjects=no
-    else if [[ -z "$ac_cv_test_checkforhugeobjects" ]]
-         then ac_cv_test_checkforhugeobjects=yes
-    fi ; fi
-  ]) # end of CACHE_VAL
-  AC_MSG_RESULT([${ac_cv_test_checkforhugeobjects}])
-
-  if test "X${ac_cv_test_checkforhugeobjects}" != Xno
-  then
-    HUGE_OBJECT_FLAG="-fhuge-objects"
-  fi
- fi #gcc
-]) # end of AC_DEFUN of AC_TEST_CHECKFORHUGEOBJECTS
-
index a90d34a29740090ddb410bab6d1455f82744bc7f..7fcfec68c50c130bbd29e600c2c7d9f21c984273 100644 (file)
@@ -89,8 +89,6 @@ if test "$GCC" = "yes"; then
      TRIE_CXXFLAGS="-Werror $TRIE_CXXFLAGS"
   fi
 
-  AC_TEST_CHECKFORHUGEOBJECTS
-  TRIE_CXXFLAGS="$TRIE_CXXFLAGS $HUGE_OBJECT_FLAG"
 fi
 
 AC_SUBST(TRIE_CFLAGS)