------- Comment #51 from dominiq at lps dot ens dot fr 2010-03-20 13:21 ------- The following patch fixes this pr:
--- ../_clean/gcc/predict.c 2009-11-25 18:20:33.000000000 +0100 +++ gcc/predict.c 2010-03-20 14:03:33.000000000 +0100 @@ -251,7 +251,7 @@ optimize_edge_for_speed_p (edge e) bool optimize_insn_for_size_p (void) { - return optimize_function_for_size_p (cfun) || !crtl->maybe_hot_insn_p; + return optimize_function_for_size_p (cfun) && !crtl->maybe_hot_insn_p; } /* Return TRUE when BB should be optimized for speed. */ If the optimize_*_p procs are intended to allow optimization for speed with -Os and "hot" part of codes, it seems that the logic of the implementation should be checked carefully. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40106