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: [PATCH][C++] Fix dump-file corruption


Fixed by moving (swapping) a cached decls name to the position it would
have had if it had been freshly allocated.  This ensures that we can
reliably print strings with at least RING_SIZE decl names in them.

I think you fail if you are printing three strings, with the first one not in the cache, the second at the last place in the cache, and the third one not in the cache. The third cxx_printable_name will expunge the output of the first.


You really need LRU.

Paolo


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