This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Reject -march= for ppc
ClosedPublic

Authored by MaskRay on Mar 1 2023, 11:20 PM.

Details

Reviewers
nemanjai
Group Reviewers
Restricted Project
Commits
rG7370b9c8ea00: [Driver] Reject -march= for ppc
Summary

Clang -march= for ppc triples currently leads to an
-Wunused-command-line-argument warning but GCC rejects -march=.

error: unrecognized command-line option ‘-march=xxx’

Let's reject -march= as well similar to the Sparc change D130273.

Close https://github.com/llvm/llvm-project/issues/57587

Diff Detail

Event Timeline

MaskRay created this revision.Mar 1 2023, 11:20 PM
MaskRay requested review of this revision.Mar 1 2023, 11:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 11:20 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
nemanjai accepted this revision.Mar 6 2023, 7:36 AM

I am perfectly fine with this. That option is quite problematic. LGTM.

This revision is now accepted and ready to land.Mar 6 2023, 7:36 AM
This revision was automatically updated to reflect the committed changes.