[Bug tree-optimization/28948] -fprofile-generate/use and C++ anonymous namespaces don't mix

bangerth at math dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Tue Sep 5 11:51:00 GMT 2006



------- Comment #4 from bangerth at math dot tamu dot edu  2006-09-05 11:51 -------
Subject: Re:  -fprofile-generate/use and C++
 anonymous namespaces don't mix


> And you can work around with -frandom-seed=0

Nope, since that means that symbols in anonymous namespaces are the same
every time you compile a file, you can't compile the file twice with
different flags and later link the whole thing together. -frandom-seed=0
is not compatible with C++ semantics of anonymous namespace members.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            bangerth@math.tamu.edu
                                 www: http://www.math.tamu.edu/~bangerth/


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28948



More information about the Gcc-bugs mailing list