------- Comment #6 from mkgnu at mkgnu dot net 2007-04-30 23:42 ------- It seems that when I use -freorder-blocks-and-partition along with -fprofile-use (after I have already run once an executable compiled with -freorder-blocks-and-partition -fprofile-generate) I can produce an object file that contains a .text.unlikely section, as expected.
But when I try to further link this object file with other object files to produce an executable, the .text.unlikely section is missing from the final executable. I've tried this with gcc4.1.2/ld2.15 and then again with gcc4.1.1/ld2.17 with the same results. Is this another bug related to -freorder-blocks-and-partition ? Should I file a separate bug report for it ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26493