Summary: | sys-devel/gcc-4.5.2: gcda file not found for -fbranch-probabilities | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://gcc.gnu.org/PR49340 | ||
See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49340 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Call read_counts_file unconditionally |
Description
Martin von Gagern
2011-06-08 20:30:46 UTC
Not a problem with gcc 3.3.6-r1, 3.4.6-r2, 4.1.2 or 4.2.4-r1. At least none of them prints an warning. So I guess this is a regression in recent gcc. Identified the relevant command via strace and ran it through gdb: $ gdb --args /usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.2/cc1 -quiet test.c \ -D_FORTIFY_SOURCE=2 -quiet -dumpbase test.c -mtune=generic -march=x86-64 \ -auxbase test -fbranch-probabilities -o test.s It appears that coverage_init does not call read_counts_file because flag_profile_use is zero. So I assume that this problem was introduced by http://gcc.gnu.org/viewcvs/trunk/gcc/coverage.c?r1=133773&r2=133774 Created attachment 276363 [details, diff]
Call read_counts_file unconditionally
Reproduced with USE=vanilla, filed report upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49340 appears to work w/gcc-4.9.1 |