During the bootstrap, the GCC build fails at gcc/attribs.c with this error:
attribs.s:514: Error: can't resolve `.text.unlikely' {.text.unlikely section} -
`.LFB96' {.text section}

Line 514 in the .s file is:
        .long   .LFE96-.LFB96

One label is in a .text section and the other label is in a .text.unlikely
section.  I tried placing the .text.unlikely label into .text and it assembled
correctly.

The failed command is:
stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/ -c   -m64 -march=athlon64
-O2 -pipe -fprefetch-loop-arrays -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/var/tmp/portage/gcc-4.1.0_beta20050819/work/gcc-4.1-20050819/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050819/work/gcc-4.1-20050819/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050819/work/gcc-4.1-20050819/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050819/work/gcc-4.1-20050819/gcc/../libcpp/include
 /var/tmp/portage/gcc-4.1.0_beta20050819/work/gcc-4.1-20050819/gcc/attribs.c -o
attribs.o

This is in the last bit of the build, using profile feedback to optimize.

-- 
           Summary: GCC 4.1 generated assembly subtracts between labels in
                    text and text.unlikely
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zlynx at acm dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: x86_64-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23502

Reply via email to