gcc-4.4.2 testsuite failures:
FAIL: gcc.dg/tree-prof/bb-reorg.c compilation,  -fprofile-use -D_PROFILE_USE
FAIL: gcc.dg/tree-prof/pr34999.c compilation,  -fprofile-use -D_PROFILE_USE

using binutils 2.20.51.20090927

Copying sources to a temporary directory and repeating commands used by
testsuite produces this log:

$ ${GCC_BUILD}/gcc/xgcc bb-reorg.c -B${GCC_BUILD}/gcc/ -O2
-freorder-blocks-and-partition -fprofile-generate -D_PROFILE_GENERATE -lm -o
bb-reorg.x01
$ ./bb-reorg.x01
$ ${GCC_BUILD}/gcc/xgcc bb-reorg.c -B${GCC_BUILD}/gcc/ -O2
-freorder-blocks-and-partition -fprofile-use -D_PROFILE_USE -lm -o bb-reorg.x02
/tmp/ccFSvybE.s: Assembler messages:
/tmp/ccFSvybE.s:98: Error: .cfi_endproc without corresponding .cfi_startproc
/tmp/ccFSvybE.s:116: Error: open CFI at the end of file; missing .cfi_endproc
directive

Omitting '-O2' fixes :
$ ${GCC_BUILD}/gcc/xgcc bb-reorg.c -B${GCC_BUILD}/gcc/ 
-freorder-blocks-and-partition -fprofile-generate -D_PROFILE_GENERATE -lm -o
bb-reorg.x01
$ ./bb-reorg.x01
$ ${GCC_BUILD}/gcc/xgcc bb-reorg.c -B${GCC_BUILD}/gcc/
-freorder-blocks-and-partition -fprofile-use -D_PROFILE_USE -lm -o bb-reorg.x02
$ ./bb-reorg.x02

The same problem occurs with 
gcc/testsuite/gcc.dg/tree-prof/pr34999.c .


-- 
           Summary: FAIL: gcc.dg/tree-prof/bb-reorg.c compilation,  -
                    fprofile-use -D_PROFILE_USE - `-fprofile-use' fails
                    with '-02'
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason dot vas dot dias at gmail dot com
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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

Reply via email to