(In reply to comment #68)
> I think my difficulty is because -freorder-blocks-and-partition is not being
> passed to GCC. What are you doing to pass -freorder-blocks-and-partition to GCC
> during the initial build?
in configure.in change
MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer $MOZ_OPTIMIZE_SIZE_TWEAK" to
MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks-and-partition -fomit-frame-pointer $MOZ_OPTIMIZE_SIZE_TWEAK"
(In reply to comment #68) blocks- and-partition is not being blocks- and-partition to GCC FLAGS=" -Os -freorder-blocks -fno-reorder- functions -fomit- frame-pointer $MOZ_OPTIMIZE_ SIZE_TWEAK" to FLAGS=" -Os -freorder- blocks- and-partition -fomit- frame-pointer $MOZ_OPTIMIZE_ SIZE_TWEAK"
> I think my difficulty is because -freorder-
> passed to GCC. What are you doing to pass -freorder-
> during the initial build?
in configure.in change
MOZ_OPTIMIZE_
MOZ_OPTIMIZE_
Those pgo instructions are a bit crazy. See https:/ /developer. mozilla. org/en/ Building_ with_Profile- Guided_ Optimization , all you have to do is make a script that can launch firefox. Add the PROFILE_GEN_SCRIPT bit to your .mozconfig and do make -f client.mk profiledbuild