[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#150755: gcc-3.1: -fprofile-arcs option is broken



Package: gcc-3.1
Version: 1:3.1.1-0pre2
Severity: normal

I'm trying to use the -fprofile-arcs / -fbranch-probabilities
functionality in gcc 3.1 and it appears to be broken.

More specifically, I compile my test program with
gcc-3.1 -g -Wall -O3 -fomit-frame-pointer -fprofile-arcs -mcpu=pentiumpro
and then I run the test program, and instead of generating files with
names foo.da (whare the source module is foo.c) it generates names
like tmp.stdout.29206.da

Later on when compiling with -fbranch-probabilities, I get this message:
foo.c:0: warning: file tmp.stdout.32193.da not found, execution counts
assumed to be zero
And when running the resulting executable, the performance is worse
than without using -fbranch-probabilities

I had previously used this with a gcc snapshot I had built myself from
the GNU sources soon before the 3.1 release, and it worked back
then. So the problem could either be specific to the debian package,
or it would have been introduced very late in the gcc 3.1 development.

Hope this helps,

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux Angel 2.2.20raid #1 Mon Feb 4 02:31:36 PST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.1 depends on:
ii  binutils                   2.12.90.0.7-1 The GNU assembler, linker and bina
ii  cpp-3.1                    1:3.1.1-0pre2 The GNU C preprocessor.
ii  gcc-3.1-base               1:3.1.1-0pre2 The GNU Compiler Collection (base 
ii  libc6                      2.2.5-6       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.1.1-0pre2 GCC support library.



-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: