This is an archive of the discontinued LLVM Phabricator instance.

"Claim" the arguments belonging to 'clang_ignored_gcc_optimization_f_Group'
ClosedPublic

Authored by dougk on Aug 5 2015, 10:16 AM.

Details

Summary

This seems preferable to printing two warnings per use of an unsupported option- one about not supporting it, and one about the compiler invocation not using it.

It also makes the '-Wno-' flag do what you mean with respect to those ignored options. Given that clang_ignored_f_Group are silently ignored, it seems obvious that the W flag is intended to suppress warnings about things that would otherwise print something, not arguments that are totally effectless.

Though why there are two groups at all is strange - the gcc group was added in r212805 when the clang_ignored_f_group already existed. I suppose it would have been incompatible to make the clang_ignored_f_group start to issue warnings.

Diff Detail

Event Timeline

dougk updated this revision to Diff 31364.Aug 5 2015, 10:16 AM
dougk retitled this revision from to "Claim" the arguments belonging to 'clang_ignored_gcc_optimization_f_Group'.
dougk updated this object.
dougk added reviewers: chandlerc, rnk.
dougk added a subscriber: cfe-commits.
mcrosier accepted this revision.Aug 5 2015, 10:32 AM
mcrosier added a reviewer: mcrosier.
mcrosier added a subscriber: mcrosier.

LGTM.

This revision is now accepted and ready to land.Aug 5 2015, 10:32 AM
This revision was automatically updated to reflect the committed changes.