Bug 1167005 - Remove gcc_hidden_dso_handle hack. r=nfroyd
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 21 May 2015 09:51:19 +0900
changeset 244897 d2267474924f770c1531da5356d356b9e92aaf28
parent 244896 9d8b0864153ebe6aa539d622956058b2d4312b3d
child 244898 a1420be42c58c1693f811b2e3c39788b223daae6
push id60057
push usermh@glandium.org
push dateThu, 21 May 2015 06:38:11 +0000
treeherdermozilla-inbound@d2267474924f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1167005, 1001320
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1167005 - Remove gcc_hidden_dso_handle hack. r=nfroyd The hack from bug 1001320 is not necessary anymore, since it originally applied to gcc 4.4 only and now gcc 4.6, which we don't support anyways.
config/gcc_hidden_dso_handle.h
configure.in
deleted file mode 100644
--- a/config/gcc_hidden_dso_handle.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#ifdef __cplusplus
-extern "C"
-#endif
-void *__dso_handle;
-
-/* Begin all files as hidden visibility */
-#pragma GCC visibility push(hidden)
--- a/configure.in
+++ b/configure.in
@@ -2657,24 +2657,17 @@ dnl ====================================
 if test "$GNU_CC" -a "$OS_TARGET" != WINNT; then
   AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
   AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
   case "$OS_TARGET" in
   Darwin)
     VISIBILITY_FLAGS='-fvisibility=hidden'
     ;;
   *)
-    case $GCC_VERSION in
-    4.6*)
-      VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(MOZILLA_DIR)/config/gcc_hidden_dso_handle.h'
-      ;;
-    *)
-      VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(MOZILLA_DIR)/config/gcc_hidden.h'
-      ;;
-    esac
+    VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(MOZILLA_DIR)/config/gcc_hidden.h'
     WRAP_SYSTEM_INCLUDES=1
     ;;
   esac
 fi         # GNU_CC
 
 # visibility hidden flag for Sun Studio on Solaris
 if test "$SOLARIS_SUNPRO_CC"; then
 VISIBILITY_FLAGS='-xldscope=hidden'