On Thu, Apr 07, 2005 at 06:32:26PM -0400, Andrew Pinski wrote: > > On Apr 7, 2005, at 6:01 PM, Daniel Kegel wrote: > > >Judging by http://gcc.gnu.org/PR20815, I get the feeling > >not many people are using the -fprofile-generate > >and -fprofile-use options yet, at least not with > >C++, since it appears that namespaces make those options > >fall over... It'd be nice to get this fixed for gcc-4.0 > >(assuming it's a real bug and not just user error). > > anonymous names are always problems, as I wrote in the bug > you can use -frandom-seed=somenumber and it should fix the problem, > I have not tested it.
I think that the approach we took to anonymous namespaces is broken, and the names should be treated like C static, except in cases where a real standard violation occurs. It seems rather tricky to construct such a case, and the idea of producing random output "just in case" seems broken.