Backout changeset 81c2e2ea2dbf (bug 746794) because of bug 758648
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 25 May 2012 18:21:03 +0200
changeset 94948 034bbdc7b9c930d95cbba487892ed2262e633a71
parent 94947 caea66e968bf9a8da52f91abc312529c4115fc6a
child 94949 1987beeb0038e84eddd39d3026388ba361dc0cf2
push id22765
push usermh@glandium.org
push dateFri, 25 May 2012 16:21:51 +0000
treeherdermozilla-central@034bbdc7b9c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs746794, 758648
milestone15.0a1
backs out81c2e2ea2dbf58ef63c659b290dd612ead2cede9
first release with
nightly linux32
034bbdc7b9c9 / 15.0a1 / 20120525113255 / files
nightly linux64
034bbdc7b9c9 / 15.0a1 / 20120525113255 / files
nightly mac
034bbdc7b9c9 / 15.0a1 / 20120525113255 / files
nightly win32
034bbdc7b9c9 / 15.0a1 / 20120525113255 / files
nightly win64
034bbdc7b9c9 / 15.0a1 / 20120525113255 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backout changeset 81c2e2ea2dbf (bug 746794) because of bug 758648
config/gcc-stl-wrapper.template.h
configure.in
js/src/configure.in
mozglue/build/Makefile.in
--- a/config/gcc-stl-wrapper.template.h
+++ b/config/gcc-stl-wrapper.template.h
@@ -5,17 +5,17 @@
  * 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/. */
 
 #ifndef mozilla_${HEADER}_h
 #define mozilla_${HEADER}_h
 
 // For some reason, Apple's GCC refuses to honor -fno-exceptions when
 // compiling ObjC.
-#if __EXCEPTIONS && !(__OBJC__ && __APPLE_CC__)
+#if __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS)
 #  error "STL code can only be used with -fno-exceptions"
 #endif
 
 // Silence "warning: #include_next is a GCC extension"
 #pragma GCC system_header
 
 // mozalloc.h wants <new>; break the cycle by always explicitly
 // including <new> here.  NB: this is a tad sneaky.  Sez the gcc docs:
--- a/configure.in
+++ b/configure.in
@@ -3194,21 +3194,21 @@ EOF
                          fi
                        fi
                        rm -f conftest.{c,S}
                        ])
         if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \
                 "$ac_cv_have_visibility_class_bug" = "no"; then
           VISIBILITY_FLAGS='-I$(DIST)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
           WRAP_SYSTEM_INCLUDES=1
+          STL_FLAGS='-I$(DIST)/stl_wrappers'
+          WRAP_STL_INCLUDES=1
         else
           VISIBILITY_FLAGS='-fvisibility=hidden'
         fi # have visibility pragma bug
-        STL_FLAGS='-I$(DIST)/stl_wrappers'
-        WRAP_STL_INCLUDES=1
       fi   # have visibility pragma
     fi     # have visibility(default) attribute
   fi       # have visibility(hidden) attribute
 fi         # GNU_CC
 
 # visibility hidden flag for Sun Studio on Solaris
 if test "$SOLARIS_SUNPRO_CC"; then
 VISIBILITY_FLAGS='-xldscope=hidden'
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2872,21 +2872,21 @@ EOF
                          fi
                        fi
                        rm -f conftest.{c,S}
                        ])
         if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \
                 "$ac_cv_have_visibility_class_bug" = "no"; then
           VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h'
           WRAP_SYSTEM_INCLUDES=1
+          STL_FLAGS='-I$(DIST)/stl_wrappers'
+          WRAP_STL_INCLUDES=1
         else
           VISIBILITY_FLAGS='-fvisibility=hidden'
         fi # have visibility pragma bug
-        STL_FLAGS='-I$(DIST)/stl_wrappers'
-        WRAP_STL_INCLUDES=1
       fi   # have visibility pragma
     fi     # have visibility(default) attribute
   fi       # have visibility(hidden) attribute
 fi         # GNU_CC
 
 # visibility hidden flag for Sun Studio on Solaris
 if test "$SOLARIS_SUNPRO_CC"; then
 VISIBILITY_FLAGS='-xldscope=hidden'
--- a/mozglue/build/Makefile.in
+++ b/mozglue/build/Makefile.in
@@ -60,17 +60,16 @@ NO_INSTALL_IMPORT_LIBRARY = 1
 endif
 endif
 
 ifeq (Android,$(OS_TARGET))
 # To properly wrap jemalloc's pthread_atfork call.
 EXTRA_DSO_LDOPTS += -Wl,--wrap=pthread_atfork
 CPPSRCS += BionicGlue.cpp
 SHARED_LIBRARY_LIBS += $(call EXPAND_LIBNAME_PATH,android,$(DEPTH)/other-licenses/android)
-STL_FLAGS =
 endif
 
 ifeq (android, $(MOZ_WIDGET_TOOLKIT))
 # Add Android specific code
 EXTRA_DSO_LDOPTS += $(ZLIB_LIBS)
 SHARED_LIBRARY_LIBS += $(call EXPAND_LIBNAME_PATH,android,../android)
 endif