https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80526
Bug ID: 80526 Summary: -fcompare-debug doesn't make sense for -c -flto Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- When using -fcompare-debug with "-c -flto" the resulting two *.gkd files always have size zero. So it doesn't make sense to compile twice in this case, because there is nothing to compare.