http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58367
--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> --- Created attachment 30769 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30769&action=edit unreduced testcase markus@x4 gcc % /var/tmp/gcc_build_dir/./prev-gcc/cc1plus -quiet -O2 -fprofile-use -fno-exceptions -fno-rtti expr.ii In file included from ../../gcc/gcc/expr.c:11183:0: ./gt-expr.h: In function ‘rtx_def* store_expr(tree, rtx, int, bool)’: ./gt-expr.h:33:2: error: the control flow of function ‘_Z10store_exprP9tree_nodeP7rtx_defib’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch] }; ^ ./gt-expr.h:33:2: error: the control flow of function ‘_Z10store_exprP9tree_nodeP7rtx_defib’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch] ./gt-expr.h: In function ‘rtx_def* clear_storage_hints(rtx, rtx, block_op_methods, unsigned int, long int)’: ./gt-expr.h:33:2: error: the control flow of function ‘_Z19clear_storage_hintsP7rtx_defS0_16block_op_methodsjl’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch] ./gt-expr.h: In function ‘void store_by_pieces_1(store_by_pieces_d*, unsigned int)’: ./gt-expr.h:33:2: error: the control flow of function ‘_ZL17store_by_pieces_1P17store_by_pieces_dj’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch] ./gt-expr.h: In function ‘rtx_def* store_by_pieces(rtx, long unsigned int, rtx_def* (*)(void*, long int, machine_mode), void*, unsigned int, bool, int)’: ./gt-expr.h:33:2: error: the control flow of function ‘_Z15store_by_piecesP7rtx_defmPFS0_Pvl12machine_modeES1_jbi’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch] ./gt-expr.h: In function ‘int can_store_by_pieces(long unsigned int, rtx_def* (*)(void*, long int, machine_mode), void*, unsigned int, bool)’: ./gt-expr.h:33:2: error: the control flow of function ‘_Z19can_store_by_piecesmPFP7rtx_defPvl12machine_modeES1_jb’ does not match its profile data (counter ‘arcs’) [-Werror=coverage-mismatch] ./gt-expr.h:33:2: error: the control flow of function ‘_Z19can_store_by_piecesmPFP7rtx_defPvl12machine_modeES1_jb’ does not match its profile data (counter ‘indirect_call’) [-Werror=coverage-mismatch] cc1plus: some warnings being treated as errors (gcc from two days ago is fine:) markus@x4 gcc % /usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.0/cc1plus -quiet -O2 -fprofile-use -fno-exceptions -fno-rtti expr.ii markus@x4 gcc %