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

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).