https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129244
--- Comment #1 from Longjun Luo <luolongjuna at gmail dot com> --- PR129244 and PR129245 are two sides of the same cache-key mismatch in -flto-incremental: the LTRANS output depends on the remapped paths, whereas ltrans_file_cache computes the cache key from the LTRANS input file (generated by WPA), which records unmapped paths and drops the mapping options. - In PR129244, the unmapped path changes while the remapped path stays the same, triggering an unnecessary recompile. - In PR129245, the unmapped path stays the same while the remapped path changes, reusing an outdated cache entry. I am preparing a patch to fix this.
