http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52592
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-15 07:10:46 UTC --- Here is the smallest testcase: __attribute__((cold)) int encode_init(double p) { return (int)__builtin_round(p); } ---- CUT ---- I think I have a patch, just testing it a little bit.