Bug 563318: Work around what appears to be a compiler bug. r=bz
authorKyle Huey <khuey@kylehuey.com>
Wed, 01 Feb 2012 13:49:31 -0500
changeset 85920 a54f31fa1efd
parent 85919 dfd3dd3f90f7
child 85921 5b0900b3e71c
push id21979
push userkhuey@mozilla.com
push date2012-02-01 18:57 +0000
treeherdermozilla-central@5b0900b3e71c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs563318
milestone13.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 563318: Work around what appears to be a compiler bug. r=bz
layout/style/nsCSSParser.cpp
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -1073,16 +1073,20 @@ CSSParserImpl::ParseRule(const nsAString
     ParseRuleSet(AppendRuleToArray, &aResult);
   }
   OUTPUT_ERROR();
   ReleaseScanner();
   // XXX check for low-level errors
   return NS_OK;
 }
 
+// See Bug 723197
+#ifdef _MSC_VER
+#pragma optimize( "", off )
+#endif
 nsresult
 CSSParserImpl::ParseProperty(const nsCSSProperty aPropID,
                              const nsAString& aPropValue,
                              nsIURI* aSheetURI,
                              nsIURI* aBaseURI,
                              nsIPrincipal* aSheetPrincipal,
                              css::Declaration* aDeclaration,
                              bool* aChanged,
@@ -1148,16 +1152,19 @@ CSSParserImpl::ParseProperty(const nsCSS
     CLEAR_ERROR();
   }
 
   mTempData.AssertInitialState();
 
   ReleaseScanner();
   return NS_OK;
 }
+#ifdef _MSC_VER
+#pragma optimize( "", on )
+#endif
 
 nsresult
 CSSParserImpl::ParseMediaList(const nsSubstring& aBuffer,
                               nsIURI* aURI, // for error reporting
                               PRUint32 aLineNumber, // for error reporting
                               nsMediaList* aMediaList,
                               bool aHTMLMode)
 {