Difference between revisions of "PGO Related Bugs/Patches"

From CDOT Wiki
Jump to: navigation, search
(New page: This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.<br/> <pre>diff --git a/modules/lcms/src/Makefile.in b/modules/...)
 
Line 1: Line 1:
 +
== 465592 ==
 
This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.<br/>
 
This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.<br/>
  
Line 27: Line 28:
 
  cmslut.c cmsmatsh.c cmsmtrx.c cmspack.c cmspcs.c cmswtpnt.c \
 
  cmslut.c cmsmatsh.c cmsmtrx.c cmspack.c cmspcs.c cmswtpnt.c \
 
</pre>
 
</pre>
 +
 +
== 468285 ==
 +
=== Patch 1 ===
 +
=== Patch 2 ===

Revision as of 13:53, 9 December 2008

465592

This patch disables the lcms (local color management system) from being optimized if it is not linked into the xul libraray.

diff --git a/modules/lcms/src/Makefile.in b/modules/lcms/src/Makefile.in
--- a/modules/lcms/src/Makefile.in
+++ b/modules/lcms/src/Makefile.in
@@ -57,16 +57,21 @@ endif
 
 ifeq (,$(filter-out WINNT WINCE OS2,$(OS_ARCH)))
 DEFINES	+= -DLCMS_DLL=1 -DLCMS_DLL_BUILD=1
 else
 VISIBILITY_FLAGS =
 endif
 endif
 
+#Disable PGO for this module in non-libxul builds, where it breaks.
+ifndef MOZ_ENABLE_LIBXUL
+NO_PROFILE_GUIDED_OPTIMIZE = 1
+endif
+
 # LCMS is on the critical path, so force it O2 on all platforms
 MODULE_OPTIMIZE_FLAGS=-O2
 
 REQUIRES	= $(LCMS_REQUIRES) \
 		  $(NULL)
 
 CSRCS = cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c \
 	cmslut.c cmsmatsh.c cmsmtrx.c cmspack.c cmspcs.c cmswtpnt.c \

468285

Patch 1

Patch 2