In varasm.c, function_section() and current_function_section() invoke target hook select_section with boolean "unlikely" as the second argument. The second argument is suppose to specify if the decl contains relocations, not if it should be placed in the unlikely section.
-- Summary: select_section invoked with argument "unlikely" Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P1 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dje at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: *-*-* GCC host triplet: *-*-* GCC target triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20722