https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129285
--- Comment #2 from Lewis Hyatt <lhyatt at gcc dot gnu.org> --- I had considered this when adding the support for streaming the diagnostic pragmas for LTRANS, but it wasn't clear to me if we want to do it? Any change which affects the linemap (like adding a line somewhere) will still trigger the cache invalidation, as well as any change which affects the object code produced by compilation. The source file is still being recompiled here, so diagnostics produced during compilation also reflect the change to the pragma. It's just that partitions which previously completed WPA successfully, and which remain unchanged, are not run through LTRANS again with the modified middle end diagnostics. It's not hard to support, but I think what it would have to look like, is that changing any diagnostic pragma anywhere would invalidate all of the files in the cache. It wasn't clear to me that this cost is worth it, but I can send a patch if you think it is?
