Bug 655058: Remove -freorder-blocks-and-partition from PGO build options NSPR_4_8_9_BETA4
authorwtc%google.com
Thu, 28 Jul 2011 04:13:54 +0000
changeset 4336 0a7e02538d0b54d0afab2a745320dc53bc76e911
parent 4335 6f7cb257fc79dd9d7657ea43caf394d7c6e90ff2
child 4337 94b5dc69e9a2ed10a32763832844198ab5146d8d
push idunknown
push userunknown
push dateunknown
bugs655058
Bug 655058: Remove -freorder-blocks-and-partition from PGO build options because it breaks Linux crash reports. The patch is contributed by Mike Hommey <mh+mozilla@glandium.org>. r=ted.mielczarek,wtc. Modified Files: configure configure.in
configure
configure.in
--- a/configure
+++ b/configure
@@ -2817,17 +2817,17 @@ else
   rm -rf conftest*
   result="no"
 fi
 rm -f conftest*
 echo "$ac_t""$result" 1>&6
 
 if test $result = "yes"; then
    PROFILE_GEN_LDFLAGS="-fprofile-generate"
-   PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch -freorder-blocks-and-partition"
+   PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
    PROFILE_USE_LDFLAGS="-fprofile-use"
 fi
 
 CFLAGS="$_SAVE_CFLAGS"
 
 if test "$GNU_CC"; then
     echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
 echo "configure:2834: checking for visibility(hidden) attribute" >&5
--- a/configure.in
+++ b/configure.in
@@ -671,17 +671,17 @@ CFLAGS="$CFLAGS -fprofile-generate -fpro
 AC_MSG_CHECKING([whether C compiler supports -fprofile-generate])
 AC_TRY_COMPILE([], [return 0;],
                [ PROFILE_GEN_CFLAGS="-fprofile-generate"
                  result="yes" ], result="no")
 AC_MSG_RESULT([$result])
 
 if test $result = "yes"; then
    PROFILE_GEN_LDFLAGS="-fprofile-generate"
-   PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch -freorder-blocks-and-partition"
+   PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
    PROFILE_USE_LDFLAGS="-fprofile-use"
 fi
 
 CFLAGS="$_SAVE_CFLAGS"
 
 dnl ===============================================================
 dnl Check for .hidden assembler directive and visibility attribute.
 dnl Borrowed from glibc configure.in