This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: recover -frandom-seed from .rpo file


On 3/9/07, Alexandre Oliva <aoliva@redhat.com> wrote:
:ADDPATCH repo:

This is a patch for
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=228769

When the instantiation of symbols involving names in anonymous
namespaces is controlled by -frepo, they will vary from one
compilation to another.  It's not that linking will endless loop, it's
that if you compile, link, then recompile the source, the resulting
.rpo file will use a different seed, which discards all of the useful
instantiate-here information created by the previous link, and then
the next linking will take much longer than it could.

I don't think this is true any more in that anonymous namespaces are hanlded differently in 4.2.0 and above and don't use the seeds anymore.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]