public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease
@ 2006-02-21 16:52 strieder at informatik dot uni-kl dot de
2006-02-21 16:59 ` [Bug gcov/profile/26399] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: strieder at informatik dot uni-kl dot de @ 2006-02-21 16:52 UTC (permalink / raw)
To: gcc-bugs
Hello,
the problem seems to have returned, similar problems have been reported several
times at least in the 4.0.0 prerelease time, as far as Google tells.
See
gcc.gnu.org/ml/gcc/2005-03/msg00844.html
http://kegel.com/crosstool/crosstool-0.38/patches/gcc-4.0.1/pr20815-fix.patch
I have a larger code base, where the compiler bails out at every first
occurence of unnamed
namespaces with -fprofile-use. The working files get a remarkable speedup due
to profile-use,
so I would prefer to be able to use it for all files without having to assign
the namespaces
names. I can get away for the moment by compiling the failing files without
-fprofile-use.
Thanks,
Bernd Strieder
proft1.cc:
------------------------------------------------------
namespace {
int calc(int j)
{
if (j==0) return 0;
return calc(j-1)*j % 17;
}
}
int main(void)
{
return calc(25);
}
--------------------------
Steps to reproduce:
g++ -fprofile-generate -c proft1.cc
g++ -fprofile-generate -o proft1 proft1.o
./proft1
g++ -fprofile-use -c proft1.cc
proft1.cc: In function 'int<unnamed>::calc(int)':
proft1.cc:13: error: coverage mismatch for function
'_ZN38_GLOBAL__N_proft1.cc_00000000_DA7CA6ED4calcEi' while reading counter
'arcs'
proft1.cc:13: error: checksum is 2c81fd4d instead of dd8ba62c
--
Summary: -fprofile-use fails with unnamed namespaces in 4.1.0
prerelease
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: strieder at informatik dot uni-kl dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
@ 2006-02-21 16:59 ` pinskia at gcc dot gnu dot org
2006-02-21 17:01 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-21 16:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-21 16:59 -------
2005-10-31 Jan Hubicka <jh@suse.cz>
PR profile/20815
* coverage.c (coverage_checksum_string): Fix code to stip random seeds
from symbol names while computing checkup.
The patch which you referenced was applied.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
2006-02-21 16:59 ` [Bug gcov/profile/26399] " pinskia at gcc dot gnu dot org
@ 2006-02-21 17:01 ` pinskia at gcc dot gnu dot org
2006-02-22 11:30 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-21 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-21 17:00 -------
But still fails.
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-21 17:00:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
2006-02-21 16:59 ` [Bug gcov/profile/26399] " pinskia at gcc dot gnu dot org
2006-02-21 17:01 ` pinskia at gcc dot gnu dot org
@ 2006-02-22 11:30 ` rguenth at gcc dot gnu dot org
2006-04-03 21:54 ` [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces hjl at lucon dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-22 11:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2006-02-22 11:30 -------
Providing -frandom-seed=0 is a workaround.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (2 preceding siblings ...)
2006-02-22 11:30 ` rguenth at gcc dot gnu dot org
@ 2006-04-03 21:54 ` hjl at lucon dot org
2006-04-06 20:33 ` hubicka at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl at lucon dot org @ 2006-04-03 21:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hjl at lucon dot org 2006-04-03 21:54 -------
If -frandom-seed=0 is required for -fprofile-use to work correctly, why not
add it automatically for -fprofile-use?
--
hjl at lucon dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl at lucon dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (3 preceding siblings ...)
2006-04-03 21:54 ` [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces hjl at lucon dot org
@ 2006-04-06 20:33 ` hubicka at gcc dot gnu dot org
2006-04-15 16:48 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-04-06 20:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hubicka at gcc dot gnu dot org 2006-04-06 20:33 -------
Subject: Bug 26399
Author: hubicka
Date: Thu Apr 6 20:33:21 2006
New Revision: 112738
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112738
Log:
PR profile/20815
PR profile/26399
* coverage.c (coverage_checksum_string): Reorganize loop to not read
after buffer.
* g++.dg/bprob/g++-bprob-2.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/bprob/g++-bprob-2.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/coverage.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (4 preceding siblings ...)
2006-04-06 20:33 ` hubicka at gcc dot gnu dot org
@ 2006-04-15 16:48 ` pinskia at gcc dot gnu dot org
2006-09-04 16:16 ` [Bug gcov-profile/26399] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-15 16:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-04-15 16:47 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov-profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (5 preceding siblings ...)
2006-04-15 16:48 ` pinskia at gcc dot gnu dot org
@ 2006-09-04 16:16 ` pinskia at gcc dot gnu dot org
2008-12-31 19:53 ` pinskia at gcc dot gnu dot org
2009-01-14 23:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-04 16:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-09-04 16:16 -------
*** Bug 28948 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov-profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (6 preceding siblings ...)
2006-09-04 16:16 ` [Bug gcov-profile/26399] " pinskia at gcc dot gnu dot org
@ 2008-12-31 19:53 ` pinskia at gcc dot gnu dot org
2009-01-14 23:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-31 19:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-12-31 19:48 -------
*** Bug 32316 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |patrick dot pastoor at
| |onespin-solutions dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug gcov-profile/26399] -fprofile-use fails with unnamed namespaces
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
` (7 preceding siblings ...)
2008-12-31 19:53 ` pinskia at gcc dot gnu dot org
@ 2009-01-14 23:15 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-01-14 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2009-01-14 23:14 -------
*** Bug 25351 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cyberax at elewise dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26399
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-01-14 23:15 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-21 16:52 [Bug c++/26399] New: -fprofile-use fails with unnamed namespaces in 4.1.0 prerelease strieder at informatik dot uni-kl dot de
2006-02-21 16:59 ` [Bug gcov/profile/26399] " pinskia at gcc dot gnu dot org
2006-02-21 17:01 ` pinskia at gcc dot gnu dot org
2006-02-22 11:30 ` rguenth at gcc dot gnu dot org
2006-04-03 21:54 ` [Bug gcov/profile/26399] -fprofile-use fails with unnamed namespaces hjl at lucon dot org
2006-04-06 20:33 ` hubicka at gcc dot gnu dot org
2006-04-15 16:48 ` pinskia at gcc dot gnu dot org
2006-09-04 16:16 ` [Bug gcov-profile/26399] " pinskia at gcc dot gnu dot org
2008-12-31 19:53 ` pinskia at gcc dot gnu dot org
2009-01-14 23:15 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).