From 6212abd6114f7639f1154235d725294695531c36 Mon Sep 17 00:00:00 2001 From: David Major Date: Thu, 27 Nov 2014 16:18:25 +1300 Subject: [PATCH] Bug 1095103: Remove Windows PGO build hacks that are no longer necessary. r=glandium --HG-- extra : rebase_source : b790c97d1fa3e12597d4cd5f4c7fd6dc7ba133cf --- configure.in | 13 ++----------- js/src/configure.in | 13 ++----------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/configure.in b/configure.in index 4f5126533b48..53e545002a69 100644 --- a/configure.in +++ b/configure.in @@ -2279,17 +2279,8 @@ ia64*-hpux*) dnl For profile-guided optimization PROFILE_GEN_CFLAGS="-GL" PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" - 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" - dnl XXX: should be -LTCG:PGOPTIMIZE, but that fails on libxul. - dnl Probably also a compiler bug, but what can you do? - PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" + PROFILE_USE_CFLAGS="-GL" + PROFILE_USE_LDFLAGS="-LTCG:PGOPTIMIZE" LDFLAGS="$LDFLAGS -DYNAMICBASE" dnl Minimum reqiurement of Gecko is VS2010 or later which supports dnl both SSSE3 and SSE4.1. diff --git a/js/src/configure.in b/js/src/configure.in index c270df1b60b1..473a0b3e0754 100644 --- a/js/src/configure.in +++ b/js/src/configure.in @@ -1820,17 +1820,8 @@ ia64*-hpux*) dnl For profile-guided optimization PROFILE_GEN_CFLAGS="-GL" PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" - 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" - dnl XXX: should be -LTCG:PGOPTIMIZE, but that fails on libxul. - dnl Probably also a compiler bug, but what can you do? - PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" + PROFILE_USE_CFLAGS="-GL" + PROFILE_USE_LDFLAGS="-LTCG:PGOPTIMIZE" LDFLAGS="$LDFLAGS -DYNAMICBASE" fi AC_DEFINE(HAVE_SNPRINTF)