-Wcoverage-mismatch doesn't seem to work. GCC 4.4.3 compiles pgo mozilla successfully.
c++ -o nsStringObsolete.o -c -I../../../dist/system_wrappers -include /home/taras/work/mozilla-central/config/gcc_hidden.h -I../../../dist/stl_wrappers -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6.18-164.15.1\" -DOSARCH=Linux -D_IMPL_NS_COM -I/home/taras/work/mozilla-central/xpcom/string/src -I. -I../../../dist/include -I../../../dist/include/nsprpub -I/home/taras/builds/minefield.pgo/dist/include/nspr -I/home/taras/builds/minefield.pgo/dist/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -pedantic -Wcoverage-mismatch -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -fprofile-use -Os -freorder-blocks -freorder-blocks-and-partition -fomit-frame-pointer -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsStringObsolete.pp /home/taras/work/mozilla-central/xpcom/string/src/nsStringObsolete.cpp # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp: In function PRBool IsUTF8(const nsACString_internal&): # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp:577:38: warning: suggest parentheses around && within || # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp:578:50: warning: suggest parentheses around && within || # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp:581:62: warning: suggest parentheses around && within || # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp:582:42: warning: suggest parentheses around && within || # /home/taras/work/mozilla-central/xpcom/string/src/nsReadableUtils.cpp:582:59: warning: suggest parentheses around && within || # /home/taras/work/mozilla-central/xpcom/string/src/nsSubstring.cpp: In member function void nsACString_internal::Assign(const nsACString_internal::char_type*, nsACString_internal::size_type): # /home/taras/work/mozilla-central/xpcom/string/src/nsSubstring.cpp:317:72: error: corrupted profile info: profile data is not flow-consistent # /home/taras/work/mozilla-central/xpcom/string/src/nsSubstring.cpp:317:72: error: corrupted profile info: number of executions for edge 15-16 thought to be 28335 # /home/taras/work/mozilla-central/xpcom/string/src/nsSubstring.cpp:317:72: error: corrupted profile info: number of executions for edge 15-17 thought to be -1 -- Summary: GCC 4.5.0 fails to PGO mozilla Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tglek at mozilla dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43773