I've found this bug while building gcc 4.1.0 (on GNU/Linux x86). In the 'rebuild with -fprofile-use' stage I get the following error:
stage1/xgcc -Bstage1/ -B/usr/i386-unknown-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -fprofile-use -freorder-blocks-and-partition -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include ../../gcc/attribs.c -o attribs.o /tmp/cc9Aywrx.s: Assembler messages: /tmp/cc9Aywrx.s:1256: Error: can't resolve `.text.unlikely' {.text.unlikely section} - `.LCFI70' {.text section} the line 1256 in the generated assembler output reads: .long .LCFI71-.LCFI70 but the symbol .LCFI71 is in the .text.unlikely section while .LCFI70 is in .text. -- Summary: Code generation bug (-fprofile-use) Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: clifford at clifford dot at GCC build triplet: i386-unknown-linux-gnu GCC host triplet: i386-unknown-linux-gnu GCC target triplet: i386-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26942