bug 1249923 - use PogoSafeMode for MSVC PGO. r?gps draft
authorTed Mielczarek <ted@mielczarek.org>
Wed, 24 Feb 2016 13:04:54 -0800
changeset 334239 eb25a747699ea53c8338ef95468c5e26f693fe47
parent 334213 c402e727cdcab4fd3803e0a34224b64437dd1e16
child 514865 4dfe8e1177d439368aff1eafeb567e47c254accd
push id11495
push usertmielczarek@mozilla.com
push dateWed, 24 Feb 2016 21:09:39 +0000
reviewersgps
bugs1249923
milestone47.0a1
bug 1249923 - use PogoSafeMode for MSVC PGO. r?gps MozReview-Commit-ID: 4CMiqba5NZd
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2195,17 +2195,17 @@ ia64*-hpux*)
         if test -n "$MOZ_PARALLEL_BUILD"; then
            dnl This argument has a max value of 8.
            if test $MOZ_PARALLEL_BUILD -gt 8; then
               cgthreads="-CGTHREADS8"
            else
               cgthreads="-CGTHREADS${MOZ_PARALLEL_BUILD}"
            fi
         fi
-        PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT $cgthreads"
+        PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT -PogoSafeMode $cgthreads"
         dnl XXX: PGO builds can fail with warnings treated as errors,
         dnl specifically "no profile data available" appears to be
         dnl treated as an error sometimes. This might be a consequence
         dnl of using WARNINGS_AS_ERRORS in some modules, combined
         dnl with the linker doing most of the work in the whole-program
         dnl optimization/PGO case. I think it's probably a compiler bug,
         dnl but we work around it here.
         PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"