This is an archive of the discontinued LLVM Phabricator instance.

[Driver] [C++20] [Modules] Don't emit unused-argument warning for ` -fmodule-output=` and `-fmodule-output`
ClosedPublic

Authored by ChuanqiXu on Dec 14 2022, 1:47 AM.

Details

Summary

Suppres the r unused-argument warning for -fmodule-output according to the discussion thread in https://gcc.gnu.org/pipermail/gcc/2022-December/240239.html.

Diff Detail

Event Timeline

ChuanqiXu created this revision.Dec 14 2022, 1:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 1:47 AM
ChuanqiXu requested review of this revision.Dec 14 2022, 1:47 AM
dblaikie accepted this revision.Dec 14 2022, 11:31 AM

Looks good, thanks! (for the record I'm not 100% sure this is the right direction (I wonder if this'll be confusing for users if they ask for the module output but didn't get any because they weren't doing a modular build, but that's not obvious, etc), so I don't mind if, in retrospect, we find that unused command line warning turns out to be suitable and revert this patch some time in the future - but I think "the same as -o" is a good place to start, at least)

This revision is now accepted and ready to land.Dec 14 2022, 11:31 AM
This revision was landed with ongoing or failed builds.Jan 15 2023, 10:09 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2023, 10:09 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript